mirror of https://github.com/Icinga/icinga2.git
34 lines
915 B
C++
34 lines
915 B
C++
#ifndef CONFIGRPCCOMPONENT_H
|
|
#define CONFIGRPCCOMPONENT_H
|
|
|
|
namespace icinga
|
|
{
|
|
|
|
class ConfigRpcComponent : public IcingaComponent
|
|
{
|
|
private:
|
|
VirtualEndpoint::Ptr m_ConfigRpcEndpoint;
|
|
|
|
int NewEndpointHandler(const NewEndpointEventArgs& ea);
|
|
int SessionEstablishedHandler(const EventArgs& ea);
|
|
|
|
int LocalObjectCommittedHandler(const EventArgs& ea);
|
|
int LocalObjectRemovedHandler(const EventArgs& ea);
|
|
|
|
int FetchObjectsHandler(const NewRequestEventArgs& ea);
|
|
int RemoteObjectCommittedHandler(const NewRequestEventArgs& ea);
|
|
int RemoteObjectRemovedHandler(const NewRequestEventArgs& ea);
|
|
|
|
static JsonRpcRequest MakeObjectMessage(const ConfigObject::Ptr& object, string method, bool includeProperties);
|
|
|
|
static bool ShouldReplicateObject(const ConfigObject::Ptr& object);
|
|
public:
|
|
virtual string GetName(void) const;
|
|
virtual void Start(void);
|
|
virtual void Stop(void);
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* CONFIGRPCCOMPONENT_H */
|