2012-04-06 08:56:52 +02:00
|
|
|
#ifndef JSONRPCENDPOINT_H
|
|
|
|
#define JSONRPCENDPOINT_H
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
class I2_ICINGA_API JsonRpcEndpoint : public Endpoint
|
|
|
|
{
|
2012-04-16 16:27:41 +02:00
|
|
|
private:
|
|
|
|
JsonRpcClient::Ptr m_Client;
|
|
|
|
|
|
|
|
bool IsConnected(void) const;
|
|
|
|
|
2012-04-06 08:56:52 +02:00
|
|
|
public:
|
2012-04-16 16:27:41 +02:00
|
|
|
JsonRpcEndpoint(void);
|
|
|
|
|
|
|
|
JsonRpcClient::Ptr GetClient(void);
|
|
|
|
void SetClient(JsonRpcClient::Ptr client);
|
|
|
|
|
|
|
|
virtual void SendRequest(Endpoint::Ptr sender, JsonRpcRequest::Ptr message);
|
|
|
|
virtual void SendResponse(Endpoint::Ptr sender, JsonRpcResponse::Ptr message);
|
2012-04-06 08:56:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-16 16:27:41 +02:00
|
|
|
#endif /* JSONRPCENDPOINT_H */
|