@ChannelHandler.Sharable
public class RuntimeMonitorHandler
extends org.apache.flink.runtime.rest.handler.RedirectHandler<org.apache.flink.runtime.jobmaster.JobManagerGateway>
implements org.apache.flink.runtime.rest.handler.WebHandler
RequestHandler
.
This handler also deals with setting correct response MIME types and returning
proper codes, like OK, NOT_FOUND, or SERVER_ERROR.Modifier and Type | Field and Description |
---|---|
static String |
WEB_MONITOR_ADDRESS_KEY |
Constructor and Description |
---|
RuntimeMonitorHandler(WebMonitorConfig cfg,
org.apache.flink.runtime.rest.handler.legacy.RequestHandler handler,
org.apache.flink.runtime.webmonitor.retriever.GatewayRetriever<org.apache.flink.runtime.jobmaster.JobManagerGateway> retriever,
CompletableFuture<String> localJobManagerAddressFuture,
org.apache.flink.api.common.time.Time timeout) |
Modifier and Type | Method and Description |
---|---|
String[] |
getPaths() |
protected void |
respondAsLeader(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx,
org.apache.flink.runtime.rest.handler.router.RoutedRequest routedRequest,
org.apache.flink.runtime.jobmaster.JobManagerGateway jobManagerGateway) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public static final String WEB_MONITOR_ADDRESS_KEY
public RuntimeMonitorHandler(WebMonitorConfig cfg, org.apache.flink.runtime.rest.handler.legacy.RequestHandler handler, org.apache.flink.runtime.webmonitor.retriever.GatewayRetriever<org.apache.flink.runtime.jobmaster.JobManagerGateway> retriever, CompletableFuture<String> localJobManagerAddressFuture, org.apache.flink.api.common.time.Time timeout)
public String[] getPaths()
getPaths
in interface org.apache.flink.runtime.rest.handler.WebHandler
protected void respondAsLeader(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx, org.apache.flink.runtime.rest.handler.router.RoutedRequest routedRequest, org.apache.flink.runtime.jobmaster.JobManagerGateway jobManagerGateway)
respondAsLeader
in class org.apache.flink.runtime.rest.handler.RedirectHandler<org.apache.flink.runtime.jobmaster.JobManagerGateway>
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.