R
- the response typeM
- the message parameter typepublic abstract class AbstractAccessExecutionGraphHandler<R extends ResponseBody,M extends JobMessageParameters> extends AbstractExecutionGraphHandler<R,M>
AbstractAccessExecutionGraphHandler
handles requests that require accessing the job's
AccessExecutionGraph
.log, MAPPER
leaderRetriever, logger, responseHeaders, timeout
Modifier | Constructor and Description |
---|---|
protected |
AbstractAccessExecutionGraphHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever,
Time timeout,
Map<String,String> responseHeaders,
MessageHeaders<EmptyRequestBody,R,M> messageHeaders,
ExecutionGraphCache executionGraphCache,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
protected abstract R |
handleRequest(HandlerRequest<EmptyRequestBody> request,
AccessExecutionGraph executionGraph) |
protected R |
handleRequest(HandlerRequest<EmptyRequestBody> request,
ExecutionGraphInfo executionGraphInfo)
Called for each request after the corresponding
ExecutionGraphInfo has been retrieved
from the ExecutionGraphCache . |
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 AbstractAccessExecutionGraphHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever, Time timeout, Map<String,String> responseHeaders, MessageHeaders<EmptyRequestBody,R,M> messageHeaders, ExecutionGraphCache executionGraphCache, Executor executor)
protected R handleRequest(HandlerRequest<EmptyRequestBody> request, ExecutionGraphInfo executionGraphInfo) throws RestHandlerException
AbstractExecutionGraphHandler
ExecutionGraphInfo
has been retrieved
from the ExecutionGraphCache
.handleRequest
in class AbstractExecutionGraphHandler<R extends ResponseBody,M extends JobMessageParameters>
request
- for further informationexecutionGraphInfo
- for which the handler was calledRestHandlerException
- if the handler could not process the requestprotected abstract R handleRequest(HandlerRequest<EmptyRequestBody> request, AccessExecutionGraph executionGraph) throws RestHandlerException
RestHandlerException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.