Package org.graylog2.plugin.inputs.util
Class ThroughputCounter
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.netty.handler.traffic.AbstractTrafficShapingHandler
io.netty.handler.traffic.GlobalTrafficShapingHandler
org.graylog2.plugin.inputs.util.ThroughputCounter
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
,io.netty.channel.ChannelOutboundHandler
@Sharable
public class ThroughputCounter
extends io.netty.handler.traffic.GlobalTrafficShapingHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class io.netty.handler.traffic.AbstractTrafficShapingHandler
checkInterval, DEFAULT_CHECK_INTERVAL, DEFAULT_MAX_TIME, maxTime, trafficCounter
-
Constructor Summary
-
Method Summary
Methods inherited from class io.netty.handler.traffic.GlobalTrafficShapingHandler
getMaxGlobalWriteSize, handlerAdded, handlerRemoved, queuesSize, release, setMaxGlobalWriteSize, userDefinedWritabilityIndex
Methods inherited from class io.netty.handler.traffic.AbstractTrafficShapingHandler
calculateSize, channelRead, channelRegistered, configure, configure, configure, doAccounting, getCheckInterval, getMaxTimeWait, getMaxWriteDelay, getMaxWriteSize, getReadLimit, getWriteLimit, isHandlerActive, read, setCheckInterval, setMaxTimeWait, setMaxWriteDelay, setMaxWriteSize, setReadLimit, setWriteLimit, submitWrite, toString, trafficCounter, write
Methods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Field Details
-
READ_BYTES_1_SEC
- See Also:
-
WRITTEN_BYTES_1_SEC
- See Also:
-
READ_BYTES_TOTAL
- See Also:
-
WRITTEN_BYTES_TOTAL
- See Also:
-
-
Constructor Details
-
ThroughputCounter
@Inject public ThroughputCounter(io.netty.channel.EventLoopGroup executor)
-
-
Method Details
-
gauges
-