forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instance_impl.h
29 lines (23 loc) · 1022 Bytes
/
instance_impl.h
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
#pragma once
#include "source/common/memory/heap_shrinker.h"
#include "source/server/server.h"
namespace Envoy {
namespace Server {
// The production server instance, which creates all of the required components.
class InstanceImpl : public InstanceBase {
public:
using InstanceBase::InstanceBase;
protected:
void maybeCreateHeapShrinker() override;
absl::StatusOr<std::unique_ptr<OverloadManager>> createOverloadManager() override;
std::unique_ptr<OverloadManager> createNullOverloadManager() override;
std::unique_ptr<Server::GuardDog> maybeCreateGuardDog(absl::string_view name) override;
std::unique_ptr<HdsDelegateApi>
maybeCreateHdsDelegate(Configuration::ServerFactoryContext& server_context, Stats::Scope& scope,
Grpc::RawAsyncClientPtr&& async_client, Envoy::Stats::Store& stats,
Ssl::ContextManager& ssl_context_manager) override;
private:
std::unique_ptr<Memory::HeapShrinker> heap_shrinker_;
};
} // namespace Server
} // namespace Envoy