icinga2/icinga/discoverycomponent.h

27 lines
559 B
C
Raw Normal View History

2012-04-23 16:49:02 +02:00
#ifndef DISCOVERYCOMPONENT_H
#define DISCOVERYCOMPONENT_H
namespace icinga
{
class DiscoveryComponent : public IcingaComponent
2012-04-23 16:49:02 +02:00
{
private:
VirtualEndpoint::Ptr m_DiscoveryEndpoint;
IcingaApplication::Ptr GetIcingaApplication(void) const;
int NewEndpointHandler(const NewEndpointEventArgs& neea);
int SessionEstablishedHandler(const EventArgs& neea);
2012-04-23 16:49:02 +02:00
int GetPeersMessageHandler(const NewRequestEventArgs& nrea);
public:
virtual string GetName(void) const;
virtual void Start(void);
virtual void Stop(void);
};
}
#endif /* DISCOVERYCOMPONENT_H */