mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-26 02:58:43 +02:00
parent
7a48bb856b
commit
8a335ce4e6
@ -17,6 +17,15 @@ REGISTER_TYPE(Endpoint);
|
||||
boost::signals2::signal<void(const Endpoint::Ptr&, const JsonRpcConnection::Ptr&)> Endpoint::OnConnected;
|
||||
boost::signals2::signal<void(const Endpoint::Ptr&, const JsonRpcConnection::Ptr&)> Endpoint::OnDisconnected;
|
||||
|
||||
INITIALIZE_ONCE(&Endpoint::ConfigStaticInitialize);
|
||||
|
||||
void Endpoint::ConfigStaticInitialize()
|
||||
{
|
||||
OnLocalLogPositionChanged.connect([](const Endpoint::Ptr& ep, const Value&) {
|
||||
ep->GetReplayLog().Cleanup(ep->GetLocalLogPosition());
|
||||
});
|
||||
}
|
||||
|
||||
void Endpoint::OnAllConfigLoaded()
|
||||
{
|
||||
ObjectImpl<Endpoint>::OnAllConfigLoaded();
|
||||
|
@ -43,6 +43,7 @@ public:
|
||||
bool GetConnected() const override;
|
||||
|
||||
static Endpoint::Ptr GetLocalEndpoint();
|
||||
static void ConfigStaticInitialize();
|
||||
|
||||
inline ReplayLog& GetReplayLog()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user