blob: 1e0176a886900c00c17e44913dc527b35f0b9531 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Vespa.ai. 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
|