public enum ControlFlowRegistry extends java.lang.Enum<ControlFlowRegistry>
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getAndStoreUniqueThreadLocalTraceId()
This method returns a thread-local traceid which is globally unique and stored it local for the thread.
|
long |
getUniqueTraceId()
This methods returns a globally unique trace id.
|
int |
incrementAndRecallThreadLocalEOI()
Since this method accesses a ThreadLocal variable, it is not (necessary to be) thread-safe.
|
int |
recallAndIncrementThreadLocalESS()
Since this method accesses a ThreadLocal variable, it is not (necessary to be) thread-safe.
|
int |
recallThreadLocalEOI()
This method returns the thread-local curEoi previously registered using the method registerTraceId(curTraceId).
|
int |
recallThreadLocalESS()
This method returns the thread-local curEss previously registered using the method registerTraceId(curTraceId).
|
long |
recallThreadLocalTraceId()
This method returns the thread-local traceid previously registered using the method registerTraceId(curTraceId).
|
void |
storeThreadLocalEOI(int eoi)
Used to explicitly register an curEoi.
|
void |
storeThreadLocalESS(int ess)
Used to explicitly register a execution stack size (ess) value.
|
void |
storeThreadLocalTraceId(long traceId)
This method stores a thread-local curTraceId.
|
void |
unsetThreadLocalEOI()
This method unsets a previously registered traceid.
|
void |
unsetThreadLocalESS()
This method unsets a previously registered curEss.
|
void |
unsetThreadLocalTraceId()
This method unsets a previously registered traceid.
|
static ControlFlowRegistry |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ControlFlowRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ControlFlowRegistry INSTANCE
public static ControlFlowRegistry[] values()
for (ControlFlowRegistry c : ControlFlowRegistry.values()) System.out.println(c);
public static ControlFlowRegistry valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final long getUniqueTraceId()
public final long getAndStoreUniqueThreadLocalTraceId()
public final void storeThreadLocalTraceId(long traceId)
traceId
- The trace ID to store in a thread-local way.public final long recallThreadLocalTraceId()
public final void unsetThreadLocalTraceId()
public final void storeThreadLocalEOI(int eoi)
eoi
- The execution order index to register.public final int incrementAndRecallThreadLocalEOI()
public final int recallThreadLocalEOI()
public final void unsetThreadLocalEOI()
public final void storeThreadLocalESS(int ess)
unsetThreadLocalESS()
!ess
- The execution stack size to store.public final int recallAndIncrementThreadLocalESS()
public final int recallThreadLocalESS()
public final void unsetThreadLocalESS()
Copyright 2017 Kieker Project, http://kieker-monitoring.net