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, writeRequestedpublic void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelConnected in class org.jboss.netty.channel.SimpleChannelHandlerExceptionpublic void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
channelDisconnected in class org.jboss.netty.channel.SimpleChannelHandlerExceptionpublic int getConnectionCount()
public long getTotalConnections()
public com.codahale.metrics.Gauge<Integer> gaugeCurrent()
public com.codahale.metrics.Gauge<Long> gaugeTotal()
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.