Class ClusterDataSetDeleteHandlers.ClusterDataSetDeleteTriggerHandler
- java.lang.Object
-
- org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerAdapter
-
- org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter
-
- org.apache.flink.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler<RoutedRequest>
-
- org.apache.flink.runtime.rest.handler.LeaderRetrievalHandler<T>
-
- org.apache.flink.runtime.rest.handler.AbstractHandler<T,R,M>
-
- org.apache.flink.runtime.rest.handler.AbstractRestHandler<T,B,TriggerResponse,M>
-
- org.apache.flink.runtime.rest.handler.async.AbstractAsynchronousOperationHandlers.TriggerHandler<RestfulGateway,EmptyRequestBody,ClusterDataSetDeleteTriggerMessageParameters>
-
- org.apache.flink.runtime.rest.handler.dataset.ClusterDataSetDeleteHandlers.ClusterDataSetDeleteTriggerHandler
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandler
,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler
,AutoCloseableAsync
- Enclosing class:
- ClusterDataSetDeleteHandlers
public class ClusterDataSetDeleteHandlers.ClusterDataSetDeleteTriggerHandler extends AbstractAsynchronousOperationHandlers.TriggerHandler<RestfulGateway,EmptyRequestBody,ClusterDataSetDeleteTriggerMessageParameters>
AbstractAsynchronousOperationHandlers.TriggerHandler
implementation for the cluster data set delete operation.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.rest.handler.AbstractHandler
log, MAPPER
-
Fields inherited from class org.apache.flink.runtime.rest.handler.LeaderRetrievalHandler
leaderRetriever, logger, responseHeaders, timeout
-
-
Constructor Summary
Constructors Constructor Description ClusterDataSetDeleteTriggerHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever, Duration timeout, Map<String,String> responseHeaders, GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OperationKey
createOperationKey(HandlerRequest<EmptyRequestBody> request)
Create the operation key under which the result future of the asynchronous operation will be stored.protected CompletableFuture<ClusterDataSetDeleteHandlers.SerializableVoid>
triggerOperation(HandlerRequest<EmptyRequestBody> request, RestfulGateway gateway)
Trigger the asynchronous operation and return its future result.-
Methods inherited from class org.apache.flink.runtime.rest.handler.async.AbstractAsynchronousOperationHandlers.TriggerHandler
handleRequest
-
Methods inherited from class org.apache.flink.runtime.rest.handler.AbstractRestHandler
getMessageHeaders, respondToRequest
-
Methods inherited from class org.apache.flink.runtime.rest.handler.AbstractHandler
closeAsync, closeHandlerAsync, respondAsLeader
-
Methods inherited from class org.apache.flink.runtime.rest.handler.LeaderRetrievalHandler
channelRead0, getTimeout
-
Methods inherited from class org.apache.flink.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.util.AutoCloseableAsync
close
-
-
-
-
Constructor Detail
-
ClusterDataSetDeleteTriggerHandler
public ClusterDataSetDeleteTriggerHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever, Duration timeout, Map<String,String> responseHeaders, GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever)
-
-
Method Detail
-
triggerOperation
protected CompletableFuture<ClusterDataSetDeleteHandlers.SerializableVoid> triggerOperation(HandlerRequest<EmptyRequestBody> request, RestfulGateway gateway) throws RestHandlerException
Description copied from class:AbstractAsynchronousOperationHandlers.TriggerHandler
Trigger the asynchronous operation and return its future result.- Specified by:
triggerOperation
in classAbstractAsynchronousOperationHandlers.TriggerHandler<RestfulGateway,EmptyRequestBody,ClusterDataSetDeleteTriggerMessageParameters>
- Parameters:
request
- with which the trigger handler has been calledgateway
- to the leader- Returns:
- Future result of the asynchronous operation
- Throws:
RestHandlerException
- if something went wrong
-
createOperationKey
protected OperationKey createOperationKey(HandlerRequest<EmptyRequestBody> request)
Description copied from class:AbstractAsynchronousOperationHandlers.TriggerHandler
Create the operation key under which the result future of the asynchronous operation will be stored.- Specified by:
createOperationKey
in classAbstractAsynchronousOperationHandlers.TriggerHandler<RestfulGateway,EmptyRequestBody,ClusterDataSetDeleteTriggerMessageParameters>
- Parameters:
request
- with which the trigger handler has been called.- Returns:
- Operation key under which the result future will be stored
-
-