@ManagedObject(value="Connector Statistics") public class ConnectorStatistics extends AbstractLifeCycle implements Dumpable, Connection.Listener
ContainerLifeCycle.addBean(Object)
will register the listener with all connections accepted by that connector.AbstractLifeCycle.AbstractLifeCycleListener
Connection.Listener.Empty
LifeCycle.Listener
Constructor and Description |
---|
ConnectorStatistics() |
Modifier and Type | Method and Description |
---|---|
static void |
addToAllConnectors(Server server) |
void |
connectionClosed(long duration,
int messagesIn,
int messagesOut) |
void |
connectionOpened() |
void |
connectionUpgraded(int messagesIn,
int messagesOut) |
void |
doStart() |
void |
doStop() |
String |
dump() |
void |
dump(Appendable out,
String indent) |
int |
getBytesIn() |
int |
getBytesOut() |
int |
getConnections() |
long |
getConnectionsDurationMax() |
double |
getConnectionsDurationMean() |
double |
getConnectionsDurationStdDev() |
long |
getConnectionsDurationTotal() |
int |
getConnectionsMessagesInMax() |
double |
getConnectionsMessagesInMean() |
double |
getConnectionsMessagesInStdDev() |
int |
getConnectionsOpen() |
int |
getConnectionsOpenMax() |
int |
getMessagesIn() |
int |
getMessagesOut() |
long |
getStartedMillis() |
void |
onClosed(Connection connection) |
void |
onOpened(Connection connection) |
void |
reset() |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
public void onOpened(Connection connection)
onOpened
in interface Connection.Listener
public void onClosed(Connection connection)
onClosed
in interface Connection.Listener
@ManagedAttribute(value="Total number of bytes received by this connector") public int getBytesIn()
@ManagedAttribute(value="Total number of bytes sent by this connector") public int getBytesOut()
@ManagedAttribute(value="Total number of connections seen by this connector") public int getConnections()
@ManagedAttribute(value="Connection duraton maximum in ms") public long getConnectionsDurationMax()
@ManagedAttribute(value="Connection duraton mean in ms") public double getConnectionsDurationMean()
@ManagedAttribute(value="Connection duraton standard deviation") public double getConnectionsDurationStdDev()
@ManagedAttribute(value="Connection duraton total of all connections in ms") public long getConnectionsDurationTotal()
@ManagedAttribute(value="Messages In for all connections") public int getMessagesIn()
@ManagedAttribute(value="Messages In per connection maximum") public int getConnectionsMessagesInMax()
@ManagedAttribute(value="Messages In per connection mean") public double getConnectionsMessagesInMean()
@ManagedAttribute(value="Messages In per connection standard deviation") public double getConnectionsMessagesInStdDev()
@ManagedAttribute(value="Connections open") public int getConnectionsOpen()
@ManagedAttribute(value="Connections open maximum") public int getConnectionsOpenMax()
@ManagedAttribute(value="Messages Out for all connections") public int getMessagesOut()
@ManagedAttribute(value="Connection statistics started ms since epoch") public long getStartedMillis()
public void doStart()
doStart
in class AbstractLifeCycle
public void doStop()
doStop
in class AbstractLifeCycle
@ManagedOperation(value="Reset the statistics") public void reset()
public void connectionOpened()
public void connectionUpgraded(int messagesIn, int messagesOut)
public void connectionClosed(long duration, int messagesIn, int messagesOut)
@ManagedOperation(value="dump thread state") public String dump()
public void dump(Appendable out, String indent) throws IOException
dump
in interface Dumpable
IOException
public static void addToAllConnectors(Server server)
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.