@ChannelHandler.Sharable public class TaskManagerLogHandler extends RedirectHandler<JobManagerGateway> implements WebHandler
This code is based on the "HttpStaticFileServerHandler" from the Netty project's HTTP server example.
| Modifier and Type | Class and Description |
|---|---|
static class |
TaskManagerLogHandler.FileMode
Used to control whether this handler serves the .log or .out file.
|
leaderRetriever, localAddressFuture, logger, responseHeaders, timeout| Constructor and Description |
|---|
TaskManagerLogHandler(GatewayRetriever<JobManagerGateway> retriever,
Executor executor,
CompletableFuture<String> localJobManagerAddressPromise,
org.apache.flink.api.common.time.Time timeout,
TaskManagerLogHandler.FileMode fileMode,
org.apache.flink.configuration.Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getPaths()
Returns an array of REST URL's under which this handler can be registered.
|
protected void |
respondAsLeader(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx,
org.apache.flink.shaded.netty4.io.netty.handler.codec.http.router.Routed routed,
JobManagerGateway jobManagerGateway)
Response when running with leading JobManager.
|
channelRead0acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic TaskManagerLogHandler(GatewayRetriever<JobManagerGateway> retriever, Executor executor, CompletableFuture<String> localJobManagerAddressPromise, org.apache.flink.api.common.time.Time timeout, TaskManagerLogHandler.FileMode fileMode, org.apache.flink.configuration.Configuration config)
public String[] getPaths()
WebHandlergetPaths in interface WebHandlerprotected void respondAsLeader(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx,
org.apache.flink.shaded.netty4.io.netty.handler.codec.http.router.Routed routed,
JobManagerGateway jobManagerGateway)
respondAsLeader in class RedirectHandler<JobManagerGateway>Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.