@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.Adapter
LifeCycle.Listener
Constructor and Description |
---|
ConnectorStatistics() |
Modifier and Type | Method and Description |
---|---|
static void |
addToAllConnectors(Server server) |
void |
doStart() |
void |
doStop() |
String |
dump() |
void |
dump(Appendable out,
String indent) |
int |
getBytesIn() |
int |
getBytesOut() |
long |
getConnectionDurationMax() |
double |
getConnectionDurationMean() |
double |
getConnectionDurationStdDev() |
int |
getConnections() |
int |
getConnectionsOpen() |
int |
getConnectionsOpenMax() |
int |
getMessagesIn() |
int |
getMessagesInPerConnectionMax() |
double |
getMessagesInPerConnectionMean() |
double |
getMessagesInPerConnectionStdDev() |
int |
getMessagesInPerSecond() |
int |
getMessagesOut() |
int |
getMessagesOutPerConnectionMax() |
double |
getMessagesOutPerConnectionMean() |
double |
getMessagesOutPerConnectionStdDev() |
int |
getMessagesOutPerSecond() |
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 duration maximum in ms") public long getConnectionDurationMax()
@ManagedAttribute(value="Connection duration mean in ms") public double getConnectionDurationMean()
@ManagedAttribute(value="Connection duration standard deviation") public double getConnectionDurationStdDev()
@ManagedAttribute(value="Messages In for all connections") public int getMessagesIn()
@ManagedAttribute(value="Messages In per connection maximum") public int getMessagesInPerConnectionMax()
@ManagedAttribute(value="Messages In per connection mean") public double getMessagesInPerConnectionMean()
@ManagedAttribute(value="Messages In per connection standard deviation") public double getMessagesInPerConnectionStdDev()
@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="Messages In per connection maximum") public int getMessagesOutPerConnectionMax()
@ManagedAttribute(value="Messages In per connection mean") public double getMessagesOutPerConnectionMean()
@ManagedAttribute(value="Messages In per connection standard deviation") public double getMessagesOutPerConnectionStdDev()
@ManagedAttribute(value="Connection statistics started ms since epoch") public long getStartedMillis()
@ManagedAttribute(value="Messages in per second calculated over period since last called") public int getMessagesInPerSecond()
@ManagedAttribute(value="Messages out per second calculated over period since last called") public int getMessagesOutPerSecond()
public void doStart()
doStart
in class AbstractLifeCycle
public void doStop()
doStop
in class AbstractLifeCycle
@ManagedOperation(value="Reset the statistics") public void reset()
@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-2015 Webtide. All Rights Reserved.