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-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);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-02 08:56:30 +02:00
|
|
|
#endif /* CONFIGRPCCOMPONENT_H */
|