R - the response typeM - the message parameters typepublic abstract class AbstractSubtaskAttemptHandler<R extends ResponseBody,M extends SubtaskAttemptMessageParameters> extends AbstractSubtaskHandler<R,M>
SubtaskAttemptPathParameter.KEY" of a specific subtask (defined via the "SubtaskIndexPathParameter.KEY" in a specific job vertex, (defined via the "JobVertexIdPathParameter.KEY" parameter) in a specific job, defined via (defined via the "JobIDPathParameter.KEY" parameter).log, MAPPERleaderRetriever, logger, responseHeaders, timeout| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSubtaskAttemptHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever,
org.apache.flink.api.common.time.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 abstract R |
handleRequest(HandlerRequest<EmptyRequestBody> request,
AccessExecution execution)
Called for each request after the corresponding
AccessExecution has been retrieved
from the AccessExecutionVertex. |
protected R |
handleRequest(HandlerRequest<EmptyRequestBody> request,
AccessExecutionVertex executionVertex)
Called for each request after the corresponding
AccessExecutionVertex has been
retrieved from the AccessExecutionJobVertex. |
handleRequesthandleRequesthandleRequesthandleRequestgetMessageHeaders, respondToRequestcloseAsync, closeHandlerAsync, respondAsLeaderchannelRead0acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected AbstractSubtaskAttemptHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever, org.apache.flink.api.common.time.Time timeout, Map<String,String> responseHeaders, MessageHeaders<EmptyRequestBody,R,M> messageHeaders, ExecutionGraphCache executionGraphCache, Executor executor)
leaderRetriever - the leader retrievertimeout - the timeoutresponseHeaders - the response headersmessageHeaders - the message headersexecutionGraphCache - the execution graph cacheexecutor - the executorprotected R handleRequest(HandlerRequest<EmptyRequestBody> request, AccessExecutionVertex executionVertex) throws RestHandlerException
AbstractSubtaskHandlerAccessExecutionVertex has been
retrieved from the AccessExecutionJobVertex.handleRequest in class AbstractSubtaskHandler<R extends ResponseBody,M extends SubtaskAttemptMessageParameters>request - the requestexecutionVertex - the execution vertexRestHandlerException - the rest handler exceptionprotected abstract R handleRequest(HandlerRequest<EmptyRequestBody> request, AccessExecution execution) throws RestHandlerException
AccessExecution has been retrieved
from the AccessExecutionVertex.request - the requestexecution - the executionRestHandlerException - the rest handler exceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.