/proc/self/cwd/source/server/instance_impl.cc
Line | Count | Source |
1 | | #include "source/server/instance_impl.h" |
2 | | |
3 | | #include "source/server/guarddog_impl.h" |
4 | | #include "source/server/null_overload_manager.h" |
5 | | #include "source/server/overload_manager_impl.h" |
6 | | |
7 | | namespace Envoy { |
8 | | namespace Server { |
9 | 4.47k | void InstanceImpl::maybeCreateHeapShrinker() { |
10 | 4.47k | heap_shrinker_ = |
11 | 4.47k | std::make_unique<Memory::HeapShrinker>(dispatcher(), overloadManager(), *stats().rootScope()); |
12 | 4.47k | } |
13 | | |
14 | 4.47k | absl::StatusOr<std::unique_ptr<OverloadManager>> InstanceImpl::createOverloadManager() { |
15 | 4.47k | return OverloadManagerImpl::create( |
16 | 4.47k | dispatcher(), *stats().rootScope(), threadLocal(), bootstrap().overload_manager(), |
17 | 4.47k | messageValidationContext().staticValidationVisitor(), api(), options()); |
18 | 4.47k | } |
19 | | |
20 | 4.47k | std::unique_ptr<OverloadManager> InstanceImpl::createNullOverloadManager() { |
21 | 4.47k | return std::make_unique<NullOverloadManager>(threadLocal(), false); |
22 | 4.47k | } |
23 | | |
24 | 6.11k | std::unique_ptr<Server::GuardDog> InstanceImpl::maybeCreateGuardDog(absl::string_view name) { |
25 | 6.11k | return std::make_unique<Server::GuardDogImpl>(*stats().rootScope(), |
26 | 6.11k | config().mainThreadWatchdogConfig(), api(), name); |
27 | 6.11k | } |
28 | | |
29 | | } // namespace Server |
30 | | } // namespace Envoy |