public class ConnectionCounter
extends org.jboss.netty.channel.SimpleChannelHandler
Constructor and Description |
---|
ConnectionCounter() |
Modifier and Type | Method and Description |
---|---|
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
com.codahale.metrics.Gauge<Integer> |
gaugeCurrent() |
com.codahale.metrics.Gauge<Long> |
gaugeTotal() |
int |
getConnectionCount() |
long |
getTotalConnections() |
bindRequested, channelBound, channelClosed, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleDownstream, handleUpstream, messageReceived, setInterestOpsRequested, unbindRequested, writeComplete, writeRequested
public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
channelConnected
in class org.jboss.netty.channel.SimpleChannelHandler
Exception
public void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
channelDisconnected
in class org.jboss.netty.channel.SimpleChannelHandler
Exception
public int getConnectionCount()
public long getTotalConnections()
public com.codahale.metrics.Gauge<Integer> gaugeCurrent()
public com.codahale.metrics.Gauge<Long> gaugeTotal()
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.