blob: b9ca31edd4436e4721f31e1d5f7200e95cd0f395 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vespalib/net/http/state_explorer.h>
namespace vespalib {
class ISequencedTaskExecutor;
class ThreadExecutor;
}
namespace proton {
/**
* Class used to explore the shared thread pools used by proton and it's document databases.
*/
class ProtonThreadPoolsExplorer : public vespalib::StateExplorer {
private:
const vespalib::ThreadExecutor* _shared;
const vespalib::ThreadExecutor* _match;
const vespalib::ThreadExecutor* _docsum;
const vespalib::ThreadExecutor* _flush;
const vespalib::ThreadExecutor* _proton;
const vespalib::ThreadExecutor* _warmup;
vespalib::ISequencedTaskExecutor* _field_writer;
public:
ProtonThreadPoolsExplorer(const vespalib::ThreadExecutor* shared,
const vespalib::ThreadExecutor* match,
const vespalib::ThreadExecutor* docsum,
const vespalib::ThreadExecutor* flush,
const vespalib::ThreadExecutor* proton,
const vespalib::ThreadExecutor* warmup,
vespalib::ISequencedTaskExecutor* field_writer);
void get_state(const vespalib::slime::Inserter& inserter, bool full) const override;
std::vector<vespalib::string> get_children_names() const override;
std::unique_ptr<vespalib::StateExplorer> get_child(vespalib::stringref name) const override;
};
}
|