public class ActionImpl extends java.lang.Object implements Action
Action interface.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Action |
doLeaveAction() |
int |
getEndSequenceNo() |
long |
getEndTime() |
int |
getID() |
java.lang.String |
getName() |
int |
getParentID() |
int |
getStartSequenceNo() |
long |
getStartTime() |
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.
|
java.lang.String |
toString() |
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.
|
protected final Logger logger
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic 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 Actionprotected Action doLeaveAction()
public int getID()
public java.lang.String getName()
public int getParentID()
public long getStartTime()
public long getEndTime()
public int getStartSequenceNo()
public int getEndSequenceNo()
public java.lang.String toString()
toString in class java.lang.Object