icinga2/configrpccomponent/configrpccomponent.h

33 lines
904 B
C++

#ifndef CONFIGRPCCOMPONENT_H
#define CONFIGRPCCOMPONENT_H
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);
};
}
#endif /* CONFIGRPCCOMPONENT_H */