public abstract class AbstractTaskManagerFileHandler<M extends TaskManagerMessageParameters> extends AbstractHandler<RestfulGateway,EmptyRequestBody,M>
TaskExecutor
.log, MAPPER
leaderRetriever, localAddressFuture, logger, responseHeaders, timeout
Modifier | Constructor and Description |
---|---|
protected |
AbstractTaskManagerFileHandler(CompletableFuture<String> localAddressFuture,
GatewayRetriever<? extends RestfulGateway> leaderRetriever,
Time timeout,
Map<String,String> responseHeaders,
UntypedResponseMessageHeaders<EmptyRequestBody,M> untypedResponseMessageHeaders,
GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever,
TransientBlobService transientBlobService,
Time cacheEntryDuration) |
Modifier and Type | Method and Description |
---|---|
protected abstract CompletableFuture<TransientBlobKey> |
requestFileUpload(ResourceManagerGateway resourceManagerGateway,
ResourceID taskManagerResourceId) |
protected CompletableFuture<Void> |
respondToRequest(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx,
org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpRequest httpRequest,
HandlerRequest<EmptyRequestBody,M> handlerRequest,
RestfulGateway gateway)
Respond to the given
HandlerRequest . |
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 AbstractTaskManagerFileHandler(@Nonnull CompletableFuture<String> localAddressFuture, @Nonnull GatewayRetriever<? extends RestfulGateway> leaderRetriever, @Nonnull Time timeout, @Nonnull Map<String,String> responseHeaders, @Nonnull UntypedResponseMessageHeaders<EmptyRequestBody,M> untypedResponseMessageHeaders, @Nonnull GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever, @Nonnull TransientBlobService transientBlobService, @Nonnull Time cacheEntryDuration)
protected CompletableFuture<Void> respondToRequest(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx, org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpRequest httpRequest, HandlerRequest<EmptyRequestBody,M> handlerRequest, RestfulGateway gateway) throws RestHandlerException
AbstractHandler
HandlerRequest
.respondToRequest
in class AbstractHandler<RestfulGateway,EmptyRequestBody,M extends TaskManagerMessageParameters>
ctx
- channel handler context to write the responsehttpRequest
- original http requesthandlerRequest
- typed handler requestgateway
- leader gatewayRestHandlerException
- if an exception occurred while respondingprotected abstract CompletableFuture<TransientBlobKey> requestFileUpload(ResourceManagerGateway resourceManagerGateway, ResourceID taskManagerResourceId)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.