org.jminor.common.server
Class ServerLog
java.lang.Object
org.jminor.common.server.ServerLog
- All Implemented Interfaces:
- Serializable
public final class ServerLog
- extends Object
- implements Serializable
A class encapsulating a simple collection of server access log entries and basic connection access info.
- See Also:
- Serialized Form
Constructor Summary |
ServerLog(UUID clientID,
long connectionCreationDate,
List<LogEntry> log,
long lastAccessDate,
long lastExitDate,
String lastAccessedMethod,
String lastAccessedMessage,
String lastExitedMethod)
Instantiates a new ServerLog instance. |
ServerLog
public ServerLog(UUID clientID,
long connectionCreationDate,
List<LogEntry> log,
long lastAccessDate,
long lastExitDate,
String lastAccessedMethod,
String lastAccessedMessage,
String lastExitedMethod)
- Instantiates a new ServerLog instance.
- Parameters:
clientID
- the ID of the client this log representsconnectionCreationDate
- the date this client connection was createdlog
- the log entrieslastAccessDate
- the last access datelastExitDate
- the last exit datelastAccessedMethod
- the last accessed methodlastAccessedMessage
- the last access messagelastExitedMethod
- the last exited method
getLog
public List<LogEntry> getLog()
- Returns:
- the log entry list
getLogCreationDate
public long getLogCreationDate()
- Returns:
- the date this log was created
getClientID
public UUID getClientID()
- Returns:
- the UUID identifying this log's client
getConnectionCreationDate
public long getConnectionCreationDate()
- Returns:
- the log creation date
getLastExitedMethod
public String getLastExitedMethod()
- Returns:
- the name of the last exited method
getLastAccessedMethod
public String getLastAccessedMethod()
- Returns:
- the name of the last accessed method
getLastAccessMessage
public String getLastAccessMessage()
- Returns:
- the message from the last access
getLastAccessDate
public long getLastAccessDate()
- Returns:
- the last access date
getLastExitDate
public long getLastExitDate()
- Returns:
- the last exit date
getTimeSinceLastAccess
public long getTimeSinceLastAccess()
- Returns:
- the time since last access
getLastDelta
public long getLastDelta()
- Returns:
- the duration of the last method call
getLastAccessDateFormatted
public String getLastAccessDateFormatted()
- Returns:
- a formatted last access date
getLastExitDateFormatted
public String getLastExitDateFormatted()
- Returns:
- a formatted last exit date
equals
public boolean equals(Object obj)
-
- Overrides:
equals
in class Object
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class Object