Public Member Functions

GridClientHttpCommandExecutor Class Reference

#include <gridclienthttpcommandexecutor.hpp>

Inheritance diagram for GridClientHttpCommandExecutor:
GridClientCommandExecutorPrivate GridClientCommandExecutor

List of all members.

Public Member Functions

 GridClientHttpCommandExecutor (boost::shared_ptr< GridClientConnectionPool > &connectionPool)
virtual void executeLogCmd (const GridClientSocketAddress &nodeHost, GridLogRequestCommand &logRequest, GridClientMessageLogResult &result)
virtual void executeTopologyCmd (const GridClientSocketAddress &nodeHost, GridTopologyRequestCommand &topologyRequest, GridClientMessageTopologyResult &result)
virtual void executeGetCacheCmd (const GridClientSocketAddress &nodeHost, GridCacheRequestCommand &cacheCmd, GridClientMessageCacheGetResult &result)
virtual void executeModifyCacheCmd (const GridClientSocketAddress &nodeHost, GridCacheRequestCommand &cacheCmd, GridClientMessageCacheModifyResult &result)
virtual void executeGetCacheMetricsCmd (const GridClientSocketAddress &nodeHost, GridCacheRequestCommand &cacheCmd, GridClientMessageCacheMetricResult &result)
virtual void executeTaskCmd (const GridClientSocketAddress &nodeHost, GridTaskRequestCommand &taskCmd, GridClientMessageTaskResult &result)
virtual void stop ()

Detailed Description

HTTP command executor. Sends commands over HTTP transport.


Constructor & Destructor Documentation

GridClientHttpCommandExecutor::GridClientHttpCommandExecutor ( boost::shared_ptr< GridClientConnectionPool > &  connectionPool  )  [inline]

Public constructor.

Parameters:
connectionPool Connection pool to use.

Member Function Documentation

void GridClientHttpCommandExecutor::executeGetCacheCmd ( const GridClientSocketAddress &  host,
GridCacheRequestCommand &  cacheCmd,
GridClientMessageCacheGetResult &  rslt 
) [virtual]

Execute cache get command.

Parameters:
nodeHost Host/port to send command to.
cacheCmd Cache get request command.
result Cache get request result.

Sends a cache get command to a remote host.

Parameters:
host Host/port pair to connect to.
cacheCmd Cache command to send.
rslt Cache get response message to fill.

Implements GridClientCommandExecutor.

void GridClientHttpCommandExecutor::executeGetCacheMetricsCmd ( const GridClientSocketAddress &  host,
GridCacheRequestCommand &  cacheCmd,
GridClientMessageCacheMetricResult &  rslt 
) [virtual]

Execute cache metrics command.

Parameters:
nodeHost Host/port to send command to.
cacheCmd Cache metrics request command.
result Cache metrics request result.

Sends a cache metrics command to a remote host.

Parameters:
host Host/port pair to connect to.
cacheCmd Cache metrics command to send.
rslt Cache metrics response message to fill.

Implements GridClientCommandExecutor.

void GridClientHttpCommandExecutor::executeLogCmd ( const GridClientSocketAddress &  host,
GridLogRequestCommand &  logCmd,
GridClientMessageLogResult &  rslt 
) [virtual]

Execute log command.

Parameters:
nodeHost Host/port to send command to.
logRequest Log request command.
result Log request result.

Sends a log command to a remote host.

Parameters:
host Host/port pair to connect to.
logCmd Log command to send.
rslt Log response message to fill.

Implements GridClientCommandExecutor.

void GridClientHttpCommandExecutor::executeModifyCacheCmd ( const GridClientSocketAddress &  host,
GridCacheRequestCommand &  cacheCmd,
GridClientMessageCacheModifyResult &  rslt 
) [virtual]

Execute cache modify command.

Parameters:
nodeHost Host/port to send command to.
cacheCmd Cache modify request command.
result Cache modify request result.

Sends a cache modify command to a remote host.

Parameters:
host Host/port pair to connect to.
cacheCmd Cache modify command to send.
rslt Cache modify response message to fill.

Implements GridClientCommandExecutor.

void GridClientHttpCommandExecutor::executeTaskCmd ( const GridClientSocketAddress &  host,
GridTaskRequestCommand &  taskCmd,
GridClientMessageTaskResult &  rslt 
) [virtual]

Execute task command.

Parameters:
nodeHost Host/port to send command to.
taskCmd task request command.
result task request result.

Sends a task command to a remote host.

Parameters:
host Host/port pair to connect to.
taskCmd task command to send.
rslt Task response message to fill.

Implements GridClientCommandExecutor.

void GridClientHttpCommandExecutor::executeTopologyCmd ( const GridClientSocketAddress &  host,
GridTopologyRequestCommand &  topCmd,
GridClientMessageTopologyResult &  rslt 
) [virtual]

Execute topology command.

Parameters:
nodeHost Host/port to send command to.
topologyRequest Topology request command.
result Topology request result.

Sends a topology command to a remote host.

Parameters:
host Host/port pair to connect to.
topCmd Topology command to send.
rslt Topology response message to fill.

Implements GridClientCommandExecutor.

void GridClientHttpCommandExecutor::stop (  )  [virtual]

Stops the command executor freeing all resources and closing all connections.

Implements GridClientCommandExecutorPrivate.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends