@Service(name="requesttracing-service") @RunLevel(value=10) public class RequestTracingService extends Object implements EventListener, org.jvnet.hk2.config.ConfigListener
EventListener.Event<T>| Constructor and Description |
|---|
RequestTracingService() |
| Modifier and Type | Method and Description |
|---|---|
void |
bootstrapNotifierList()
Configures notifiers with request tracing and starts any enabled ones.
|
void |
bootstrapRequestTracingService()
Starts the request tracing service
|
org.jvnet.hk2.config.UnprocessedChangeEvents |
changed(PropertyChangeEvent[] events) |
void |
endTrace() |
void |
event(EventListener.Event event)
Process a Glassfish/Payara event
|
UUID |
getConversationID()
Retrieves the current Conversation ID
|
RequestTracingExecutionOptions |
getExecutionOptions() |
Long |
getThresholdValueInNanos() |
boolean |
isRequestTracingEnabled() |
boolean |
isTraceInProgress()
Returns true if a trace has started and not yet completed
|
void |
setConversationID(UUID newID)
Reset the conversation ID
This is especially useful for trace propagation across threads when
the event tracer can receive the conversation ID propagated to it
|
UUID |
startTrace()
Starts a new request trace
|
void |
traceRequestEvent(RequestEvent requestEvent)
Adds a new event to the request trace currently in progress
|
public void event(EventListener.Event event)
EventListenerevent in interface EventListenerpublic void bootstrapRequestTracingService()
public void bootstrapNotifierList()
public UUID getConversationID()
public void setConversationID(UUID newID)
newID - public boolean isTraceInProgress()
public UUID startTrace()
public void traceRequestEvent(RequestEvent requestEvent)
requestEvent - public void endTrace()
public Long getThresholdValueInNanos()
public boolean isRequestTracingEnabled()
public RequestTracingExecutionOptions getExecutionOptions()
public org.jvnet.hk2.config.UnprocessedChangeEvents changed(PropertyChangeEvent[] events)
changed in interface org.jvnet.hk2.config.ConfigListenerCopyright © 2017. All rights reserved.