public abstract class AsyncSpanReceiver<SpanKey,Destination> extends Object implements org.apache.htrace.SpanReceiver
| Modifier and Type | Field and Description |
|---|---|
protected String |
host |
static String |
QUEUE_SIZE |
static String |
SEND_TIMER_MILLIS |
protected AbstractQueue<RemoteSpan> |
sendQueue |
protected String |
service |
| Constructor and Description |
|---|
AsyncSpanReceiver(org.apache.htrace.HTraceConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static List<Annotation> |
convertToAnnotations(List<org.apache.htrace.TimelineAnnotation> annotations) |
static Map<String,String> |
convertToStrings(Map<byte[],byte[]> bytesMap) |
protected abstract Destination |
createDestination(SpanKey key) |
protected abstract SpanKey |
getSpanKey(Map<String,String> data) |
void |
receiveSpan(org.apache.htrace.Span s) |
protected abstract void |
send(Destination resource,
RemoteSpan span) |
protected void |
sendSpans() |
public static final String SEND_TIMER_MILLIS
public static final String QUEUE_SIZE
protected String host
protected String service
protected final AbstractQueue<RemoteSpan> sendQueue
public AsyncSpanReceiver(org.apache.htrace.HTraceConfiguration conf)
protected abstract Destination createDestination(SpanKey key) throws Exception
Exceptionprotected abstract void send(Destination resource, RemoteSpan span) throws Exception
Exceptionprotected void sendSpans()
public static List<Annotation> convertToAnnotations(List<org.apache.htrace.TimelineAnnotation> annotations)
public void receiveSpan(org.apache.htrace.Span s)
receiveSpan in interface org.apache.htrace.SpanReceiverpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2015 Apache Accumulo Project. All rights reserved.