forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresource_monitor_config_impl.h
More file actions
40 lines (30 loc) · 1.25 KB
/
resource_monitor_config_impl.h
File metadata and controls
40 lines (30 loc) · 1.25 KB
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
#pragma once
#include "envoy/server/resource_monitor_config.h"
namespace Envoy {
namespace Server {
namespace Configuration {
class ResourceMonitorFactoryContextImpl : public ResourceMonitorFactoryContext {
public:
ResourceMonitorFactoryContextImpl(Event::Dispatcher& dispatcher, const Server::Options& options,
Api::Api& api,
ProtobufMessage::ValidationVisitor& validation_visitor,
Runtime::Loader& runtime)
: dispatcher_(dispatcher), options_(options), api_(api),
validation_visitor_(validation_visitor), runtime_(runtime) {}
Event::Dispatcher& mainThreadDispatcher() override { return dispatcher_; }
const Server::Options& options() override { return options_; }
Api::Api& api() override { return api_; }
ProtobufMessage::ValidationVisitor& messageValidationVisitor() override {
return validation_visitor_;
}
Runtime::Loader& runtime() override { return runtime_; }
private:
Event::Dispatcher& dispatcher_;
const Server::Options& options_;
Api::Api& api_;
ProtobufMessage::ValidationVisitor& validation_visitor_;
Runtime::Loader& runtime_;
};
} // namespace Configuration
} // namespace Server
} // namespace Envoy