org.sape.carbon.services.perflog
Class TrackingInfo

java.lang.Object
  |
  +--org.sape.carbon.services.perflog.TrackingInfo

class TrackingInfo
extends Object

Used to encapsulate an arbitrary Object with a timestamp. The PerfLogger maintains a stack of TrackingInfo objects in order to keep track of arbitrarily nested calls.

Copyright 2000-2003 Sapient

Version:
$Revision: 1.5 $ ($Author: dvoet $)
Author:
Tim Fennell, December 2000

Field Summary
protected  long startTime
          Used to store the time the object was created, which is deemed to be the start time.
protected  Object trackedObject
          Used to keep a reference to the object being tracked.
 
Constructor Summary
(package private) TrackingInfo(Object trackedObject)
          Creates a new TrackingInfo object used to keep track of the object passed in.
 
Method Summary
(package private)  long getStartTime()
          Getter for the time the tracking of the object started.
(package private)  Object getTrackedObject()
          Getter for the tracked object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startTime

protected long startTime

Used to store the time the object was created, which is deemed to be the start time.


trackedObject

protected Object trackedObject

Used to keep a reference to the object being tracked.

Constructor Detail

TrackingInfo

TrackingInfo(Object trackedObject)

Creates a new TrackingInfo object used to keep track of the object passed in. The startTime attribute is set to the System.currentTimeMillis() at the time the constructor is invoked.

Parameters:
trackedObject - the object being tracked.
Method Detail

getStartTime

long getStartTime()

Getter for the time the tracking of the object started.

Returns:
long start time of the track in milliseconds.

getTrackedObject

Object getTrackedObject()

Getter for the tracked object.

Returns:
Object the tracked object.


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.