public class TraceStep
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
TraceStep(java.lang.String aCall)
Creates a new trace step.
|
TraceStep(java.lang.String aCall,
IStatsProducer aProducer,
java.lang.String aMethodName)
Creates a new trace step.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(TraceStep p)
Adds a new child to this step.
|
void |
appendToCall(java.lang.String s)
Appends additional string to the call description.
|
java.lang.String |
generateTrace() |
java.lang.String |
getCall() |
java.util.List<TraceStep> |
getChildren() |
long |
getDuration()
Returns the total duration of this step.
|
TraceStep |
getLastStep()
Returns the last step in this execution.
|
java.lang.String |
getMethodName() |
long |
getNetDuration()
Returns the net duration, which means total duration minus the duration of all children.
|
TraceStep |
getParent()
Returns the parent step.
|
IStatsProducer |
getProducer()
Returns associated producer.
|
boolean |
isAborted()
Returns true if this step is marked as aborted/exceptional.
|
void |
setAborted() |
void |
setAborted(boolean aborted) |
void |
setDuration(long duration) |
void |
setParent(TraceStep step)
Sets the parent step of this step.
|
java.lang.String |
toJSON() |
java.lang.String |
toString() |
public TraceStep(java.lang.String aCall)
aCall - string description of the call.public TraceStep(java.lang.String aCall,
IStatsProducer aProducer,
java.lang.String aMethodName)
aCall - call description.aProducer - the executing producer.public java.lang.String getCall()
public java.util.List<TraceStep> getChildren()
public void setParent(TraceStep step)
step - public TraceStep getParent()
public TraceStep getLastStep()
public java.lang.String toString()
toString in class java.lang.Objectpublic void addChild(TraceStep p)
p - public java.lang.String generateTrace()
public boolean isAborted()
public void setAborted(boolean aborted)
public void setAborted()
public long getDuration()
public long getNetDuration()
public void setDuration(long duration)
public void appendToCall(java.lang.String s)
s - string to append.public IStatsProducer getProducer()
public java.lang.String toJSON()
public java.lang.String getMethodName()
Copyright © 2010-2020 anotheria.net. All Rights Reserved.