public enum TraceRegistry extends java.lang.Enum<TraceRegistry>
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
TraceMetadata |
getTrace()
Gets a Trace for the current thread.
|
TraceMetadata |
registerTrace()
This creates a new unique Trace object and registers it.
|
void |
setParentTraceId(java.lang.Thread t,
long traceId,
int orderId)
Sets the parent for the next created trace inside this thread.
|
void |
unregisterTrace()
Unregisters the current Trace object.
|
static TraceRegistry |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TraceRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TraceRegistry INSTANCE
public static TraceRegistry[] values()
for (TraceRegistry c : TraceRegistry.values()) System.out.println(c);
public static TraceRegistry 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 TraceMetadata getTrace()
public final TraceMetadata registerTrace()
public final void unregisterTrace()
public final void setParentTraceId(java.lang.Thread t, long traceId, int orderId)
t
- the thread the new trace belongs totraceId
- the parent trace idorderId
- the parent order idCopyright 2017 Kieker Project, http://kieker-monitoring.net