public class SpanReceiverBuilder extends Object
SpanReceiver builder. It reads a SpanReceiver class name from the provided
configuration using the SPAN_RECEIVER_CONF_KEY key. Unqualified class names
are interpreted as members of the org.apache.htrace.impl package. The build()
method constructs an instance of that class, initialized with the same configuration.| Modifier and Type | Field and Description |
|---|---|
static String |
SPAN_RECEIVER_CONF_KEY |
| Constructor and Description |
|---|
SpanReceiverBuilder(HTraceConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
SpanReceiver |
build() |
SpanReceiverBuilder |
logErrors(boolean logErrors)
Configure whether we should log errors during build().
|
SpanReceiverBuilder |
reset()
Set this builder back to defaults.
|
SpanReceiverBuilder |
spanReceiverClass(String spanReceiverClass)
Override the
SpanReceiver class name provided in configuration with a new value. |
public static final String SPAN_RECEIVER_CONF_KEY
public SpanReceiverBuilder(HTraceConfiguration conf)
public SpanReceiverBuilder reset()
spanReceiverClass(String)
are overridden by the value provided by configuration.public SpanReceiverBuilder spanReceiverClass(String spanReceiverClass)
SpanReceiver class name provided in configuration with a new value.public SpanReceiverBuilder logErrors(boolean logErrors)
public SpanReceiver build()
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.