org.apache.hadoop.hbase.trace
Class HBaseLocalFileSpanReceiver

java.lang.Object
  extended by org.apache.hadoop.hbase.trace.HBaseLocalFileSpanReceiver
All Implemented Interfaces:
Closeable, org.apache.hadoop.conf.Configurable, org.cloudera.htrace.SpanReceiver

public class HBaseLocalFileSpanReceiver
extends Object
implements org.cloudera.htrace.SpanReceiver, org.apache.hadoop.conf.Configurable

Wraps the LocalFileSpanReceiver provided in org.cloudera.htrace.impl.LocalFileSpanReceiver to read the file name destination for spans from hbase-site.xml. The file path should be added as a property with name "hbase.trace.spanreceiver.localfilespanreceiver.filename".


Field Summary
static String FILE_NAME_CONF_KEY
           
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
HBaseLocalFileSpanReceiver()
           
 
Method Summary
 void close()
           
 org.apache.hadoop.conf.Configuration getConf()
           
 void receiveSpan(org.cloudera.htrace.Span span)
           
 void setConf(org.apache.hadoop.conf.Configuration arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG

FILE_NAME_CONF_KEY

public static final String FILE_NAME_CONF_KEY
See Also:
Constant Field Values
Constructor Detail

HBaseLocalFileSpanReceiver

public HBaseLocalFileSpanReceiver()
Method Detail

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable

setConf

public void setConf(org.apache.hadoop.conf.Configuration arg0)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

receiveSpan

public void receiveSpan(org.cloudera.htrace.Span span)
Specified by:
receiveSpan in interface org.cloudera.htrace.SpanReceiver


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.