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