public class FileSpanStorage extends Object implements SpanStorage
DEFAULT_MAX_SPANS, MILLIS_PER_SECOND, NANOS_PER_SECOND| Constructor and Description | 
|---|
FileSpanStorage(boolean buffer,
               TracePluginConfiguration conf)  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
public FileSpanStorage(boolean buffer,
               TracePluginConfiguration conf)
public void addSpan(Span s)
SpanStorageaddSpan in interface SpanStoragepublic List<Span> getAllSpans()
SpanStoragegetAllSpans in interface SpanStoragepublic void clear()
public void setMaxSpans(long maxSpans)
SpanStoragesetMaxSpans in interface SpanStoragepublic List<Span> getSpansInRange(long start, long end)
SpanStoragegetSpansInRange in interface SpanStoragestart - UNIX time (in nanoseconds) as a longend - UNIX time (in nanoseconds) as a longCopyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.