Class GridCacheCommandHandler
- java.lang.Object
-
- org.apache.ignite.internal.processors.rest.handlers.GridRestCommandHandlerAdapter
-
- org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler
-
- All Implemented Interfaces:
GridRestCommandHandler
public class GridCacheCommandHandler extends GridRestCommandHandlerAdapter
Command handler for API requests.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.rest.handlers.GridRestCommandHandlerAdapter
ctx, log
-
-
Constructor Summary
Constructors Constructor Description GridCacheCommandHandler(GridKernalContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IgniteInternalFuture<GridRestResponse>handleAsync(GridRestRequest req)protected IgniteInternalCache<Object,Object>localCache(String cacheName)Collection<GridRestCommand>supportedCommands()StringtoString()-
Methods inherited from class org.apache.ignite.internal.processors.rest.handlers.GridRestCommandHandlerAdapter
missingParameter
-
-
-
-
Constructor Detail
-
GridCacheCommandHandler
public GridCacheCommandHandler(GridKernalContext ctx)
- Parameters:
ctx- Context.
-
-
Method Detail
-
supportedCommands
public Collection<GridRestCommand> supportedCommands()
- Returns:
- Collection of supported commands.
-
handleAsync
public IgniteInternalFuture<GridRestResponse> handleAsync(GridRestRequest req)
- Parameters:
req- Request.- Returns:
- Future.
-
localCache
protected IgniteInternalCache<Object,Object> localCache(String cacheName) throws IgniteCheckedException
- Parameters:
cacheName- Name of the cache.- Returns:
- Instance on the named cache.
- Throws:
IgniteCheckedException- If cache not found.
-
-