@ManagedObject(value="Connector Statistics") public class ConnectorStatistics extends AbstractLifeCycle implements Dumpable, Connection.Listener
AbstractLifeCycle.AbstractLifeCycleListenerConnection.Listener.EmptyLifeCycle.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, stoppublic void onOpened(Connection connection)
onOpened in interface Connection.Listenerpublic void onClosed(Connection connection)
onClosed in interface Connection.Listenerpublic 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 AbstractLifeCyclepublic void doStop()
doStop in class AbstractLifeCyclepublic 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 DumpableIOExceptionCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.