net.dpml.depot
Class LogStatement

java.lang.Object
  extended by net.dpml.depot.LogStatement
All Implemented Interfaces:
Serializable

public final class LogStatement
extends Object
implements Serializable

Datastructure holding a log record and process identifier. The datastructure is used to bind a PID value that identifies a source JVM with a log record raised by the JVM.

Version:
1.0.3
Author:
Digital Product Meta Library
See Also:
Serialized Form

Constructor Summary
LogStatement(PID pid, LogRecord record)
          Creation of a new log statement.
 
Method Summary
 boolean equals(Object other)
          Compare this object with a supplied object for equality.
 LogRecord getLogRecord()
          Get the log record raised by the source JVM.
 PID getPID()
          Get the process identifier identifying the source JVM.
 int hashCode()
          Get the hascode for this instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogStatement

public LogStatement(PID pid,
                    LogRecord record)
Creation of a new log statement.

Parameters:
pid - the JVM process identifier
record - the log record
Method Detail

getPID

public PID getPID()
Get the process identifier identifying the source JVM.

Returns:
the process identifier

getLogRecord

public LogRecord getLogRecord()
Get the log record raised by the source JVM.

Returns:
the log record

equals

public boolean equals(Object other)
Compare this object with a supplied object for equality. This function returns true if the supplied object is a LogStatement with an equivalent process identifier and log record.

Overrides:
equals in class Object
Parameters:
other - the other object
Returns:
true if the supplied object is equal to this object

hashCode

public int hashCode()
Get the hascode for this instance.

Overrides:
hashCode in class Object
Returns:
the instance hash value