diff options
Diffstat (limited to 'src/zenserver/hub/hub.h')
| -rw-r--r-- | src/zenserver/hub/hub.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zenserver/hub/hub.h b/src/zenserver/hub/hub.h index 8c4039c38..f880dab52 100644 --- a/src/zenserver/hub/hub.h +++ b/src/zenserver/hub/hub.h @@ -131,6 +131,10 @@ public: const Configuration& GetConfig() const { return m_Config; } +#if ZEN_WITH_TESTS + void TerminateModuleForTesting(const std::string& ModuleId); +#endif + private: const Configuration m_Config; ZenServerEnvironment m_RunEnvironment; @@ -150,6 +154,7 @@ private: std::unordered_set<std::string> m_ProvisioningModules; std::unordered_set<std::string> m_HibernatingModules; std::unordered_set<std::string> m_WakingModules; + std::unordered_set<std::string> m_RecoveringModules; std::vector<std::unique_ptr<StorageServerInstance>> m_ActiveInstances; std::vector<size_t> m_FreeActiveInstanceIndexes; ResourceMetrics m_ResourceLimits; @@ -160,6 +165,7 @@ private: Event m_WatchDogEvent; void WatchDog(); + void AttemptRecoverInstance(std::string_view ModuleId); void UpdateStats(); void UpdateCapacityMetrics(); |