public abstract class GridRedisRestCommandHandler extends Object implements GridRedisCommandHandler
| Modifier and Type | Field and Description |
|---|---|
protected GridRestProtocolHandler |
hnd
REST protocol handler.
|
protected IgniteLogger |
log
Logger.
|
| Constructor and Description |
|---|
GridRedisRestCommandHandler(IgniteLogger log,
GridRestProtocolHandler hnd)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract GridRestRequest |
asRestRequest(GridRedisMessage msg)
Converts
GridRedisMessage to GridRestRequest. |
IgniteInternalFuture<GridRedisMessage> |
handleAsync(GridRedisMessage msg) |
abstract ByteBuffer |
makeResponse(GridRestResponse resp,
List<String> params)
Prepares a response according to the request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportedCommandsprotected final IgniteLogger log
protected final GridRestProtocolHandler hnd
public GridRedisRestCommandHandler(IgniteLogger log, GridRestProtocolHandler hnd)
log - Logger.hnd - REST protocol handler.public IgniteInternalFuture<GridRedisMessage> handleAsync(GridRedisMessage msg)
handleAsync in interface GridRedisCommandHandlermsg - Request message.public abstract GridRestRequest asRestRequest(GridRedisMessage msg) throws IgniteCheckedException
GridRedisMessage to GridRestRequest.msg - GridRedisMessageGridRestRequestIgniteCheckedException - If fails.public abstract ByteBuffer makeResponse(GridRestResponse resp, List<String> params)
resp - REST response.params - Auxiliary parameters.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017