public class TrackingStatus extends Object
Modifier and Type | Field and Description |
---|---|
long |
totalCalls |
long |
totalInits |
long |
totalTime |
Constructor and Description |
---|
TrackingStatus(boolean trace,
String testString) |
Modifier and Type | Method and Description |
---|---|
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. |
public long totalCalls
public long totalInits
public long totalTime
public TrackingStatus(boolean trace, String testString)
public static TrackingStatus getInstance()
public static TrackingStatus getInstance(boolean trace)
trace
- used only for the very first invocation to enable/disable this status instance.public static TrackingStatus getInstance(boolean trace, String testString)
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.public void track()
public void track(String str)
testString
matches the argument.Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.