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.
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 ClassesNested 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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LongAdder
Deprecated.private final LongAdder
Deprecated.private final SampleStatistic
Deprecated.private final CounterStatistic
Deprecated.private final SampleStatistic
Deprecated.private int
Deprecated.private final SampleStatistic
Deprecated.private int
Deprecated.private AtomicLong
Deprecated.private final ConcurrentMap<Connection,
ConnectorStatistics.Sample> Deprecated.private final AtomicLong
Deprecated.private static final long
Deprecated.private static final ConnectorStatistics.Sample
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addToAllConnectors
(Server server) Deprecated.void
doStart()
Deprecated.void
doStop()
Deprecated.dump()
Deprecated.void
dump
(Appendable out, String indent) Deprecated.Dump this object (and children) into an Appendable using the provided indent after any new lines.int
Deprecated.int
Deprecated.long
Deprecated.double
Deprecated.double
Deprecated.int
Deprecated.int
Deprecated.int
Deprecated.int
Deprecated.int
Deprecated.double
Deprecated.double
Deprecated.int
Deprecated.int
Deprecated.int
Deprecated.double
Deprecated.double
Deprecated.int
Deprecated.long
Deprecated.void
onClosed
(Connection connection) Deprecated.void
onOpened
(Connection connection) Deprecated.void
reset()
Deprecated.private void
update()
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
-
Field Details
-
ZERO
Deprecated. -
_startMillis
Deprecated. -
_connectionStats
Deprecated. -
_messagesIn
Deprecated. -
_messagesOut
Deprecated. -
_connectionDurationStats
Deprecated. -
_samples
Deprecated. -
_closedIn
Deprecated. -
_closedOut
Deprecated. -
_nanoStamp
Deprecated. -
_messagesInPerSecond
private volatile int _messagesInPerSecondDeprecated. -
_messagesOutPerSecond
private volatile int _messagesOutPerSecondDeprecated. -
SECOND_NANOS
private static final long SECOND_NANOSDeprecated.
-
-
Constructor Details
-
ConnectorStatistics
public ConnectorStatistics()Deprecated.
-
-
Method Details
-
onOpened
Deprecated.- Specified by:
onOpened
in interfaceConnection.Listener
-
onClosed
Deprecated.- Specified by:
onClosed
in interfaceConnection.Listener
-
getBytesIn
Deprecated. -
getBytesOut
Deprecated. -
getConnections
Deprecated. -
getConnectionDurationMax
Deprecated. -
getConnectionDurationMean
Deprecated. -
getConnectionDurationStdDev
@ManagedAttribute("Connection duration standard deviation") public double getConnectionDurationStdDev()Deprecated. -
getMessagesIn
Deprecated. -
getMessagesInPerConnectionMax
Deprecated. -
getMessagesInPerConnectionMean
Deprecated. -
getMessagesInPerConnectionStdDev
@ManagedAttribute("Messages In per connection standard deviation") public double getMessagesInPerConnectionStdDev()Deprecated. -
getConnectionsOpen
Deprecated. -
getConnectionsOpenMax
Deprecated. -
getMessagesOut
Deprecated. -
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
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:
doStart
in classAbstractLifeCycle
-
doStop
public void doStop()Deprecated.- Overrides:
doStop
in classAbstractLifeCycle
-
reset
Deprecated. -
dump
Deprecated. -
dump
Deprecated.Description copied from interface:Dumpable
Dump 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.- Specified by:
dump
in interfaceDumpable
- Parameters:
out
- The appendable to dump toindent
- The indent to apply after any new lines.- Throws:
IOException
- if unable to write to Appendable
-
addToAllConnectors
Deprecated. -
update
private void update()Deprecated.
-
ConnectionStatistics
instead.