@ManagedObject(value="Connector Statistics") public class ConnectorStatistics extends AbstractLifeCycle implements Dumpable, Connection.Listener
AbstractLifeCycle.AbstractLifeCycleListener
Connection.Listener.Empty
LifeCycle.Listener
Constructor and Description |
---|
ConnectorStatistics() |
Modifier and Type | Method and Description |
---|---|
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
public int getBytesIn()
public int getBytesOut()
public int getConnections()
public long getConnectionsDurationMax()
public double getConnectionsDurationMean()
public double getConnectionsDurationStdDev()
public long getConnectionsDurationTotal()
public int getConnectionsMessagesInMax()
public double getConnectionsMessagesInMean()
public double getConnectionsMessagesInStdDev()
public int getConnectionsOpen()
public int getConnectionsOpenMax()
public int getMessagesIn()
public int getMessagesOut()
public long getStartedMillis()
public void doStart()
doStart
in class AbstractLifeCycle
public void doStop()
doStop
in class AbstractLifeCycle
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
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.