@ChannelHandler.Sharable
public abstract class RuntimeMonitorHandlerBase
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.router.Routed>
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 |
---|---|
protected String |
localJobManagerAddress |
protected scala.concurrent.Future<String> |
localJobManagerAddressFuture |
protected scala.concurrent.duration.FiniteDuration |
timeout |
Constructor and Description |
---|
RuntimeMonitorHandlerBase(JobManagerRetriever retriever,
scala.concurrent.Future<String> localJobManagerAddressFuture,
scala.concurrent.duration.FiniteDuration timeout) |
Modifier and Type | Method and Description |
---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.router.Routed routed) |
protected abstract void |
respondAsLeader(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.router.Routed routed,
ActorGateway jobManager) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, handlerRemoved, isSharable
protected final scala.concurrent.Future<String> localJobManagerAddressFuture
protected final scala.concurrent.duration.FiniteDuration timeout
protected String localJobManagerAddress
public RuntimeMonitorHandlerBase(JobManagerRetriever retriever, scala.concurrent.Future<String> localJobManagerAddressFuture, scala.concurrent.duration.FiniteDuration timeout)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.router.Routed routed) throws Exception
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.router.Routed>
Exception
protected abstract void respondAsLeader(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.router.Routed routed, ActorGateway jobManager)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.