public class JobPlanHandler extends AbstractExecutionGraphHandler<JobPlanInfo,JobMessageParameters>
log
leaderRetriever, localAddressFuture, logger, timeout
Constructor and Description |
---|
JobPlanHandler(CompletableFuture<String> localRestAddress,
GatewayRetriever<? extends RestfulGateway> leaderRetriever,
Time timeout,
MessageHeaders<EmptyRequestBody,JobPlanInfo,JobMessageParameters> messageHeaders,
ExecutionGraphCache executionGraphCache,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
protected JobPlanInfo |
handleRequest(HandlerRequest<EmptyRequestBody,JobMessageParameters> request,
AccessExecutionGraph executionGraph)
Called for each request after the corresponding
AccessExecutionGraph has been retrieved from the
ExecutionGraphCache . |
handleRequest
getMessageHeaders, respondAsLeader
channelRead0
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, handlerRemoved, isSharable
public JobPlanHandler(CompletableFuture<String> localRestAddress, GatewayRetriever<? extends RestfulGateway> leaderRetriever, Time timeout, MessageHeaders<EmptyRequestBody,JobPlanInfo,JobMessageParameters> messageHeaders, ExecutionGraphCache executionGraphCache, Executor executor)
protected JobPlanInfo handleRequest(HandlerRequest<EmptyRequestBody,JobMessageParameters> request, AccessExecutionGraph executionGraph) throws RestHandlerException
AbstractExecutionGraphHandler
AccessExecutionGraph
has been retrieved from the
ExecutionGraphCache
.handleRequest
in class AbstractExecutionGraphHandler<JobPlanInfo,JobMessageParameters>
request
- for further informationexecutionGraph
- for which the handler was calledRestHandlerException
- if the handler could not process the requestCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.