A Connection. that tracks connection statistics.
Adding an instance of this class as a bean to a ServerConnector or ConnectionFactory (for the server) or to HttpClient (for the client) will trigger the tracking of the connection statistics for all connections managed by the server or by the client.
The statistics for a connection are gathered when the connection is closed.
ConnectionStatistics instances must be started
to collect statistics, either as part of starting the whole component
tree, or explicitly if the component tree has already been started.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ConnectionStatistics. | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | doStart()
Overrides org. |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Implements org. |
| public long | |
| public double | |
| public double | |
| public long | |
| public long | |
| public Map | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public void | |
| private void | |
| protected void | |
| protected void | |
| public void | |
| protected void | |
| protected void | |
| public void | |
| public String | toString()
Overrides org. |
| _stats | back to summary |
|---|---|
| private final ConnectionStatistics. | |
| _statsMap | back to summary |
|---|---|
| private final Map<String, ConnectionStatistics. | |
| ConnectionStatistics | back to summary |
|---|---|
| public ConnectionStatistics() | |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. Doc from org. Method to override to start the lifecycle | |
| dump | back to summary |
|---|---|
| public void dump(Appendable out, String indent) throws IOException Implements org. Doc from org. 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.
| |
| getConnectionDurationMax | back to summary |
|---|---|
public long getConnectionDurationMax()
| |
| getConnectionDurationMean | back to summary |
|---|---|
public double getConnectionDurationMean()
| |
| getConnectionDurationStdDev | back to summary |
|---|---|
public double getConnectionDurationStdDev()
| |
| getConnections | back to summary |
|---|---|
public long getConnections()
| |
| getConnectionsMax | back to summary |
|---|---|
public long getConnectionsMax()
| |
| getConnectionStatisticsGroups | back to summary |
|---|---|
| public Map | |
| getConnectionsTotal | back to summary |
|---|---|
public long getConnectionsTotal()
| |
| getReceivedBytes | back to summary |
|---|---|
public long getReceivedBytes()
| |
| getReceivedBytesRate | back to summary |
|---|---|
public long getReceivedBytesRate()
| |
| getReceivedMessages | back to summary |
|---|---|
public long getReceivedMessages()
| |
| getReceivedMessagesRate | back to summary |
|---|---|
public long getReceivedMessagesRate()
| |
| getSentBytes | back to summary |
|---|---|
public long getSentBytes()
| |
| getSentBytesRate | back to summary |
|---|---|
public long getSentBytesRate()
| |
| getSentMessages | back to summary |
|---|---|
public long getSentMessages()
| |
| getSentMessagesRate | back to summary |
|---|---|
public long getSentMessagesRate()
| |
| onClosed | back to summary |
|---|---|
| public void onClosed(Connection connection) Overrides default org.
| |
| onClosed | back to summary |
|---|---|
| private void onClosed(ConnectionStatistics. | |
| onConnectionClosed | back to summary |
|---|---|
| protected void onConnectionClosed(Connection connection) | |
| onConnectionOpened | back to summary |
|---|---|
| protected void onConnectionOpened(Connection connection) | |
| onOpened | back to summary |
|---|---|
| public void onOpened(Connection connection) Overrides default org.
| |
| onTotalClosed | back to summary |
|---|---|
| protected void onTotalClosed(Connection connection) | |
| onTotalOpened | back to summary |
|---|---|
| protected void onTotalOpened(Connection connection) | |
| reset | back to summary |
|---|---|
public void reset()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final LongAdder | |
| private final RateCounter | |
| private final LongAdder | |
| private final RateCounter | |
| private final CounterStatistic | |
| private final SampleStatistic | |
| private final LongAdder | |
| private final RateCounter | |
| private final LongAdder | |
| private final RateCounter | |
| private final String |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Implements org. |
| public long | |
| public double | |
| public double | |
| public long | |
| public long | |
| public long | |
| public String | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public long | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String |
| _bytesIn | back to summary |
|---|---|
| private final LongAdder _bytesIn | |
| _bytesInRate | back to summary |
|---|---|
| private final RateCounter _bytesInRate | |
| _bytesOut | back to summary |
|---|---|
| private final LongAdder _bytesOut | |
| _bytesOutRate | back to summary |
|---|---|
| private final RateCounter _bytesOutRate | |
| _connections | back to summary |
|---|---|
| private final CounterStatistic _connections | |
| _connectionsDuration | back to summary |
|---|---|
| private final SampleStatistic _connectionsDuration | |
| _messagesIn | back to summary |
|---|---|
| private final LongAdder _messagesIn | |
| _messagesInRate | back to summary |
|---|---|
| private final RateCounter _messagesInRate | |
| _messagesOut | back to summary |
|---|---|
| private final LongAdder _messagesOut | |
| _messagesOutRate | back to summary |
|---|---|
| private final RateCounter _messagesOutRate | |
| _name | back to summary |
|---|---|
| private final String _name | |
| Stats | back to summary |
|---|---|
| public Stats(String name) | |
| decrementCount | back to summary |
|---|---|
| public void decrementCount() | |
| dump | back to summary |
|---|---|
| public void dump(Appendable out, String indent) throws IOException Implements org. Doc from org. 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.
| |
| getConnectionDurationMax | back to summary |
|---|---|
| public long getConnectionDurationMax() | |
| getConnectionDurationMean | back to summary |
|---|---|
| public double getConnectionDurationMean() | |
| getConnectionDurationStdDev | back to summary |
|---|---|
| public double getConnectionDurationStdDev() | |
| getConnections | back to summary |
|---|---|
| public long getConnections() | |
| getConnectionsMax | back to summary |
|---|---|
| public long getConnectionsMax() | |
| getConnectionsTotal | back to summary |
|---|---|
| public long getConnectionsTotal() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getReceivedBytes | back to summary |
|---|---|
| public long getReceivedBytes() | |
| getReceivedBytesRate | back to summary |
|---|---|
| public long getReceivedBytesRate() | |
| getReceivedMessages | back to summary |
|---|---|
| public long getReceivedMessages() | |
| getReceivedMessagesRate | back to summary |
|---|---|
| public long getReceivedMessagesRate() | |
| getSentBytes | back to summary |
|---|---|
| public long getSentBytes() | |
| getSentBytesRate | back to summary |
|---|---|
| public long getSentBytesRate() | |
| getSentMessages | back to summary |
|---|---|
| public long getSentMessages() | |
| getSentMessagesRate | back to summary |
|---|---|
| public long getSentMessagesRate() | |
| incrementCount | back to summary |
|---|---|
| public void incrementCount() | |
| recordBytesIn | back to summary |
|---|---|
| public void recordBytesIn(long bytesIn) | |
| recordBytesOut | back to summary |
|---|---|
| public void recordBytesOut(long bytesOut) | |
| recordDuration | back to summary |
|---|---|
| public void recordDuration(long duration) | |
| recordMessagesIn | back to summary |
|---|---|
| public void recordMessagesIn(long messagesIn) | |
| recordMessagesOut | back to summary |
|---|---|
| public void recordMessagesOut(long messagesOut) | |
| reset | back to summary |
|---|---|
| public void reset() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |