aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/hw_info_explorer.h
blob: 8937be58447ada1fd9b1c4b5462cc089e3a46fa4 (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
// 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/hw_info.h>
#include <vespa/vespalib/net/http/state_explorer.h>

namespace proton {

/**
 * Class used to explore the hardware information on the machine on which proton runs.
 */
class HwInfoExplorer : public vespalib::StateExplorer
{
private:
    HwInfo _info;

public:
    HwInfoExplorer(const HwInfo& info);

    void get_state(const vespalib::slime::Inserter& inserter, bool full) const override;
};

}