blob: fd787b1644909e9a91c57d28c07fc16b0f478091 (
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
27
28
29
30
31
32
33
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/document/bucket/bucketspace.h>
#include <vespa/vespalib/stllike/string.h>
#include <memory>
namespace proton {
class DocumentDBConfigOwner;
/*
* Interface class for owner of a proton configurer, with callback methods
* for adding/removing document dbs and applying bootstrap config.
*/
class IProtonConfigurerOwner
{
public:
using InitializeThreads = std::shared_ptr<vespalib::ThreadExecutor>;
virtual ~IProtonConfigurerOwner() = default;
virtual std::shared_ptr<DocumentDBConfigOwner> addDocumentDB(const DocTypeName &docTypeName,
document::BucketSpace bucketSpace,
const vespalib::string &configId,
const std::shared_ptr<BootstrapConfig> &bootstrapConfig,
const std::shared_ptr<DocumentDBConfig> &documentDBConfig,
InitializeThreads initializeThreads) = 0;
virtual void removeDocumentDB(const DocTypeName &docTypeName) = 0;
virtual void applyConfig(const std::shared_ptr<BootstrapConfig> &bootstrapConfig) = 0;
};
} // namespace proton
|