2012-04-02 08:56:30 +02:00
|
|
|
#ifndef CONFIGRPCCOMPONENT_H
|
|
|
|
#define CONFIGRPCCOMPONENT_H
|
2012-03-31 16:28:11 +02:00
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
class ConfigRpcComponent : public Component
|
|
|
|
{
|
|
|
|
private:
|
2012-04-06 08:56:52 +02:00
|
|
|
VirtualEndpoint::Ptr m_ConfigRpcEndpoint;
|
|
|
|
|
2012-04-02 20:50:35 +02:00
|
|
|
IcingaApplication::Ptr GetIcingaApplication(void);
|
2012-03-31 16:28:11 +02:00
|
|
|
|
2012-04-02 20:50:35 +02:00
|
|
|
int FetchObjectsHandler(NewMessageEventArgs::Ptr ea);
|
2012-03-31 16:28:11 +02:00
|
|
|
|
2012-04-04 10:04:38 +02:00
|
|
|
int LocalObjectCreatedHandler(ConfigObjectEventArgs::Ptr ea);
|
|
|
|
int LocalObjectRemovedHandler(ConfigObjectEventArgs::Ptr ea);
|
|
|
|
int LocalPropertyChangedHandler(ConfigObjectEventArgs::Ptr ea);
|
2012-03-31 16:28:11 +02:00
|
|
|
|
2012-04-04 14:30:11 +02:00
|
|
|
int RemoteObjectUpdatedHandler(NewMessageEventArgs::Ptr ea);
|
2012-04-02 20:50:35 +02:00
|
|
|
int RemoteObjectRemovedHandler(NewMessageEventArgs::Ptr ea);
|
2012-03-31 16:28:11 +02:00
|
|
|
|
2012-04-02 20:50:35 +02:00
|
|
|
JsonRpcMessage::Ptr 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);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-02 08:56:30 +02:00
|
|
|
#endif /* CONFIGRPCCOMPONENT_H */
|