public class SavepointDisposalHandlers.SavepointDisposalTriggerHandler extends AbstractAsynchronousOperationHandlers.TriggerHandler<RestfulGateway,SavepointDisposalRequest,EmptyMessageParameters>
TriggerHandler implementation for the savepoint disposal operation.log, MAPPERleaderRetriever, logger, responseHeaders, timeout| Constructor and Description |
|---|
SavepointDisposalTriggerHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever,
org.apache.flink.api.common.time.Time timeout,
Map<String,String> responseHeaders) |
| Modifier and Type | Method and Description |
|---|---|
protected OperationKey |
createOperationKey(HandlerRequest<SavepointDisposalRequest> request)
Create the operation key under which the result future of the asynchronous operation will
be stored.
|
protected CompletableFuture<Acknowledge> |
triggerOperation(HandlerRequest<SavepointDisposalRequest> request,
RestfulGateway gateway)
Trigger the asynchronous operation and return its future result.
|
handleRequestgetMessageHeaders, respondToRequestcloseAsync, closeHandlerAsync, respondAsLeaderchannelRead0acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic SavepointDisposalTriggerHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever, org.apache.flink.api.common.time.Time timeout, Map<String,String> responseHeaders)
protected CompletableFuture<Acknowledge> triggerOperation(HandlerRequest<SavepointDisposalRequest> request, RestfulGateway gateway) throws RestHandlerException
AbstractAsynchronousOperationHandlers.TriggerHandlertriggerOperation in class AbstractAsynchronousOperationHandlers.TriggerHandler<RestfulGateway,SavepointDisposalRequest,EmptyMessageParameters>request - with which the trigger handler has been calledgateway - to the leaderRestHandlerException - if something went wrongprotected OperationKey createOperationKey(HandlerRequest<SavepointDisposalRequest> request)
AbstractAsynchronousOperationHandlers.TriggerHandlercreateOperationKey in class AbstractAsynchronousOperationHandlers.TriggerHandler<RestfulGateway,SavepointDisposalRequest,EmptyMessageParameters>request - with which the trigger handler has been called.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.