org.apache.accumulo.trace.instrument.impl
ROOT_SPAN_ID
Constructor and Description |
---|
NullSpan() |
Modifier and Type | Method and Description |
---|---|
long |
accumulatedMillis()
Return the total amount of time elapsed since start was called, if running, or difference between stop and start
|
Span |
child(String description)
Create a child span of this span with the given description
|
void |
data(String key,
String value)
Add data associated with this span
|
String |
description()
Return a textual description of this span
|
Map<String,String> |
getData()
Get data associated with this span (read only)
|
long |
getStartTimeMillis()
Get the start time, in milliseconds
|
long |
getStopTimeMillis()
Get the stop time, in milliseconds
|
Span |
parent()
The parent span: returns null if this is the root span
|
long |
parentId()
Return the pseudo-unique (random) number of the parent span, returns ROOT_SPAN_ID if this is the root span
|
boolean |
running()
Has the span been started and not yet stopped?
|
long |
spanId()
A pseudo-unique (random) number assigned to this span instance
|
void |
start()
Begin gathering timing information
|
void |
stop()
The block has completed, stop the clock
|
String |
toString() |
long |
traceId()
A pseudo-unique (random) number assigned to the trace associated with this span
|
public long accumulatedMillis()
Span
accumulatedMillis
in interface Span
public String description()
Span
description
in interface Span
public long getStartTimeMillis()
Span
getStartTimeMillis
in interface Span
public long getStopTimeMillis()
Span
getStopTimeMillis
in interface Span
public Span parent()
Span
public long parentId()
Span
public boolean running()
Span
public long spanId()
Span
public void start()
Span
public void stop()
Span
public long traceId()
Span
public Span child(String description)
Span
public void data(String key, String value)
Span
public String toString()
Copyright © 2015 Apache Accumulo Project. All Rights Reserved.