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 probeClientManagerIn
          Time that naming service access began
protected  long probeClientManagerOut
          Time that naming service access completed
protected  long probeDbIn
          Time that database access began
protected  long probeDbOut
          Time that database access completed
protected  long probeFaultDetection
          Time that the first fault began
protected  long probeFaultRecovery
          Time that the last fault completed
protected  long probeIn
          Time that method call began
protected  String probeMethod
          Method name
protected  long probeNameServerIn
          Time that naming service access began
protected  long probeNameServerOut
          Time that naming service access completed
protected  long probeOut
          Time that method call completed
protected  String probeSource
          Client name
protected  long probeWaitIn
          Time that the waiting began
protected  long probeWaitOut
          Time that the waiting completed
 
Constructor Summary
LogEntry()
           
 
Method Summary
 long getProbeClientManagerIn()
          Gets the time of the probe before the client manager factory is called
 long getProbeClientManagerOut()
          Gets the time of the probe after the client manager factory is called
 long getProbeDbIn()
          Gets the time that the database access began
 long getProbeDbOut()
          Gets the time that the database access ended
 long getProbeFaultDetection()
          Gets the time that the first fault began
 long getProbeFaultRecovery()
          Gets the time that the last fault completed
 long getProbeIn()
          Returns the starting time of this method call
 String getProbeMethod()
          Returns the name of the method
 long getProbeNameServerIn()
          Gets the time of the probe before the name service is called
 long getProbeNameServerOut()
          Gets the time of the probe after the name service is called
 long getProbeOut()
          Returns the ending time of this method call
 String getProbeSource()
          Returns the client name of the method call
 long getProbeWaitIn()
          Gets the time that a wait began
 long getProbeWaitOut()
          Gets the time that a wait completed
 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 setProbeClientManagerIn()
          Sets the time of the probe before the client manager factory is called to the current time
 void setProbeClientManagerOut()
          Sets the time of the probe after the client manager factory is called to the current time
 void setProbeDbIn()
          Sets the time that the database access began
 void setProbeDbOut()
          Sets the time that the database access ended to the current time
 void setProbeFaultDetection()
          Sets the time that the first fault began to the current time
 void setProbeFaultRecovery()
          Sets the time that the last fault completed to the current time
 void setProbeIn()
          Sets the starting time of the method call to the current time
 void setProbeMethod(String probeMethod)
          Sets the name of the method being probed
 void setProbeNameServerIn()
          Sets the time of the probe before the name service is called to the current time
 void setProbeNameServerOut()
          Sets the time of the probe after the name service is called to the current time
 void setProbeOut()
          Sets the completed time of the method call to the current time
 void setProbeSource(String probeSource)
          Sets the client name of the method call
 void setProbeWaitIn()
          Sets the time that a wait began to the current time
 void setProbeWaitOut()
          Sets the time that a wait ended to the current time
 
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


probeDbIn

protected long probeDbIn
Time that database access began


probeDbOut

protected long probeDbOut
Time that database access completed


probeNameServerIn

protected long probeNameServerIn
Time that naming service access began


probeNameServerOut

protected long probeNameServerOut
Time that naming service access completed


probeClientManagerIn

protected long probeClientManagerIn
Time that naming service access began


probeClientManagerOut

protected long probeClientManagerOut
Time that naming service access completed


probeFaultDetection

protected long probeFaultDetection
Time that the first fault began


probeFaultRecovery

protected long probeFaultRecovery
Time that the last fault completed


probeWaitIn

protected long probeWaitIn
Time that the waiting began


probeWaitOut

protected long probeWaitOut
Time that the waiting 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()
Sets the starting time of the method call to the current time


setProbeMethod

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

Parameters:
probeMethod - The name of the method being probed

setProbeFaultDetection

public void setProbeFaultDetection()
Sets the time that the first fault began to the current time


setProbeFaultRecovery

public void setProbeFaultRecovery()
Sets the time that the last fault completed to the current time


setProbeOut

public void setProbeOut()
Sets the completed time of the method call to the current time


setProbeSource

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

Parameters:
probeSource - The client name of the method call

setProbeDbIn

public void setProbeDbIn()
Sets the time that the database access began


setProbeDbOut

public void setProbeDbOut()
Sets the time that the database access ended to the current time


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

getProbeFaultDetection

public long getProbeFaultDetection()
Gets the time that the first fault began

Returns:
The time that the first fault began

getProbeFaultRecovery

public long getProbeFaultRecovery()
Gets the time that the last fault completed

Returns:
The time that the last fault completed

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

getProbeDbIn

public long getProbeDbIn()
Gets the time that the database access began

Returns:
the time that the database access began

getProbeDbOut

public long getProbeDbOut()
Gets the time that the database access ended

Returns:
the time that the database access ended

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


getProbeNameServerIn

public long getProbeNameServerIn()
Gets the time of the probe before the name service is called

Returns:
The time of the probe before the name service is called

setProbeNameServerIn

public void setProbeNameServerIn()
Sets the time of the probe before the name service is called to the current time


getProbeNameServerOut

public long getProbeNameServerOut()
Gets the time of the probe after the name service is called

Returns:
The time of the probe after the name service is called

setProbeNameServerOut

public void setProbeNameServerOut()
Sets the time of the probe after the name service is called to the current time


getProbeClientManagerOut

public long getProbeClientManagerOut()
Gets the time of the probe after the client manager factory is called

Returns:
The time of the probe after the client manager factory is called

setProbeClientManagerOut

public void setProbeClientManagerOut()
Sets the time of the probe after the client manager factory is called to the current time


getProbeClientManagerIn

public long getProbeClientManagerIn()
Gets the time of the probe before the client manager factory is called

Returns:
The time of the probe before the client manager factory is called

setProbeClientManagerIn

public void setProbeClientManagerIn()
Sets the time of the probe before the client manager factory is called to the current time


setProbeWaitIn

public void setProbeWaitIn()
Sets the time that a wait began to the current time


getProbeWaitIn

public long getProbeWaitIn()
Gets the time that a wait began

Returns:
The time that a wait began

setProbeWaitOut

public void setProbeWaitOut()
Sets the time that a wait ended to the current time


getProbeWaitOut

public long getProbeWaitOut()
Gets the time that a wait completed

Returns:
The time that a wait completed