public abstract class GridRedisRestCommandHandler extends Object implements GridRedisCommandHandler
| Modifier and Type | Field and Description |
|---|---|
protected GridKernalContext |
ctx
Kernel context.
|
protected GridRestProtocolHandler |
hnd
REST protocol handler.
|
protected IgniteLogger |
log
Logger.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GridRedisRestCommandHandler(IgniteLogger log,
GridRestProtocolHandler hnd,
GridKernalContext ctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract GridRestRequest |
asRestRequest(GridRedisMessage msg)
Converts
GridRedisMessage to GridRestRequest. |
IgniteInternalFuture<GridRedisMessage> |
handleAsync(GridNioSession ses,
GridRedisMessage msg) |
protected @Nullable Long |
longValue(String name,
List<String> params)
Retrieves long value following the parameter name from parameters list.
|
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
protected final GridKernalContext ctx
protected GridRedisRestCommandHandler(IgniteLogger log, GridRestProtocolHandler hnd, GridKernalContext ctx)
log - Logger.hnd - REST protocol handler.ctx - Kernal context.public IgniteInternalFuture<GridRedisMessage> handleAsync(GridNioSession ses, GridRedisMessage msg)
handleAsync in interface GridRedisCommandHandlerses - Session.msg - Request message.@Nullable protected @Nullable Long longValue(String name, List<String> params) throws GridRedisGenericException
name - Parameter name.params - Parameters list.GridRedisGenericException - If parsing failed.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 Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020