Class SessionInfo

  • All Implemented Interfaces:
    java.lang.Comparable<SessionInfo>

    public class SessionInfo
    extends java.lang.Object
    implements java.lang.Comparable<SessionInfo>
    Data object describing a session which was the source of execution data. SessionInfo instances can be sorted by dump date through the Comparable interface.
    • Constructor Detail

      • SessionInfo

        public SessionInfo​(java.lang.String id,
                           long start,
                           long dump)
        Create a immutable session info with the given data.
        Parameters:
        id - arbitrary session identifier, must not be null
        start - the epoc based time stamp when execution data recording has been started
        dump - the epoc based time stamp when execution data was collected
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns:
        identifier for this session
      • getStartTimeStamp

        public long getStartTimeStamp()
        Returns:
        the epoc based time stamp when execution data recording has been started
      • getDumpTimeStamp

        public long getDumpTimeStamp()
        Returns:
        the epoc based time stamp when execution data was collected
      • compareTo

        public int compareTo​(SessionInfo other)
        Specified by:
        compareTo in interface java.lang.Comparable<SessionInfo>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object