org.apache.blur.trace.hdfs
Class HdfsTraceStorage

java.lang.Object
  extended by org.apache.blur.trace.TraceStorage
      extended by org.apache.blur.trace.hdfs.HdfsTraceStorage
All Implemented Interfaces:
Closeable

public class HdfsTraceStorage
extends TraceStorage


Constructor Summary
HdfsTraceStorage(BlurConfiguration configuration)
           
 
Method Summary
 void close()
           
 String getRequestContentsJson(String traceId, String requestId)
           
 List<String> getRequestIds(String traceId)
           
 List<String> getTraceIds()
           
 void removeTrace(String traceId)
           
 void store(TraceCollector collector)
           
 void storeJson(org.apache.hadoop.fs.Path storePath, org.json.JSONObject jsonObject)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HdfsTraceStorage

public HdfsTraceStorage(BlurConfiguration configuration)
                 throws IOException
Throws:
IOException
Method Detail

store

public void store(TraceCollector collector)
Specified by:
store in class TraceStorage

storeJson

public void storeJson(org.apache.hadoop.fs.Path storePath,
                      org.json.JSONObject jsonObject)
               throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

getTraceIds

public List<String> getTraceIds()
                         throws IOException
Specified by:
getTraceIds in class TraceStorage
Throws:
IOException

getRequestIds

public List<String> getRequestIds(String traceId)
                           throws IOException
Specified by:
getRequestIds in class TraceStorage
Throws:
IOException

getRequestContentsJson

public String getRequestContentsJson(String traceId,
                                     String requestId)
                              throws IOException
Specified by:
getRequestContentsJson in class TraceStorage
Throws:
IOException

removeTrace

public void removeTrace(String traceId)
                 throws IOException
Specified by:
removeTrace in class TraceStorage
Throws:
IOException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.