|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wgen.op.logging.TraceKey
Relates operations in some chain of events as belonging to the same source event and aggregates stats on what has happened during the lifetime of the trace.
| Field Summary | |
private long |
_counter
A counter to distinguish among requests. |
private RequestExecutionInfo |
_execInfo
Accumulated information about things that have happened during the trace. |
private java.lang.Object |
_localMarker
In a distributed EJB environment, this transient object is used to identify whether or not the TraceKey has been serialized across the network. |
private OpModule |
_module
The module claiming this trace, either determined by the url or class, or explicitly passed into the constructor. |
private java.lang.String |
_requestUrl
The requested url if available. |
private long |
_startTime
The start time of the trace. |
private SubModule |
_subModule
A sub module if there is one. |
private boolean |
_temporary
Whether or not this trace is considered temporary because of some legacy operation that is being done with out a TraceKey. |
protected java.lang.String |
_toStringRepresentation
The string representation of the traceKey generated in the constructor for use by toString. |
private TraceState |
_traceState
|
private java.lang.String |
_tracingLoggerRoot
If tracing is on, the TraceTriggerState will set the logging root, under which it tries to append the TraceLogger. |
private boolean |
_tracingOn
Whether or not tracing is deemed to be on. |
private java.util.Map |
_userData
A spot to store user data that follows the trace. |
private java.lang.Long |
_userId
The current user during the trace, or 0 if there is no userSid available. |
private static long |
serialVersionUID
|
protected static java.lang.String |
TEMPORARY_NAME
|
| Constructor Summary | |
protected |
TraceKey(long startTime,
java.lang.Long userId,
OpModule module,
SubModule subModule,
java.lang.String requestUrl,
long counter)
The typical constructor where the url will be claimed by some application. |
| Method Summary | |
boolean |
equals(java.lang.Object o)
|
void |
finishUsingTempKey()
In the legacy context (ModelManager), a temporary key is used to aggregate information, and then before being kicked out is dumped, and this logs the collected stats to the stat log. |
long |
getCounter()
|
RequestExecutionInfo |
getExecInfo()
|
java.lang.Object |
getLocalMarker()
In a distributed EJB environment, the EjbOpExecutor uses the localMarker on either side of the EJB call to determine whether or not the Op had been serialized during the EJB call. |
OpModule |
getModule()
|
java.lang.String |
getRequestUrl()
|
long |
getStartTime()
|
SubModule |
getSubModule()
|
java.lang.String |
getToStringRepresentation()
|
TraceState |
getTraceState()
|
java.lang.String |
getTracingLoggerRoot()
|
java.util.Map |
getUserData()
|
java.lang.Long |
getUserId()
|
int |
hashCode()
|
boolean |
isTemporary()
|
boolean |
isTracingOn()
Whether or not the TraceTrigger identified this request as tracing. |
protected java.lang.String |
makeToString()
|
protected void |
setTraceState(TraceState traceState)
|
protected void |
setTracingLoggerRoot(java.lang.String tracingLoggerRoot)
|
protected void |
setTracingOn()
Set by the TraceTrigger, this identifies whether or not a Logger has been added to collect trace statements. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
protected static final java.lang.String TEMPORARY_NAME
private final long _startTime
private final java.lang.Long _userId
private final java.lang.String _requestUrl
private final long _counter
protected final java.lang.String _toStringRepresentation
private java.util.Map _userData
private final OpModule _module
private final SubModule _subModule
private final RequestExecutionInfo _execInfo
private boolean _tracingOn
private final boolean _temporary
private transient java.lang.Object _localMarker
private java.lang.String _tracingLoggerRoot
private transient TraceState _traceState
| Constructor Detail |
protected TraceKey(long startTime,
java.lang.Long userId,
OpModule module,
SubModule subModule,
java.lang.String requestUrl,
long counter)
startTime - the initialization time of the traceuserId - the sid of the user or 0 if there is no user id availablemodule - subModule - requestUrl - the requested url to be claimed by an applicationcounter - a counter to differentiate simultaneous requests from the same user| Method Detail |
public java.util.Map getUserData()
public long getStartTime()
public java.lang.Long getUserId()
public java.lang.String getRequestUrl()
public long getCounter()
public OpModule getModule()
public SubModule getSubModule()
public RequestExecutionInfo getExecInfo()
public java.lang.String getToStringRepresentation()
public java.lang.Object getLocalMarker()
EjbOpExecutor.executeOp(net.wgen.op.Op),
OpManagerBean.executeOp(net.wgen.op.Op)public boolean isTracingOn()
TraceTrigger.handleTriggerValue(net.wgen.op.http.filter.ParamTrigger, String, Object, net.wgen.op.http.filter.ParamTriggerState)protected void setTracingOn()
TraceTrigger.handleTriggerValue(net.wgen.op.http.filter.ParamTrigger, String, Object, net.wgen.op.http.filter.ParamTriggerState)public TraceState getTraceState()
protected void setTraceState(TraceState traceState)
public java.lang.String getTracingLoggerRoot()
protected void setTracingLoggerRoot(java.lang.String tracingLoggerRoot)
public boolean isTemporary()
public void finishUsingTempKey()
protected java.lang.String makeToString()
public java.lang.String toString()
public boolean equals(java.lang.Object o)
public int hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||