aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/persistence/processallhandler.h
blob: bd48c047eefa7005a78d466e0eabfd2bbc81b66a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "types.h"
#include "messages.h"
#include <vespa/storageapi/message/stat.h>

namespace storage {

namespace spi { struct PersistenceProvider; }
class PersistenceUtil;

class ProcessAllHandler : public Types {
public:
    ProcessAllHandler(const PersistenceUtil&, spi::PersistenceProvider&);
    MessageTrackerUP handleStatBucket(api::StatBucketCommand&, MessageTrackerUP tracker) const;
private:
    const PersistenceUtil    & _env;
    spi::PersistenceProvider & _spi;
};

} // storage