org.apache.accumulo.core.trace
Class ZooTraceClient
java.lang.Object
org.apache.accumulo.cloudtrace.instrument.receivers.AsyncSpanReceiver<String,SpanReceiver.Client>
org.apache.accumulo.cloudtrace.instrument.receivers.SendSpansViaThrift
org.apache.accumulo.core.trace.ZooTraceClient
- All Implemented Interfaces:
- SpanReceiver, org.apache.zookeeper.Watcher
public class ZooTraceClient
- extends SendSpansViaThrift
- implements org.apache.zookeeper.Watcher
Find a Span collector via zookeeper and push spans there via Thrift RPC
Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher |
org.apache.zookeeper.Watcher.Event |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZooTraceClient
public ZooTraceClient(ZooReader zoo,
String path,
String host,
String service,
long millis)
throws IOException,
org.apache.zookeeper.KeeperException,
InterruptedException
- Throws:
IOException
org.apache.zookeeper.KeeperException
InterruptedException
getSpanKey
protected String getSpanKey(Map<String,String> data)
- Overrides:
getSpanKey
in class SendSpansViaThrift
process
public void process(org.apache.zookeeper.WatchedEvent event)
- Specified by:
process
in interface org.apache.zookeeper.Watcher
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.