public class SavepointHandlers.SavepointStatusHandler extends AbstractAsynchronousOperationHandlers.StatusHandler<RestfulGateway,SavepointInfo,SavepointStatusMessageParameters>
log, MAPPERleaderRetriever, logger, responseHeaders, timeout| Constructor and Description |
|---|
SavepointStatusHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever,
org.apache.flink.api.common.time.Time timeout,
Map<String,String> responseHeaders) |
| Modifier and Type | Method and Description |
|---|---|
protected SavepointInfo |
exceptionalOperationResultResponse(Throwable throwable)
Create an exceptional operation result from the given
Throwable. |
protected AsynchronousJobOperationKey |
getOperationKey(HandlerRequest<EmptyRequestBody,SavepointStatusMessageParameters> request)
Extract the operation key under which the operation result future is stored.
|
protected SavepointInfo |
operationResultResponse(String operationResult)
Create the operation result from the given value.
|
closeHandlerAsync, handleRequestgetMessageHeaders, respondToRequestcloseAsync, respondAsLeaderchannelRead0acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic SavepointStatusHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever, org.apache.flink.api.common.time.Time timeout, Map<String,String> responseHeaders)
protected AsynchronousJobOperationKey getOperationKey(HandlerRequest<EmptyRequestBody,SavepointStatusMessageParameters> request)
AbstractAsynchronousOperationHandlers.StatusHandlergetOperationKey in class AbstractAsynchronousOperationHandlers.StatusHandler<RestfulGateway,SavepointInfo,SavepointStatusMessageParameters>request - with which the status handler has been calledprotected SavepointInfo exceptionalOperationResultResponse(Throwable throwable)
AbstractAsynchronousOperationHandlers.StatusHandlerThrowable. This
method is called if the asynchronous operation failed.exceptionalOperationResultResponse in class AbstractAsynchronousOperationHandlers.StatusHandler<RestfulGateway,SavepointInfo,SavepointStatusMessageParameters>throwable - failure of the asynchronous operationprotected SavepointInfo operationResultResponse(String operationResult)
AbstractAsynchronousOperationHandlers.StatusHandleroperationResultResponse in class AbstractAsynchronousOperationHandlers.StatusHandler<RestfulGateway,SavepointInfo,SavepointStatusMessageParameters>operationResult - of the asynchronous operationCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.