blob: 61c3e4e6f74244002dd09fe331077358407d097b (
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 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "state_server.h"
namespace vespalib {
StateServer::StateServer(int port,
const HealthProducer &hp,
MetricsProducer &mp,
ComponentConfigProducer &ccp)
: _api(hp, mp, ccp),
_server(port),
_tokens()
{
_tokens.push_back(_server.repo().bind("/state/v1", _api));
_tokens.push_back(_server.repo().bind("/metrics/total", _api));
_server.start();
}
StateServer::~StateServer() {}
} // namespace vespalib
|