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,Dumpable,LifeCycle
@Deprecated @ManagedObject("Connector Statistics") public class ConnectorStatistics extends AbstractLifeCycle implements Dumpable, Connection.Listener
Deprecated.useConnectionStatisticsinstead.A Connector.Listener that gathers Connector and Connections Statistics. Adding an instance of this class as withContainerLifeCycle.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
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 ConnectorStatistics()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidaddToAllConnectors(Server server)Deprecated.voiddoStart()Deprecated.voiddoStop()Deprecated.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.intgetBytesIn()Deprecated.intgetBytesOut()Deprecated.longgetConnectionDurationMax()Deprecated.doublegetConnectionDurationMean()Deprecated.doublegetConnectionDurationStdDev()Deprecated.intgetConnections()Deprecated.intgetConnectionsOpen()Deprecated.intgetConnectionsOpenMax()Deprecated.intgetMessagesIn()Deprecated.intgetMessagesInPerConnectionMax()Deprecated.doublegetMessagesInPerConnectionMean()Deprecated.doublegetMessagesInPerConnectionStdDev()Deprecated.intgetMessagesInPerSecond()Deprecated.intgetMessagesOut()Deprecated.intgetMessagesOutPerConnectionMax()Deprecated.doublegetMessagesOutPerConnectionMean()Deprecated.doublegetMessagesOutPerConnectionStdDev()Deprecated.intgetMessagesOutPerSecond()Deprecated.longgetStartedMillis()Deprecated.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, toString
-
-
-
-
Method Detail
-
onOpened
public void onOpened(Connection connection)
Deprecated.- Specified by:
onOpenedin interfaceConnection.Listener
-
onClosed
public void onClosed(Connection connection)
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 classAbstractLifeCycle
-
doStop
public void doStop()
Deprecated.- Overrides:
doStopin classAbstractLifeCycle
-
reset
@ManagedOperation("Reset the statistics") public void reset()
Deprecated.
-
dump
@ManagedOperation("dump thread state") public java.lang.String dump()
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.
-
addToAllConnectors
public static void addToAllConnectors(Server server)
Deprecated.
-
-