Interface SessionReaperStatistics

  • All Known Implementing Classes:
    SessionHelper.SessionReaperDaemon

    public interface SessionReaperStatistics
    Interface for session reaper statistics.
    Author:
    Torkel Dominique
    • 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.