public abstract class AbsTrans<ENV extends Env> extends Object implements TransStore
Trans.Metric| Modifier and Type | Field and Description |
|---|---|
protected ENV |
delegate |
protected List<TimeTaken> |
trail |
| Modifier and Type | Method and Description |
|---|---|
LogTarget |
audit()
Required Audit statements
|
Trans.Metric |
auditTrail(int indent,
StringBuilder sb,
int... flags) |
Trans.Metric |
auditTrail(LogTarget lt,
int indent,
StringBuilder sb,
int... flags)
Output an Audit Trail onto the StringBuilder
Load metrics into an array of floats from passed in Flags
|
void |
checkpoint(String name)
Add a completed entry in the Audit Trail for tracking purposes.
|
void |
checkpoint(String name,
int additionalFlag)
Add a completed entry in the Audit Trail for tracking purposes, and combine flag with "CHECKPOINT"
|
LogTarget |
debug()
Fine-grained informational events useful for debugging
|
LogTarget |
error()
Severe Error, but program might continue running
|
LogTarget |
fatal()
Very Severe Error may cause program to abort
|
<T> T |
get(Slot slot,
T deflt)
Get data from the Trans State from the right slot
This will do a cast to the expected type derived from Default
|
LogTarget |
info()
Course Grained highlights of program progress
|
LogTarget |
init()
Initialization steps...
|
protected abstract TimeTaken |
newTimeTaken(String name,
int flag)
Let the final Trans Implementation choose the exact kind of TimeTaken to use
|
void |
put(Slot slot,
Object value)
Put data into the Trans State at the right slot
|
TimeTaken |
start(String name,
int flag)
Start a Time Trail with differentiation by flag.
|
LogTarget |
trace()
Finest grained Informational events...
|
LogTarget |
warn()
Potentially harmful situations
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, slotdecryptor, encryptor, getProperty, getProperty, setPropertypublic AbsTrans(ENV delegate)
public LogTarget fatal()
Envpublic LogTarget error()
Envpublic LogTarget init()
Envpublic LogTarget info()
Envpublic LogTarget debug()
Envpublic LogTarget trace()
Envprotected abstract TimeTaken newTimeTaken(String name, int flag)
name - flag - public final TimeTaken start(String name, int flag)
Envpublic final void checkpoint(String name)
Transcheckpoint in interface Transpublic final void checkpoint(String name, int additionalFlag)
Transcheckpoint in interface Transpublic Trans.Metric auditTrail(int indent, StringBuilder sb, int... flags)
auditTrail in interface Transpublic Trans.Metric auditTrail(LogTarget lt, int indent, StringBuilder sb, int... flags)
TransauditTrail in interface Transpublic void put(Slot slot, Object value)
put in interface TransStorepublic <T> T get(Slot slot, T deflt)
get in interface TransStoreCopyright © 2017. All rights reserved.