2012-04-23 16:49:02 +02:00
|
|
|
#ifndef DISCOVERYCOMPONENT_H
|
|
|
|
#define DISCOVERYCOMPONENT_H
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2012-04-24 07:16:34 +02:00
|
|
|
class DiscoveryComponent : public IcingaComponent
|
2012-04-23 16:49:02 +02:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
VirtualEndpoint::Ptr m_DiscoveryEndpoint;
|
|
|
|
|
|
|
|
IcingaApplication::Ptr GetIcingaApplication(void) const;
|
|
|
|
|
2012-04-25 20:35:37 +02:00
|
|
|
int WelcomeMessageHandler(const NewRequestEventArgs& neea);
|
2012-04-23 16:49:02 +02:00
|
|
|
int GetPeersMessageHandler(const NewRequestEventArgs& nrea);
|
|
|
|
|
2012-04-27 11:44:34 +02:00
|
|
|
int CheckExistingEndpoint(Endpoint::Ptr endpoint, const NewEndpointEventArgs& neea);
|
|
|
|
|
2012-04-23 16:49:02 +02:00
|
|
|
public:
|
|
|
|
virtual string GetName(void) const;
|
|
|
|
virtual void Start(void);
|
|
|
|
virtual void Stop(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* DISCOVERYCOMPONENT_H */
|