org.htrace.impl
Class StandardOutSpanReceiver
java.lang.Object
org.htrace.impl.StandardOutSpanReceiver
- All Implemented Interfaces:
- Closeable, SpanReceiver
public class StandardOutSpanReceiver
- extends Object
- implements SpanReceiver
Used for testing. Simply prints to standard out any spans it receives.
|
Method Summary |
void |
close()
|
void |
configure(HTraceConfiguration conf)
Hosts of SpanReceivers should call this method to provide
configuration to SpanReceivers after creating them. |
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 |
StandardOutSpanReceiver
public StandardOutSpanReceiver()
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
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
close
public void close()
throws IOException
- Specified by:
close in interface Closeable
- Throws:
IOException
Copyright © 2014. All Rights Reserved.