Class LearnerSessionTracker

  • All Implemented Interfaces:
    SessionTracker

    public class LearnerSessionTracker
    extends java.lang.Object
    implements SessionTracker
    This is really just a shell of a SessionTracker that tracks session activity to be forwarded to the Leader using a PING.
    • Method Detail

      • addSession

        public void addSession​(long sessionId,
                               int sessionTimeout)
        Specified by:
        addSession in interface SessionTracker
      • touchSession

        public boolean touchSession​(long sessionId,
                                    int sessionTimeout)
        Specified by:
        touchSession in interface SessionTracker
        Returns:
        false if session is no longer active
      • checkSession

        public void checkSession​(long sessionId,
                                 java.lang.Object owner)
        Specified by:
        checkSession in interface SessionTracker
      • setOwner

        public void setOwner​(long sessionId,
                             java.lang.Object owner)
        Specified by:
        setOwner in interface SessionTracker
      • dumpSessions

        public void dumpSessions​(java.io.PrintWriter pwriter)
        Description copied from interface: SessionTracker
        Text dump of session information, suitable for debugging.
        Specified by:
        dumpSessions in interface SessionTracker
        Parameters:
        pwriter - the output writer
      • setSessionClosing

        public void setSessionClosing​(long sessionId)
        Description copied from interface: SessionTracker
        Mark that the session is in the process of closing.
        Specified by:
        setSessionClosing in interface SessionTracker