blob: 651b8d22fa80eab6ba3c1db57002658488fd29e2 (
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 "child-handler.h"
#include <vespa/config-logforwarder.h>
#include <vespa/config/subscription/configsubscriber.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();
};
|