org.apache.accumulo.cloudtrace.instrument.impl
Class RootMilliSpan

java.lang.Object
  extended by org.apache.accumulo.cloudtrace.instrument.impl.MilliSpan
      extended by org.apache.accumulo.cloudtrace.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.


Field Summary
 
Fields inherited from interface org.apache.accumulo.cloudtrace.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.cloudtrace.instrument.impl.MilliSpan
accumulatedMillis, child, currentTimeMillis, data, description, getData, getStartTimeMillis, getStopTimeMillis, parent, running, spanId, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RootMilliSpan

public RootMilliSpan(String description,
                     long traceId,
                     long spanId,
                     long parentId)
Method Detail

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 © 2012 The Apache Software Foundation. All Rights Reserved.