ParkNPark.common
Class LogEntry

java.lang.Object
  extended by ParkNPark.common.LogEntry

public class LogEntry
extends Object

Contains a single log entry


Field Summary
protected  boolean logEntryFinished
          Whether or not this log entry is finished
protected  long probeIn
          Time that method call began
protected  String probeMethod
          Method name
protected  long probeOut
          Time that method call completed
protected  String probeSource
          Client name
 
Constructor Summary
LogEntry()
           
 
Method Summary
 long getProbeIn()
          Returns the starting time of this method call
 String getProbeMethod()
          Returns the name of the method
 long getProbeOut()
          Returns the ending time of this method call
 String getProbeSource()
          Returns the client name of the method call
 boolean isLogEntryFinished()
          Returns true if this log entry is finished or false if it is not
 void markLogEntryAsFinished()
          Marks this LogEntry as finished, which means that it is ready to be written to the log files
 void setProbeIn(long probeIn)
          Sets the starting time of the method call
 void setProbeMethod(String probeMethod)
          Sets the name of the method being probed
 void setProbeOut(long probeOut)
          Sets the completed time of the method call
 void setProbeSource(String probeSource)
          Sets the client name of the method call
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

probeIn

protected long probeIn
Time that method call began


probeOut

protected long probeOut
Time that method call completed


probeMethod

protected String probeMethod
Method name


probeSource

protected String probeSource
Client name


logEntryFinished

protected boolean logEntryFinished
Whether or not this log entry is finished

Constructor Detail

LogEntry

public LogEntry()
Method Detail

setProbeIn

public void setProbeIn(long probeIn)
Sets the starting time of the method call

Parameters:
probeIn - The method call starting time to use

setProbeMethod

public void setProbeMethod(String probeMethod)
Sets the name of the method being probed

Parameters:
probeMethod - The name of the method being probed

setProbeOut

public void setProbeOut(long probeOut)
Sets the completed time of the method call

Parameters:
probeOut - The completed time of the method call

setProbeSource

public void setProbeSource(String probeSource)
Sets the client name of the method call

Parameters:
probeSource - The client name of the method call

getProbeIn

public long getProbeIn()
Returns the starting time of this method call

Returns:
The starting time of this method call

getProbeMethod

public String getProbeMethod()
Returns the name of the method

Returns:
The name of the method

getProbeOut

public long getProbeOut()
Returns the ending time of this method call

Returns:
The ending time of this method call

getProbeSource

public String getProbeSource()
Returns the client name of the method call

Returns:
The client name of the method call

isLogEntryFinished

public boolean isLogEntryFinished()
Returns true if this log entry is finished or false if it is not

Returns:
True if this log entry is finished or false if it is not

markLogEntryAsFinished

public void markLogEntryAsFinished()
Marks this LogEntry as finished, which means that it is ready to be written to the log files