org.jminor.common.server
Class ServerLog

java.lang.Object
  extended by 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.
 
Method Summary
 boolean equals(Object obj)
          
 UUID getClientID()
           
 long getConnectionCreationDate()
           
 long getLastAccessDate()
           
 String getLastAccessDateFormatted()
           
 String getLastAccessedMethod()
           
 String getLastAccessMessage()
           
 long getLastDelta()
           
 long getLastExitDate()
           
 String getLastExitDateFormatted()
           
 String getLastExitedMethod()
           
 List<LogEntry> getLog()
           
 long getLogCreationDate()
           
 long getTimeSinceLastAccess()
           
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 represents
connectionCreationDate - the date this client connection was created
log - the log entries
lastAccessDate - the last access date
lastExitDate - the last exit date
lastAccessedMethod - the last accessed method
lastAccessedMessage - the last access message
lastExitedMethod - the last exited method
Method Detail

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