blob: 3d6f7b5092f8d3931f89466cb354cf8ecbb4b39c (
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
24
25
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "health_producer.h"
#include <mutex>
namespace vespalib {
class SimpleHealthProducer : public HealthProducer
{
private:
mutable std::mutex _lock;
HealthProducer::Health _health;
public:
SimpleHealthProducer();
~SimpleHealthProducer() override;
void setOk();
void setFailed(const vespalib::string &msg);
Health getHealth() const override;
};
} // namespace vespalib
|