@ThreadSafe public final class StoreStats extends ServiceStats
Modifier and Type | Method and Description |
---|---|
void |
addNotices(int sent,
long time)
Adds notices stats.
|
void |
addQueryResponse(Optional<StoreValues> response,
long time)
Adds query response stats.
|
void |
addRemoved(long removed,
long archived)
Adds removed and archived stats.
|
void |
addReplicates(long sent,
long time)
Adds replicates stats.
|
void |
addUpdates(long updated,
long deleted,
long ignored,
long time)
Adds updates stats.
|
void |
buildText()
Builds the text.
|
Stats |
clone() |
long |
getArchived()
Gets the archived count.
|
long |
getDeleted()
Gets the number of deleted values.
|
long |
getNoticesBatched()
Gets the number of notices batched.
|
int |
getNoticesBatches()
Gets the number of notices batches.
|
long |
getNoticesSent()
Gets the number of notices sent.
|
long |
getNotificationTime()
Gets the notification time.
|
int |
getQueriesIgnored()
Gets the number of queries ignored.
|
int |
getQueriesReceived()
Gets the number of queries received.
|
long |
getRemoved()
Gets the removed count.
|
long |
getReplicatesBatched()
Gets the number of replicates batched.
|
int |
getReplicatesBatches()
Gets the number of replicate batches.
|
long |
getReplicatesSent()
Gets the number of replicates sent.
|
long |
getReplicationTime()
Gets the replication time.
|
long |
getResponseTime()
Gets the response time.
|
long |
getResponseValues()
Gets the number of response values.
|
int |
getSessionsClosed()
Gets the number of sessions closed.
|
int |
getSessionsOpened()
Gets the number of sessions opened.
|
long |
getUpdated()
Gets the number of updated values.
|
long |
getUpdatesBatched()
Gets the number of updates batched.
|
int |
getUpdatesBatches()
Gets the number of update batches.
|
long |
getUpdatesIgnored()
Gets the number of updates ignored.
|
long |
getUpdateTime()
Gets the update time.
|
void |
sessionClosed()
Called when a session is closed.
|
void |
sessionOpened()
Called when a session is opened.
|
protected void |
substract(Stats snapshot)
Substract a snapshot to get relative values.
|
freeze, getStatsOwner, isLogEnabled, log, setLogEnabled, updated
addLine, addLine, addText, clearMargin, clearSnapshot, clearText, getIntermediate, getLogTime, getMarkTime, getSnapshot, getText, nanosToString, setLogTime, setMargin, setMarkTime, setSnapshot, toString
public void addNotices(int sent, long time)
sent
- The number of notices sent.time
- The notification time in nanoseconds.public void addQueryResponse(@Nonnull Optional<StoreValues> response, long time)
response
- The optional response.time
- The response time in nanoseconds.public void addRemoved(long removed, long archived)
removed
- The number of values removed.archived
- The number of values archived.public void addReplicates(long sent, long time)
sent
- The number of replicates sent.time
- The replication time in nanoseconds.public void addUpdates(long updated, long deleted, long ignored, long time)
updated
- The number of point values updated.deleted
- The number of point values deleted.ignored
- The number of updates ignored.time
- The update time in nanoseconds.public long getArchived()
@CheckReturnValue public long getDeleted()
@CheckReturnValue public long getNoticesBatched()
@CheckReturnValue public int getNoticesBatches()
@CheckReturnValue public long getNoticesSent()
@CheckReturnValue public long getNotificationTime()
@CheckReturnValue public int getQueriesIgnored()
@CheckReturnValue public int getQueriesReceived()
public long getRemoved()
@CheckReturnValue public long getReplicatesBatched()
@CheckReturnValue public int getReplicatesBatches()
@CheckReturnValue public long getReplicatesSent()
@CheckReturnValue public long getReplicationTime()
@CheckReturnValue public long getResponseTime()
@CheckReturnValue public long getResponseValues()
@CheckReturnValue public int getSessionsClosed()
@CheckReturnValue public int getSessionsOpened()
@CheckReturnValue public long getUpdateTime()
@CheckReturnValue public long getUpdated()
@CheckReturnValue public long getUpdatesBatched()
@CheckReturnValue public int getUpdatesBatches()
@CheckReturnValue public long getUpdatesIgnored()
public void sessionClosed()
public void sessionOpened()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.