|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avro.ipc.trace.FileSpanStorage
public class FileSpanStorage
A file-based { @link SpanStorage } implementation for Avro's { @link TracePlugin }. This class has two modes, one in which writes are buffered and one in which they are not. Even without buffering, there will be some delay between reporting of a Span and the actual disk write.
| Field Summary |
|---|
| Fields inherited from interface org.apache.avro.ipc.trace.SpanStorage |
|---|
DEFAULT_MAX_SPANS, MILLIS_PER_SECOND, NANOS_PER_SECOND |
| Constructor Summary | |
|---|---|
FileSpanStorage(boolean buffer,
TracePluginConfiguration conf)
|
|
| Method Summary | |
|---|---|
void |
addSpan(Span s)
Add a span. |
void |
clear()
Clear all Span data stored by this plugin. |
List<Span> |
getAllSpans()
Return a list of all spans currently stored. |
List<Span> |
getSpansInRange(long start,
long end)
Return a list of all spans that fall within the time given range. |
void |
setMaxSpans(long maxSpans)
Set the maximum number of spans to have in storage at any given time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSpanStorage(boolean buffer,
TracePluginConfiguration conf)
| Method Detail |
|---|
public void addSpan(Span s)
SpanStorage
addSpan in interface SpanStoragepublic List<Span> getAllSpans()
SpanStorage
getAllSpans in interface SpanStoragepublic void clear()
public void setMaxSpans(long maxSpans)
SpanStorage
setMaxSpans in interface SpanStorage
public List<Span> getSpansInRange(long start,
long end)
SpanStorage
getSpansInRange in interface SpanStoragestart - UNIX time (in nanoseconds) as a longend - UNIX time (in nanoseconds) as a long
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||