info.magnolia.debug
Class TrackingStatus

java.lang.Object
  extended by info.magnolia.debug.TrackingStatus

public class TrackingStatus
extends Object

Invocation aggregator.


Field Summary
 long totalCalls
           
 long totalInits
           
 long totalTime
           
 
Constructor Summary
TrackingStatus(boolean trace, String testString)
           
 
Method Summary
static TrackingStatus getInstance()
          Gets instance of the status configured for current request or new one if none is configured yet.
static TrackingStatus getInstance(boolean trace)
          Gets instance of the status configured for current request or new one if none is configured yet.
static TrackingStatus getInstance(boolean trace, String testString)
          Gets instance of the status configured for current request or new one if none is configured yet.
 String toString()
           
 void track()
          Track all the callers and update aggregated stacktrace.
 void track(String str)
          Track only calls where testString matches the argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

totalCalls

public long totalCalls

totalInits

public long totalInits

totalTime

public long totalTime
Constructor Detail

TrackingStatus

public TrackingStatus(boolean trace,
                      String testString)
Method Detail

getInstance

public static TrackingStatus getInstance()
Gets instance of the status configured for current request or new one if none is configured yet.


getInstance

public static TrackingStatus getInstance(boolean trace)
Gets instance of the status configured for current request or new one if none is configured yet.

Parameters:
trace - used only for the very first invocation to enable/disable this status instance.

getInstance

public static TrackingStatus getInstance(boolean trace,
                                         String testString)
Gets instance of the status configured for current request or new one if none is configured yet.

Parameters:
trace - used only for the very first invocation to enable/disable this status instance.
testString - used to further filter the calls to trace. Only calls to track(String) matching the testString will be logged.

track

public void track()
Track all the callers and update aggregated stacktrace.


toString

public String toString()
Overrides:
toString in class Object

track

public void track(String str)
Track only calls where testString matches the argument.



Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.