public interface StatisticsCollector extends Statistics
Information about key metrics is incremented on this collector by the connection.
See Statistics
for accessing the collected metrics.
Modifier and Type | Method and Description |
---|---|
void |
decrementOutstandingRequests()
Decrements the count of outstanding of requests from this connection.
|
void |
incrementDroppedCount()
Increments the total number of messages dropped by this connection across all slow consumers.
|
void |
incrementDuplicateRepliesReceived()
Increments the total number of duplicate replies received by this connection.
|
void |
incrementErrCount()
Increments the total number of op -ERRs received by this connection.
|
void |
incrementExceptionCount()
Increments the total number of exceptions seen by this connection.
|
void |
incrementFlushCounter()
Increment the total number of outgoing message flushes by this connection.
|
void |
incrementInBytes(long bytes)
Increment the total number of message bytes that have come in to this connection.
|
void |
incrementInMsgs()
Increments the total number of messages that have come in to this connection.
|
void |
incrementOkCount()
Increments the total number of op +OKs received by this connection.
|
void |
incrementOrphanRepliesReceived()
Increments the total number of orphan replies received by this connection.
|
void |
incrementOutBytes(long bytes)
Increment the total number of message bytes that have gone out of this connection.
|
void |
incrementOutMsgs()
Increments the total number of messages that have gone out of this connection.
|
void |
incrementOutstandingRequests()
Increments the count of outstanding of requests from this connection.
|
void |
incrementPingCount()
Increments the total number of pings that have been sent from this connection.
|
void |
incrementReconnects()
Increments the total number of times this connection has tried to reconnect.
|
void |
incrementRepliesReceived()
Increments the total number of replies received by this connection.
|
void |
incrementRequestsSent()
Increments the total number of requests sent by this connection.
|
void |
registerRead(long bytes)
Registers a Socket read by this connection.
|
void |
registerWrite(long bytes)
Registers a Socket write by this connection.
|
void |
setAdvancedTracking(boolean trackAdvanced)
Sets whether advanced stats are/should be tracked.
|
getDroppedCount, getDuplicateRepliesReceived, getErrs, getExceptions, getFlushCounter, getInBytes, getInMsgs, getOKs, getOrphanRepliesReceived, getOutBytes, getOutMsgs, getOutstandingRequests, getPings, getReconnects, getRepliesReceived, getRequestsSent
void setAdvancedTracking(boolean trackAdvanced)
trackAdvanced
- the advanced tracking flag. set to true to turn on advanced trackingvoid incrementPingCount()
void incrementReconnects()
void incrementDroppedCount()
void incrementOkCount()
void incrementErrCount()
void incrementExceptionCount()
void incrementRequestsSent()
void incrementRepliesReceived()
void incrementDuplicateRepliesReceived()
NOTE: This is only counted if advanced stats are enabled.
void incrementOrphanRepliesReceived()
NOTE: This is only counted if advanced stats are enabled.
void incrementInMsgs()
void incrementOutMsgs()
void incrementInBytes(long bytes)
bytes
- the number of bytes coming invoid incrementOutBytes(long bytes)
bytes
- the number of bytes going outvoid incrementFlushCounter()
void incrementOutstandingRequests()
void decrementOutstandingRequests()
void registerRead(long bytes)
NOTE: Implementations should only count this if advanced stats are enabled.
bytes
- the number of bytes being readvoid registerWrite(long bytes)
NOTE: Implementations should only count this if advanced stats are enabled.
bytes
- the number of bytes being written