R
- the response typeM
- the message parameters typepublic abstract class AbstractJobVertexHandler<R extends ResponseBody,M extends JobVertexMessageParameters> extends AbstractExecutionGraphHandler<R,M>
JobVertexIdPathParameter.KEY
" parameter) in a specific job,
defined via (defined via the "JobIDPathParameter.KEY
" parameter).log, MAPPER
leaderRetriever, localAddressFuture, logger, responseHeaders, timeout
Modifier | Constructor and Description |
---|---|
protected |
AbstractJobVertexHandler(CompletableFuture<String> localRestAddress,
GatewayRetriever<? extends RestfulGateway> leaderRetriever,
Time timeout,
Map<String,String> responseHeaders,
MessageHeaders<EmptyRequestBody,R,M> messageHeaders,
ExecutionGraphCache executionGraphCache,
Executor executor)
Instantiates a new Abstract job vertex handler.
|
Modifier and Type | Method and Description |
---|---|
protected R |
handleRequest(HandlerRequest<EmptyRequestBody,M> request,
AccessExecutionGraph executionGraph)
Called for each request after the corresponding
AccessExecutionGraph has been retrieved from the
ExecutionGraphCache . |
protected abstract R |
handleRequest(HandlerRequest<EmptyRequestBody,M> request,
AccessExecutionJobVertex jobVertex)
Called for each request after the corresponding
AccessExecutionJobVertex has been retrieved from the
AccessExecutionGraph . |
handleRequest
getMessageHeaders, respondToRequest
closeAsync, closeHandlerAsync, respondAsLeader
channelRead0
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected AbstractJobVertexHandler(CompletableFuture<String> localRestAddress, GatewayRetriever<? extends RestfulGateway> leaderRetriever, Time timeout, Map<String,String> responseHeaders, MessageHeaders<EmptyRequestBody,R,M> messageHeaders, ExecutionGraphCache executionGraphCache, Executor executor)
localRestAddress
- the local rest addressleaderRetriever
- the leader retrievertimeout
- the timeoutresponseHeaders
- the response headersmessageHeaders
- the message headersexecutionGraphCache
- the execution graph cacheexecutor
- the executorprotected R handleRequest(HandlerRequest<EmptyRequestBody,M> request, AccessExecutionGraph executionGraph) throws RestHandlerException
AbstractExecutionGraphHandler
AccessExecutionGraph
has been retrieved from the
ExecutionGraphCache
.handleRequest
in class AbstractExecutionGraphHandler<R extends ResponseBody,M extends JobVertexMessageParameters>
request
- for further informationexecutionGraph
- for which the handler was calledRestHandlerException
- if the handler could not process the requestprotected abstract R handleRequest(HandlerRequest<EmptyRequestBody,M> request, AccessExecutionJobVertex jobVertex) throws RestHandlerException
AccessExecutionJobVertex
has been retrieved from the
AccessExecutionGraph
.request
- the requestjobVertex
- the execution job vertexRestHandlerException
- if the handler could not process the requestCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.