public class DefaultRequestTrace extends Object implements RequestTrace
| Constructor and Description |
|---|
DefaultRequestTrace(Object data)
Creates a new root trace with the specified data.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getData()
Gets the data associated with this trace.
|
RequestTrace |
getParent()
Gets the parent of this trace.
|
RequestTrace |
newChild(Object data)
Creates a new child of this trace.
|
static RequestTrace |
newChild(RequestTrace parent,
Object data)
Creates a child of the specified request trace.
|
String |
toString() |
public DefaultRequestTrace(Object data)
data - The data to associate with the trace, may be null.public static RequestTrace newChild(RequestTrace parent, Object data)
RequestTrace.newChild(Object) when the specified parent trace is not null or otherwise
instantiante a new root trace.parent - The parent request trace, may be null.data - The data to associate with the child trace, may be null.null.public Object getData()
RequestTracegetData in interface RequestTracenull.public RequestTrace getParent()
RequestTracegetParent in interface RequestTracenull if this is the root of the trace stack.public RequestTrace newChild(Object data)
RequestTracenewChild in interface RequestTracedata - The data to associate with the child, may be null.null.Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.