2012-04-19 11:29:36 +02:00
|
|
|
#ifndef I2_SUBSCRIPTIONCOMPONENT_H
|
|
|
|
#define I2_SUBSCRIPTIONCOMPONENT_H
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2012-04-24 07:16:34 +02:00
|
|
|
class SubscriptionComponent : public IcingaComponent
|
2012-04-19 11:29:36 +02:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
VirtualEndpoint::Ptr m_SubscriptionEndpoint;
|
|
|
|
|
|
|
|
int NewEndpointHandler(const NewEndpointEventArgs& neea);
|
|
|
|
int SubscribeMessageHandler(const NewRequestEventArgs& nrea);
|
|
|
|
int ProvideMessageHandler(const NewRequestEventArgs& nrea);
|
2012-04-20 10:38:11 +02:00
|
|
|
int IdentityMessageHandler(const NewRequestEventArgs& nrea);
|
2012-04-19 11:29:36 +02:00
|
|
|
|
|
|
|
int SyncSubscription(Endpoint::Ptr target, string type, const NewMethodEventArgs& nmea);
|
|
|
|
int SyncSubscriptions(Endpoint::Ptr target, const NewEndpointEventArgs& neea);
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual string GetName(void) const;
|
|
|
|
virtual void Start(void);
|
|
|
|
virtual void Stop(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* I2_SUBSCRIPTIONCOMPONENT_H */
|