@InterfaceAudience.Private public class SpanReceiverHost extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
SpanReceiverHost.SingletonHolder |
Modifier and Type | Field and Description |
---|---|
private boolean |
closed |
private org.apache.hadoop.conf.Configuration |
conf |
private static org.apache.commons.logging.Log |
LOG |
private Collection<org.apache.htrace.SpanReceiver> |
receivers |
static String |
SPAN_RECEIVERS_CONF_KEY |
Constructor and Description |
---|
SpanReceiverHost(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
closeReceivers()
Calls close() on all SpanReceivers created by this SpanReceiverHost.
|
static SpanReceiverHost |
getInstance(org.apache.hadoop.conf.Configuration conf) |
void |
loadSpanReceivers()
Reads the names of classes specified in the
hbase.trace.spanreceiver.classes property
and instantiates and registers them with the Tracer. |
public static final String SPAN_RECEIVERS_CONF_KEY
private static final org.apache.commons.logging.Log LOG
private Collection<org.apache.htrace.SpanReceiver> receivers
private org.apache.hadoop.conf.Configuration conf
private boolean closed
public static SpanReceiverHost getInstance(org.apache.hadoop.conf.Configuration conf)
public void loadSpanReceivers()
hbase.trace.spanreceiver.classes
property
and instantiates and registers them with the Tracer.public void closeReceivers()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.