Package org.eclipse.jetty.server
Class ConnectorStatistics
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.server.ConnectorStatistics
- All Implemented Interfaces:
Connection.Listener,org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.LifeCycle
@Deprecated
@ManagedObject("Connector Statistics")
public class ConnectorStatistics
extends org.eclipse.jetty.util.component.AbstractLifeCycle
implements org.eclipse.jetty.util.component.Dumpable, Connection.Listener
Deprecated.
A Connector.Listener that gathers Connector and Connections Statistics.
Adding an instance of this class as with
ContainerLifeCycle.addBean(Object)
will register the listener with all connections accepted by that connector.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection.Listener
Connection.Listener.AdapterNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddToAllConnectors(Server server) Deprecated.voiddoStart()Deprecated.voiddoStop()Deprecated.dump()Deprecated.voiddump(Appendable out, String indent) Deprecated.intDeprecated.intDeprecated.longDeprecated.doubleDeprecated.doubleDeprecated.intDeprecated.intDeprecated.intDeprecated.intDeprecated.intDeprecated.doubleDeprecated.doubleDeprecated.intDeprecated.intDeprecated.intDeprecated.doubleDeprecated.doubleDeprecated.intDeprecated.longDeprecated.voidonClosed(Connection connection) Deprecated.voidonOpened(Connection connection) Deprecated.voidreset()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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelf
-
Constructor Details
-
ConnectorStatistics
public ConnectorStatistics()Deprecated.
-
-
Method Details
-
onOpened
Deprecated.- Specified by:
onOpenedin interfaceConnection.Listener
-
onClosed
Deprecated.- Specified by:
onClosedin interfaceConnection.Listener
-
getBytesIn
@ManagedAttribute("Total number of bytes received by this connector") public int getBytesIn()Deprecated. -
getBytesOut
@ManagedAttribute("Total number of bytes sent by this connector") public int getBytesOut()Deprecated. -
getConnections
@ManagedAttribute("Total number of connections seen by this connector") public int getConnections()Deprecated. -
getConnectionDurationMax
@ManagedAttribute("Connection duration maximum in ms") public long getConnectionDurationMax()Deprecated. -
getConnectionDurationMean
@ManagedAttribute("Connection duration mean in ms") public double getConnectionDurationMean()Deprecated. -
getConnectionDurationStdDev
@ManagedAttribute("Connection duration standard deviation") public double getConnectionDurationStdDev()Deprecated. -
getMessagesIn
@ManagedAttribute("Messages In for all connections") public int getMessagesIn()Deprecated. -
getMessagesInPerConnectionMax
@ManagedAttribute("Messages In per connection maximum") public int getMessagesInPerConnectionMax()Deprecated. -
getMessagesInPerConnectionMean
@ManagedAttribute("Messages In per connection mean") public double getMessagesInPerConnectionMean()Deprecated. -
getMessagesInPerConnectionStdDev
@ManagedAttribute("Messages In per connection standard deviation") public double getMessagesInPerConnectionStdDev()Deprecated. -
getConnectionsOpen
@ManagedAttribute("Connections open") public int getConnectionsOpen()Deprecated. -
getConnectionsOpenMax
@ManagedAttribute("Connections open maximum") public int getConnectionsOpenMax()Deprecated. -
getMessagesOut
@ManagedAttribute("Messages Out for all connections") public int getMessagesOut()Deprecated. -
getMessagesOutPerConnectionMax
@ManagedAttribute("Messages In per connection maximum") public int getMessagesOutPerConnectionMax()Deprecated. -
getMessagesOutPerConnectionMean
@ManagedAttribute("Messages In per connection mean") public double getMessagesOutPerConnectionMean()Deprecated. -
getMessagesOutPerConnectionStdDev
@ManagedAttribute("Messages In per connection standard deviation") public double getMessagesOutPerConnectionStdDev()Deprecated. -
getStartedMillis
@ManagedAttribute("Connection statistics started ms since epoch") public long getStartedMillis()Deprecated. -
getMessagesInPerSecond
@ManagedAttribute("Messages in per second calculated over period since last called") public int getMessagesInPerSecond()Deprecated. -
getMessagesOutPerSecond
@ManagedAttribute("Messages out per second calculated over period since last called") public int getMessagesOutPerSecond()Deprecated. -
doStart
public void doStart()Deprecated.- Overrides:
doStartin classorg.eclipse.jetty.util.component.AbstractLifeCycle
-
doStop
public void doStop()Deprecated.- Overrides:
doStopin classorg.eclipse.jetty.util.component.AbstractLifeCycle
-
reset
@ManagedOperation("Reset the statistics") public void reset()Deprecated. -
dump
Deprecated.- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable
-
dump
Deprecated.- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable- Throws:
IOException
-
addToAllConnectors
Deprecated.
-
ConnectionStatisticsinstead.