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(GridNioSession ses,
GridRedisMessage msg) |
protected 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
public GridRedisRestCommandHandler(IgniteLogger log, GridRestProtocolHandler hnd)
log - Logger.hnd - REST protocol handler.public IgniteInternalFuture<GridRedisMessage> handleAsync(GridNioSession ses, GridRedisMessage msg)
handleAsync in interface GridRedisCommandHandlerses - Session.msg - Request message.@Nullable protected 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.7.5 Release Date : June 4 2019