org.apache.accumulo.trace.instrument.impl
Class RootMilliSpan
java.lang.Object
org.apache.accumulo.trace.instrument.impl.MilliSpan
org.apache.accumulo.trace.instrument.impl.RootMilliSpan
- All Implemented Interfaces:
- Span
public class RootMilliSpan
- extends MilliSpan
Span that roots the span tree in a process, but perhaps not the whole trace.
Fields inherited from interface org.apache.accumulo.trace.instrument.Span |
ROOT_SPAN_ID |
Constructor Summary |
RootMilliSpan(String description,
long traceId,
long spanId,
long parentId)
|
Method Summary |
long |
parentId()
Return the pseudo-unique (random) number of the parent span, returns ROOT_SPAN_ID if this is the root span |
long |
traceId()
A pseudo-unique (random) number assigned to the trace associated with this span |
Methods inherited from class org.apache.accumulo.trace.instrument.impl.MilliSpan |
accumulatedMillis, child, currentTimeMillis, data, description, getData, getStartTimeMillis, getStopTimeMillis, parent, running, spanId, start, stop, toString |
RootMilliSpan
public RootMilliSpan(String description,
long traceId,
long spanId,
long parentId)
traceId
public long traceId()
- Description copied from interface:
Span
- A pseudo-unique (random) number assigned to the trace associated with this span
- Specified by:
traceId
in interface Span
- Overrides:
traceId
in class MilliSpan
parentId
public long parentId()
- Description copied from interface:
Span
- Return the pseudo-unique (random) number of the parent span, returns ROOT_SPAN_ID if this is the root span
- Specified by:
parentId
in interface Span
- Overrides:
parentId
in class MilliSpan
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.