icinga2/components/configrpc/configrpccomponent.h

33 lines
856 B
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
2012-04-18 15:22:25 +02:00
int LocalObjectCreatedHandler(const ConfigObjectEventArgs& ea);
int LocalObjectRemovedHandler(const ConfigObjectEventArgs& ea);
int LocalPropertyChangedHandler(const ConfigObjectEventArgs& 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
2012-04-18 15:22:25 +02:00
JsonRpcRequest MakeObjectMessage(const ConfigObject::Ptr& object, string method, bool includeProperties);
2012-03-31 16:28:11 +02:00
public:
virtual string GetName(void);
virtual void Start(void);
virtual void Stop(void);
};
}
#endif /* CONFIGRPCCOMPONENT_H */