Class FlashJournalRM.CongestionStatistics
java.lang.Object
com.tangosol.io.journal.FlashJournalRM.CongestionStatistics
- Enclosing class:
FlashJournalRM
Journal-wide wall-clock congestion statistics. State transitions are
serialized on this object and the authoritative JournalFile states are
scanned when congestion clears, avoiding a waiter or file reference
count.
- Since:
- Coherence 3.7
- Author:
- cp/cf 2010-06-10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longReturn the elapsed time of the current congestion episode.protected longReturn the maximum congestion time, including the current episode if it is already the longest.protected longReturn the number of journal-wide congestion episodes.protected longReturn the cumulative congestion time, including the current episode if one is in progress.protected voidRecord a successful transition of a JournalFile out of congestion.protected voidRecord a successful transition of a JournalFile to congestion.protected voidReset congestion statistics.
-
Constructor Details
-
CongestionStatistics
protected CongestionStatistics()
-
-
Method Details
-
recordCongestionStarted
protected void recordCongestionStarted()Record a successful transition of a JournalFile to congestion. The caller must synchronize on this statistics object across the state transition and this method invocation.- Since:
- 26.1.0.0
-
recordCongestionEnded
protected void recordCongestionEnded()Record a successful transition of a JournalFile out of congestion. The caller must synchronize on this statistics object across the state transition and this method invocation.- Since:
- 26.1.0.0
-
getTotalCongestionCount
protected long getTotalCongestionCount()Return the number of journal-wide congestion episodes.- Returns:
- the congestion episode count
- Since:
- 26.1.0.0
-
getTotalCongestionTime
protected long getTotalCongestionTime()Return the cumulative congestion time, including the current episode if one is in progress.- Returns:
- the cumulative congestion time in milliseconds
- Since:
- 26.1.0.0
-
getMaximumCongestionTime
protected long getMaximumCongestionTime()Return the maximum congestion time, including the current episode if it is already the longest.- Returns:
- the maximum congestion time in milliseconds
- Since:
- 26.1.0.0
-
getCurrentCongestionTime
protected long getCurrentCongestionTime()Return the elapsed time of the current congestion episode.- Returns:
- the current congestion time in milliseconds, or zero
- Since:
- 26.1.0.0
-
resetStatistics
protected void resetStatistics()Reset congestion statistics. An episode in progress is split at the reset boundary and becomes the first episode in the new interval.- Since:
- 26.1.0.0
-