|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.usergrid.persistence.cassandra.util.TimedOpTag
public class TimedOpTag
Simple struct holding timer information for an operation and an arbitrary tag for spanning 0 or more operations
Method Summary | |
---|---|
long |
getElapsed()
Elapsed time of this op in milliseconds. |
boolean |
getOpSuccessful()
|
UUID |
getOpTag()
The tag for this specific operation |
long |
getStart()
The start time of this operation as represented by the timestamp embedded in the type-1 UUID of the opTag property |
String |
getTagName()
|
String |
getTraceTagName()
A tag which may span 0 or more operations |
static TimedOpTag |
instance(TraceTag traceTag)
Get an instance with the current start timer set to 'now' |
void |
stopAndApply(String tName,
boolean opStatus)
Apply tagName only if not already applied |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static TimedOpTag instance(TraceTag traceTag)
traceTag
- can be null for single op timing
public void stopAndApply(String tName, boolean opStatus)
tName
- public long getElapsed()
public long getStart()
public UUID getOpTag()
public String getTraceTagName()
public String getTagName()
public boolean getOpSuccessful()
stopAndApply(String, boolean)
was never calledpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |