org.apache.hadoop.hbase.trace
Class SpanReceiverHost

java.lang.Object
  extended by org.apache.hadoop.hbase.trace.SpanReceiverHost

public class SpanReceiverHost
extends Object

This class provides functions for reading the names of SpanReceivers from hbase-site.xml, adding those SpanReceivers to the Tracer, and closing those SpanReceivers when appropriate.


Field Summary
static String SPAN_RECEIVERS_CONF_KEY
           
 
Constructor Summary
SpanReceiverHost(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 void closeReceivers()
          Calls close() on all SpanReceivers created by this SpanReceiverHost.
 void loadSpanReceivers()
          Reads the names of classes specified in the "hbase.trace.spanreceiver.classes" property and instantiates and registers them with the Tracer as SpanReceiver's.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPAN_RECEIVERS_CONF_KEY

public static final String SPAN_RECEIVERS_CONF_KEY
See Also:
Constant Field Values
Constructor Detail

SpanReceiverHost

public SpanReceiverHost(org.apache.hadoop.conf.Configuration conf)
Method Detail

loadSpanReceivers

public void loadSpanReceivers()
Reads the names of classes specified in the "hbase.trace.spanreceiver.classes" property and instantiates and registers them with the Tracer as SpanReceiver's. The nullary constructor is called during construction, but if the classes specified implement the Configurable interface, setConfiguration() will be called on them. This allows SpanReceivers to use values from hbase-site.xml. See HBaseLocalFileSpanReceiver for an example.


closeReceivers

public void closeReceivers()
Calls close() on all SpanReceivers created by this SpanReceiverHost.



Copyright © 2013 The Apache Software Foundation. All Rights Reserved.