org.htrace.impl
Class POJOSpanReceiver

java.lang.Object
  extended by 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();


Constructor Summary
POJOSpanReceiver()
           
 
Method Summary
 void close()
           
 void configure(HTraceConfiguration conf)
          Hosts of SpanReceivers should call this method to provide configuration to SpanReceivers after creating them.
 Collection<Span> getSpans()
           
 void receiveSpan(Span span)
          Called when a Span is stopped and can now be stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POJOSpanReceiver

public POJOSpanReceiver()
Method Detail

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.