icinga2/components/configrpc/configrpccomponent.h

37 lines
1.0 KiB
C
Raw Normal View History

#ifndef CONFIGRPCCOMPONENT_H
#define CONFIGRPCCOMPONENT_H
2012-03-31 16:28:11 +02:00
namespace icinga
{
class ConfigRpcComponent : public Component
{
private:
VirtualEndpoint::Ptr m_ConfigRpcEndpoint;
IcingaApplication::Ptr GetIcingaApplication(void);
2012-03-31 16:28:11 +02:00
int NewEndpointHandler(const NewEndpointEventArgs& ea);
int WelcomeMessageHandler(const NewRequestEventArgs& ea);
2012-04-20 13:49:04 +02:00
int LocalObjectCreatedHandler(const EventArgs& ea);
int LocalObjectRemovedHandler(const EventArgs& ea);
2012-04-22 16:45:31 +02:00
int LocalPropertyChangedHandler(const PropertyChangedEventArgs& ea);
2012-03-31 16:28:11 +02:00
2012-04-18 15:22:25 +02:00
int FetchObjectsHandler(const NewRequestEventArgs& ea);
int RemoteObjectUpdatedHandler(const NewRequestEventArgs& ea);
int RemoteObjectRemovedHandler(const NewRequestEventArgs& ea);
2012-03-31 16:28:11 +02:00
static JsonRpcRequest MakeObjectMessage(const ConfigObject::Ptr& object, string method, bool includeProperties);
2012-03-31 16:28:11 +02:00
static bool ShouldReplicateObject(const ConfigObject::Ptr& object);
2012-03-31 16:28:11 +02:00
public:
virtual string GetName(void) const;
2012-03-31 16:28:11 +02:00
virtual void Start(void);
virtual void Stop(void);
};
}
#endif /* CONFIGRPCCOMPONENT_H */