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:
|
|
|
|
IcingaApplication::RefType GetIcingaApplication(void);
|
|
|
|
|
|
|
|
int FetchObjectsHandler(NewMessageEventArgs::RefType ea);
|
|
|
|
|
|
|
|
int LocalObjectCreatedHandler(ConfigHiveEventArgs::RefType ea);
|
|
|
|
int LocalObjectRemovedHandler(ConfigHiveEventArgs::RefType ea);
|
|
|
|
int LocalPropertyChangedHandler(ConfigHiveEventArgs::RefType ea);
|
|
|
|
|
|
|
|
int RemoteObjectCreatedHandler(NewMessageEventArgs::RefType ea);
|
|
|
|
int RemoteObjectRemovedHandler(NewMessageEventArgs::RefType ea);
|
|
|
|
int RemotePropertyChangedHandler(NewMessageEventArgs::RefType ea);
|
|
|
|
|
|
|
|
JsonRpcMessage::RefType MakeObjectMessage(const ConfigObject::RefType& object, string method, bool includeProperties);
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual string GetName(void);
|
|
|
|
virtual void Start(void);
|
|
|
|
virtual void Stop(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-02 08:56:30 +02:00
|
|
|
#endif /* CONFIGRPCCOMPONENT_H */
|