@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.slf4j.Logger |
LOG |
private Collection<org.apache.htrace.core.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 org.apache.hadoop.conf.Configuration |
getConfiguration() |
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.slf4j.Logger LOG
private Collection<org.apache.htrace.core.SpanReceiver> receivers
private org.apache.hadoop.conf.Configuration conf
private boolean closed
SpanReceiverHost(org.apache.hadoop.conf.Configuration conf)
public static SpanReceiverHost getInstance(org.apache.hadoop.conf.Configuration conf)
public static org.apache.hadoop.conf.Configuration getConfiguration()
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.