netcom.log
Class LogEntry

java.lang.Object
  extended bynetcom.log.LogEntry

public class LogEntry
extends java.lang.Object

Title: FileReaderThread This is an interface used by the Logger to request for data about the MDS/proxy node. The data is used for statistics that will be put into a LogMessage and sent back to the GUI. Copyright: Copyright (c) 2002 Company NETCOM


Constructor Summary
LogEntry()
          default constructor
LogEntry(int the_session, int the_id, int the_code, java.lang.String the_comment)
          Constructor used to make Logentries when reading from the logfile and returning info to the GUI
LogEntry(int the_code, java.lang.String the_comment)
          Constructor for LogEntry that is made when parent node does logger.addLogEntry(int, String)
 
Method Summary
 int CompareTo(java.lang.Comparable rhs)
          Compare this object with rhs.
 boolean equals(java.lang.Object rhs)
          Compare this object with rhs.
 int getCode()
          Accessor for private var code
 java.lang.String getComment()
          Accessor for private var comment
 int getID()
          Accessor for private var id
 int getSessionID()
          Accessor for private var session
 java.lang.String getText()
          Accessor for private var text
 long getTime()
          Accessor for private var time
 void print()
          print method for LogEtry...
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEntry

public LogEntry()
default constructor


LogEntry

public LogEntry(int the_code,
                java.lang.String the_comment)
Constructor for LogEntry that is made when parent node does logger.addLogEntry(int, String)

Parameters:
the_code - tells what text to write to file
the_comment - tells what informative peace of data is added at the end of the log file

LogEntry

public LogEntry(int the_session,
                int the_id,
                int the_code,
                java.lang.String the_comment)
Constructor used to make Logentries when reading from the logfile and returning info to the GUI

Parameters:
the_session - ... records session the LogEntry is from
the_id - ... records id the LogEntry is from
the_code - ... records the tpe of log entry that was made to file
the_comment - ... records comments made to file for that LogEntry
Method Detail

getID

public int getID()
Accessor for private var id

Returns:
id gets id number of that LogEntry

getSessionID

public int getSessionID()
Accessor for private var session

Returns:
session gets session number of that LogEntry

getCode

public int getCode()
Accessor for private var code

Returns:
code gets code number of text of that LogEntry

getText

public java.lang.String getText()
Accessor for private var text

Returns:
text gets that is recorded in that LogEntry

getTime

public long getTime()
Accessor for private var time

Returns:
time gets time recorded for LogEntry (type long)

getComment

public java.lang.String getComment()
Accessor for private var comment

Returns:
code gets unique text of that LogEntry

equals

public boolean equals(java.lang.Object rhs)
Compare this object with rhs.

Parameters:
rhs - the second Comparable.
Returns:
true if two objects are equal, false if not;

CompareTo

public int CompareTo(java.lang.Comparable rhs)
Compare this object with rhs.

Parameters:
rhs - the second Comparable.
Returns:
0 if two objects are equal; less than zero if this object is smaller; greater than zero if this object is larger.

print

public void print()
print method for LogEtry... prints out all information pertaining to LogEntry