blob: c66be0e2099074e4725993df6cfc90ce6329efab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/config-logforwarder.h>
#include <vespa/config/subscription/configsubscriber.h>
using cloud::config::LogforwarderConfig;
class CfHandler {
private:
config::ConfigSubscriber _subscriber;
config::ConfigHandle<LogforwarderConfig>::UP _handle;
void subscribe(const std::string & configId, std::chrono::milliseconds timeout);
void doConfigure();
public:
CfHandler();
virtual ~CfHandler();
void start(const char *configId);
void check();
virtual void gotConfig(const LogforwarderConfig&) = 0;
};
|