blob: 8d9273877276576ab319d0f01668d8d3ddeae01f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Yahoo. 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));
}
StateServer::~StateServer() = default;
} // namespace vespalib
|