aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/storageserver/applicationgenerationfetcher.h
blob: 2a1783d13daf41e3bd95534783b8a5fe8efd030f (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
24
25
26
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/**
 * \class storage::ApplicationGenerationFetcher
 * \ingroup storageserver
 *
 * \brief Interface for fetching application generation number and
 * component name.
 */

#pragma once

#include <cstdint>
#include <string>

namespace storage {

class ApplicationGenerationFetcher {
public:
    virtual ~ApplicationGenerationFetcher() {}

    virtual int64_t getGeneration() const = 0;
    virtual std::string getComponentName() const = 0;
};

} // storage