Package com.tangosol.coherence.servlet
Interface SessionReaperStatistics
-
- All Known Implementing Classes:
SessionHelper.SessionReaperDaemon
public interface SessionReaperStatisticsInterface for session reaper statistics.- Author:
- Torkel Dominique
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAverageReapDuration()Gets the average reap duration since the statistics was reset.longgetAverageReapedSessions()Gets the average number of reaped sessions in a reap cycle since the statistics was reset.longgetAverageReapQueueWaitDuration()Return the average number of milliseconds reap tasks wait in the queue prior to running.longgetLastReapDuration()Gets the duration for the last reap cycle.longgetLastReapQueueWaitDuration()Return the time the last reap task spent in the queue prior to running.longgetLastReapTime()Gets the start time for the last reap cycle.longgetMaxReapDuration()Gets the maximum reap duration since the statistics was reset.longgetMaxReapedSessions()Gets the maximum number of sessions reaped in a reap cycle since the statistics was reset.longgetMaxReapQueueWaitDuration()Return the max time in milliseconds a reap task has spent in the queue prior to running since the statistics were last reset.longgetNextReapTime()Gets the start time for the next reap cycle.longgetReapedSessions()Gets the number of sessions that were reaped during the last reap cycle.longgetTotalReapedSessions()Gets the number of sessions that were reaped since the statistics was reset.voidresetStatistics()Resets the statistics held by this object.voidsetLastReapDuration(long time)Sets the duration for the last reap cycle.voidsetLastReapQueueWaitDuration(long time)Sets the duration the last reap task spent in the queue prior to running.voidsetLastReapTime(long d)Sets the start time for the last reap cycle.voidsetNextReapTime(long d)Sets the start time for the next reap cycle.voidsetReapedSessions(long l)Sets the number of sessions that were reaped during the last reap cycle.
-
-
-
Method Detail
-
setLastReapQueueWaitDuration
void setLastReapQueueWaitDuration(long time)
Sets the duration the last reap task spent in the queue prior to running.- Parameters:
time- the duration in milliseconds
-
getLastReapQueueWaitDuration
long getLastReapQueueWaitDuration()
Return the time the last reap task spent in the queue prior to running.- Returns:
- the time the last reap task spent in the queue prior to running.
-
setLastReapDuration
void setLastReapDuration(long time)
Sets the duration for the last reap cycle.- Parameters:
time- The duration in milliseconds.
-
getLastReapDuration
long getLastReapDuration()
Gets the duration for the last reap cycle.- Returns:
- The duration in milliseconds.
-
setNextReapTime
void setNextReapTime(long d)
Sets the start time for the next reap cycle.- Parameters:
d- The time in milliseconds when the next reap cycle is schedule to start.
-
getNextReapTime
long getNextReapTime()
Gets the start time for the next reap cycle.- Returns:
- The time in milliseconds when the next reap cycle is schedule to start.
-
setLastReapTime
void setLastReapTime(long d)
Sets the start time for the last reap cycle.- Parameters:
d- The time in milliseconds when the last started.
-
getLastReapTime
long getLastReapTime()
Gets the start time for the last reap cycle.- Returns:
- The time in milliseconds when the last started.
-
setReapedSessions
void setReapedSessions(long l)
Sets the number of sessions that were reaped during the last reap cycle.- Parameters:
l- The number of sessions.
-
getReapedSessions
long getReapedSessions()
Gets the number of sessions that were reaped during the last reap cycle.- Returns:
- The number of sessions.
-
getTotalReapedSessions
long getTotalReapedSessions()
Gets the number of sessions that were reaped since the statistics was reset. Note! This attribute doesn't have a setter since it is derived from the ReapedSession attr.- Returns:
- The number of sessions.
-
getAverageReapDuration
long getAverageReapDuration()
Gets the average reap duration since the statistics was reset.- Returns:
- The average reap duration.
-
getAverageReapQueueWaitDuration
long getAverageReapQueueWaitDuration()
Return the average number of milliseconds reap tasks wait in the queue prior to running.- Returns:
- the average number of milliseconds reap tasks wait in the queue.
-
getAverageReapedSessions
long getAverageReapedSessions()
Gets the average number of reaped sessions in a reap cycle since the statistics was reset.- Returns:
- The average number of reaped sessions.
-
getMaxReapedSessions
long getMaxReapedSessions()
Gets the maximum number of sessions reaped in a reap cycle since the statistics was reset.- Returns:
- The max number of sessions reaped.
-
getMaxReapDuration
long getMaxReapDuration()
Gets the maximum reap duration since the statistics was reset.- Returns:
- The max reap duration.
-
getMaxReapQueueWaitDuration
long getMaxReapQueueWaitDuration()
Return the max time in milliseconds a reap task has spent in the queue prior to running since the statistics were last reset.- Returns:
- the max time in milliseconds a reap task has spent in the queue prior to running since the statistics were last reset
-
resetStatistics
void resetStatistics()
Resets the statistics held by this object.
-
-