Interface SessionReaperStatistics

All Known Implementing Classes:
SessionHelper.SessionReaperDaemon

public interface SessionReaperStatistics
Interface for session reaper statistics.
Author:
Torkel Dominique
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Gets the average reap duration since the statistics was reset.
    long
    Gets the average number of reaped sessions in a reap cycle since the statistics was reset.
    long
    Return the average number of milliseconds reap tasks wait in the queue prior to running.
    long
    Gets the duration for the last reap cycle.
    long
    Return the time the last reap task spent in the queue prior to running.
    long
    Gets the start time for the last reap cycle.
    long
    Gets the maximum reap duration since the statistics was reset.
    long
    Gets the maximum number of sessions reaped in a reap cycle since the statistics was reset.
    long
    Return the max time in milliseconds a reap task has spent in the queue prior to running since the statistics were last reset.
    long
    Gets the start time for the next reap cycle.
    long
    Gets the number of sessions that were reaped during the last reap cycle.
    long
    Gets the number of sessions that were reaped since the statistics was reset.
    void
    Resets the statistics held by this object.
    void
    Sets the duration for the last reap cycle.
    void
    Sets the duration the last reap task spent in the queue prior to running.
    void
    Sets the start time for the last reap cycle.
    void
    Sets the start time for the next reap cycle.
    void
    Sets the number of sessions that were reaped during the last reap cycle.
  • Method Details

    • 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.