public abstract class BaseActionImpl extends OpenKitComposite implements Action
Action interface.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getActionID()
Get the action id of this composite or
0 if the composite is not an action. |
int |
getEndSequenceNo() |
long |
getEndTime() |
int |
getID() |
java.lang.String |
getName() |
protected abstract Action |
getParentAction()
Get the parent Action, which might be
null in case the parent does not implement Action. |
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.
|
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.
|
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 abstract Action getParentAction()
null in case the parent does not implement Action.null if parent does not implement Action.public int getActionID()
OpenKitComposite0 if the composite is not an action.
The default return value of 0 is implemented here.
Action related composites need to override this method and return the appropriate value.
getActionID in class OpenKitCompositepublic int getID()
public java.lang.String getName()
public int getParentID()
public long getStartTime()
public long getEndTime()
public int getStartSequenceNo()
public int getEndSequenceNo()