org.apache.accumulo.core.trace
Class ZooTraceClient

java.lang.Object
  extended by org.apache.accumulo.trace.instrument.receivers.AsyncSpanReceiver<String,SpanReceiver.Client>
      extended by org.apache.accumulo.trace.instrument.receivers.SendSpansViaThrift
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher
org.apache.zookeeper.Watcher.Event
 
Field Summary
 
Fields inherited from class org.apache.accumulo.trace.instrument.receivers.AsyncSpanReceiver
host, service
 
Constructor Summary
ZooTraceClient(ZooReader zoo, String path, String host, String service, long millis)
           
 
Method Summary
protected  String getSpanKey(Map<String,String> data)
           
 void process(org.apache.zookeeper.WatchedEvent event)
           
 
Methods inherited from class org.apache.accumulo.trace.instrument.receivers.SendSpansViaThrift
createDestination, send
 
Methods inherited from class org.apache.accumulo.trace.instrument.receivers.AsyncSpanReceiver
flush, span
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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 Apache Accumulo Project. All Rights Reserved.