R
- type of the responsepublic abstract class AbstractCheckpointHandler<R extends ResponseBody,M extends CheckpointMessageParameters> extends AbstractAccessExecutionGraphHandler<R,M>
log, MAPPER
leaderRetriever, logger, responseHeaders, timeout
Modifier | Constructor and Description |
---|---|
protected |
AbstractCheckpointHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever,
Time timeout,
Map<String,String> responseHeaders,
MessageHeaders<EmptyRequestBody,R,M> messageHeaders,
ExecutionGraphCache executionGraphCache,
Executor executor,
CheckpointStatsCache checkpointStatsCache) |
Modifier and Type | Method and Description |
---|---|
protected abstract R |
handleCheckpointRequest(HandlerRequest<EmptyRequestBody> request,
AbstractCheckpointStats checkpointStats)
Called for each request with the corresponding
AbstractCheckpointStats instance. |
protected R |
handleRequest(HandlerRequest<EmptyRequestBody> request,
AccessExecutionGraph executionGraph) |
handleRequest
handleRequest
getMessageHeaders, respondToRequest
closeAsync, closeHandlerAsync, respondAsLeader
channelRead0
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected AbstractCheckpointHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever, Time timeout, Map<String,String> responseHeaders, MessageHeaders<EmptyRequestBody,R,M> messageHeaders, ExecutionGraphCache executionGraphCache, Executor executor, CheckpointStatsCache checkpointStatsCache)
protected R handleRequest(HandlerRequest<EmptyRequestBody> request, AccessExecutionGraph executionGraph) throws RestHandlerException
handleRequest
in class AbstractAccessExecutionGraphHandler<R extends ResponseBody,M extends CheckpointMessageParameters>
RestHandlerException
protected abstract R handleCheckpointRequest(HandlerRequest<EmptyRequestBody> request, AbstractCheckpointStats checkpointStats) throws RestHandlerException
AbstractCheckpointStats
instance.request
- for further informationcheckpointStats
- for which the handler is calledRestHandlerException
- if the handler could not handle the requestCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.