public class SessionInfo extends Object implements Comparable<SessionInfo>
SessionInfo
instances can be sorted by dump date through the
Comparable
interface.Constructor and Description |
---|
SessionInfo(String id,
long start,
long dump)
Create a immutable session info with the given data.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SessionInfo other) |
long |
getDumpTimeStamp() |
String |
getId() |
long |
getStartTimeStamp() |
String |
toString() |
public SessionInfo(String id, long start, long dump)
id
- arbitrary session identifier, must not be null
start
- the epoc based time stamp when execution data recording has
been starteddump
- the epoc based time stamp when execution data was collectedpublic String getId()
public long getStartTimeStamp()
public long getDumpTimeStamp()
public int compareTo(SessionInfo other)
compareTo
in interface Comparable<SessionInfo>
Copyright © 2016. All rights reserved.