public enum NullRootAction extends java.lang.Enum<NullRootAction> implements RootAction
RootAction is returned by Session.enterAction(String) when the
Session.end()has been called before.| Enum Constant and Description |
|---|
INSTANCE
The sole
NullRootAction instance |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Action |
enterAction(java.lang.String actionName)
Enters a (child) Action with a specified name on this Action.
|
Action |
leaveAction()
Leaves this Action.
|
Action |
reportError(java.lang.String errorName,
int errorCode,
java.lang.String reason)
Reports an error with a specified name, error code and reason.
|
Action |
reportEvent(java.lang.String eventName)
Reports an event with a specified name (but without any value).
|
Action |
reportValue(java.lang.String valueName,
double value)
Reports a double value with a specified name.
|
Action |
reportValue(java.lang.String valueName,
int value)
Reports an int value with a specified name.
|
Action |
reportValue(java.lang.String valueName,
java.lang.String value)
Reports a String value with a specified name.
|
WebRequestTracer |
traceWebRequest(java.lang.String url)
Allows tracing and timing of a web request handled by any 3rd party HTTP Client (e.g.
|
WebRequestTracer |
traceWebRequest(java.net.URLConnection connection)
Traces a web request - which is provided as a URLConnection - and allows adding timing information to this request.
|
static NullRootAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NullRootAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NullRootAction INSTANCE
NullRootAction instancepublic static NullRootAction[] values()
for (NullRootAction c : NullRootAction.values()) System.out.println(c);
public static NullRootAction 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 Action enterAction(java.lang.String actionName)
RootAction
If the given actionName is null or an empty string,
no reporting will happen on that RootAction.
enterAction in interface RootActionactionName - name of the Actionpublic Action reportEvent(java.lang.String eventName)
Action
If given eventName is null then no event is reported to the system.
reportEvent in interface ActioneventName - name of the eventpublic Action reportValue(java.lang.String valueName, int value)
ActionreportValue in interface ActionvalueName - name of this valuevalue - value itselfpublic Action reportValue(java.lang.String valueName, double value)
ActionreportValue in interface ActionvalueName - name of this valuevalue - value itselfpublic Action reportValue(java.lang.String valueName, java.lang.String value)
ActionreportValue in interface ActionvalueName - name of this valuevalue - value itselfpublic Action reportError(java.lang.String errorName, int errorCode, java.lang.String reason)
ActionreportError in interface ActionerrorName - name of this errorerrorCode - numeric error code of this errorreason - reason for this errorpublic WebRequestTracer traceWebRequest(java.net.URLConnection connection)
ActiontraceWebRequest in interface Actionconnection - the URLConnection of the HTTP request to be tagged and timedpublic WebRequestTracer traceWebRequest(java.lang.String url)
ActionOpenKitConstants.WEBREQUEST_TAG_HEADER) has to be set manually to the
tag value of this WebRequestTracer. traceWebRequest in interface Actionurl - the URL of the web request to be tagged and timedpublic Action leaveAction()
ActionleaveAction in interface Actionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable