aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/health_adapter.h
blob: 0625b3236ae981fffc65ec8bd51684206d118192 (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.

#pragma once

#include <vespa/searchcore/proton/common/statusreport.h>
#include <vespa/vespalib/net/http/health_producer.h>

namespace proton {

class HealthAdapter : public vespalib::HealthProducer
{
private:
    const StatusProducer &_statusProducer;

public:
    HealthAdapter(const StatusProducer &sp);
    Health getHealth() const override;
};

} // namespace proton