Package org.eclipse.jetty.io
Class ConnectionStatistics
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.io.ConnectionStatistics
-
- All Implemented Interfaces:
Connection.Listener,Dumpable,LifeCycle
- Direct Known Subclasses:
IncludeExcludeConnectionStatistics,ServerConnectionStatistics
@ManagedObject("Tracks statistics on connections") @Deprecated public class ConnectionStatistics extends AbstractLifeCycle implements Connection.Listener, Dumpable
Deprecated.This api is not supported anymore. Please do not use it.A
Connection.Listenerthat tracks connection statistics.Adding an instance of this class as a bean to a server Connector (for the server) or to HttpClient (for the client) will trigger the tracking of the connection statistics for all connections managed by the server Connector or by HttpClient.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection.Listener
Connection.Listener.Adapter
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description ConnectionStatistics()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Stringdump()Deprecated.voiddump(java.lang.Appendable out, java.lang.String indent)Deprecated.Dump this object (and children) into an Appendable using the provided indent after any new lines.longgetConnectionDurationMax()Deprecated.doublegetConnectionDurationMean()Deprecated.doublegetConnectionDurationStdDev()Deprecated.longgetConnections()Deprecated.longgetConnectionsMax()Deprecated.longgetConnectionsTotal()Deprecated.longgetReceivedBytes()Deprecated.longgetReceivedBytesRate()Deprecated.longgetReceivedMessages()Deprecated.longgetReceivedMessagesRate()Deprecated.longgetSentBytes()Deprecated.longgetSentBytesRate()Deprecated.longgetSentMessages()Deprecated.longgetSentMessagesRate()Deprecated.voidonClosed(Connection connection)Deprecated.voidonOpened(Connection connection)Deprecated.voidreset()Deprecated.java.lang.StringtoString()Deprecated.-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
-
-
-
-
Method Detail
-
reset
@ManagedOperation(value="Resets the statistics", impact="ACTION") public void reset()
Deprecated.
-
onOpened
public void onOpened(Connection connection)
Deprecated.- Specified by:
onOpenedin interfaceConnection.Listener
-
onClosed
public void onClosed(Connection connection)
Deprecated.- Specified by:
onClosedin interfaceConnection.Listener
-
getReceivedBytes
@ManagedAttribute("Total number of bytes received by tracked connections") public long getReceivedBytes()
Deprecated.
-
getReceivedBytesRate
@ManagedAttribute("Total number of bytes received per second since the last invocation of this method") public long getReceivedBytesRate()
Deprecated.
-
getSentBytes
@ManagedAttribute("Total number of bytes sent by tracked connections") public long getSentBytes()
Deprecated.
-
getSentBytesRate
@ManagedAttribute("Total number of bytes sent per second since the last invocation of this method") public long getSentBytesRate()
Deprecated.
-
getConnectionDurationMax
@ManagedAttribute("The max duration of a connection in ms") public long getConnectionDurationMax()
Deprecated.
-
getConnectionDurationMean
@ManagedAttribute("The mean duration of a connection in ms") public double getConnectionDurationMean()
Deprecated.
-
getConnectionDurationStdDev
@ManagedAttribute("The standard deviation of the duration of a connection") public double getConnectionDurationStdDev()
Deprecated.
-
getConnectionsTotal
@ManagedAttribute("The total number of connections opened") public long getConnectionsTotal()
Deprecated.
-
getConnections
@ManagedAttribute("The current number of open connections") public long getConnections()
Deprecated.
-
getConnectionsMax
@ManagedAttribute("The max number of open connections") public long getConnectionsMax()
Deprecated.
-
getReceivedMessages
@ManagedAttribute("The total number of messages received") public long getReceivedMessages()
Deprecated.
-
getReceivedMessagesRate
@ManagedAttribute("Total number of messages received per second since the last invocation of this method") public long getReceivedMessagesRate()
Deprecated.
-
getSentMessages
@ManagedAttribute("The total number of messages sent") public long getSentMessages()
Deprecated.
-
getSentMessagesRate
@ManagedAttribute("Total number of messages sent per second since the last invocation of this method") public long getSentMessagesRate()
Deprecated.
-
dump
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOExceptionDeprecated.Description copied from interface:DumpableDump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classAbstractLifeCycle
-
-