public final class CallInfo extends Object
Constructor and Description |
---|
CallInfo(String pUri,
StatisticsSource pSource) |
Modifier and Type | Method and Description |
---|---|
void |
aborted()
Called when the request stops abnormally.
|
void |
addCall(CallInfo pInfo)
Add a child call to this call.
|
long |
getChildMetric(String pKey)
Return the value of the metric as accumulated by the child
call info nodes.
|
Map<String,Long> |
getChildMetrics()
Return a Map containing the sum of all child metrics
This method caches the child metrics, and must only
be called after all child
CallInfo s have
been added. |
long |
getMetric(String pKey)
Return the metric, which is the delta in the statistic key
from the construction of the CallInfo to the call to stopped()
or aborted().
|
Set<String> |
getMetricKeys() |
long |
getOwnMetric(String pKey)
The metric of this single call, with any child calls subtracted
from it.
|
String |
getUri()
Return the URI which was used to construct this CallInfo
|
void |
relativeTo(CallInfo pInfo)
inform the call info that it should resolve itself
relative to the pInfo CallInfo parameter.
|
void |
stopped()
stops the call.
|
public CallInfo(String pUri, StatisticsSource pSource)
public final void aborted()
public void addCall(CallInfo pInfo)
public String getUri()
public void stopped()
public void relativeTo(CallInfo pInfo)
This method call should only be done once, after all the child calls have been added. It only changes the Uri in the call infos if the URI is a relative URI.
public long getMetric(String pKey)
public long getChildMetric(String pKey)
public long getOwnMetric(String pKey)
public Map<String,Long> getChildMetrics()
CallInfo
s have
been added.© 1998- 2018 Stibo DX