org.htrace.impl
Class POJOSpanReceiver
java.lang.Object
org.htrace.impl.POJOSpanReceiver
- All Implemented Interfaces:
- Closeable, SpanReceiver
public class POJOSpanReceiver
- extends Object
- implements SpanReceiver
SpanReceiver for testing only that just collects the Span objects it
receives. The spans it receives can be accessed with getSpans();
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POJOSpanReceiver
public POJOSpanReceiver()
configure
public void configure(HTraceConfiguration conf)
- Description copied from interface:
SpanReceiver
- Hosts of SpanReceivers should call this method to provide
configuration to SpanReceivers after creating them.
- Specified by:
configure in interface SpanReceiver
getSpans
public Collection<Span> getSpans()
- Returns:
- The spans this POJOSpanReceiver has received.
close
public void close()
throws IOException
- Specified by:
close in interface Closeable
- Throws:
IOException
receiveSpan
public void receiveSpan(Span span)
- Description copied from interface:
SpanReceiver
- Called when a Span is stopped and can now be stored.
- Specified by:
receiveSpan in interface SpanReceiver
Copyright © 2014. All Rights Reserved.