blob: 8e7196fb034723dbfa5c69ee2509daedce793741 (
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 Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/config/config.h>
#include <vespa/config-logforwarder.h>
#include "child-handler.h"
using cloud::config::LogforwarderConfig;
class CfHandler {
private:
ChildHandler _childHandler;
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 stop();
void check();
};
|