org.apache.accumulo.core.trace
Class TraceFormatter

java.lang.Object
  extended by org.apache.accumulo.core.trace.TraceFormatter
All Implemented Interfaces:
Iterator<String>, Formatter

public class TraceFormatter
extends Object
implements Formatter

A formatter than can be used in the shell to display trace information.


Field Summary
static String DATE_FORMAT
           
 
Constructor Summary
TraceFormatter()
           
 
Method Summary
static String formatDate(Date date)
           
static RemoteSpan getRemoteSpan(Map.Entry<Key,Value> entry)
           
 boolean hasNext()
           
 void initialize(Iterable<Map.Entry<Key,Value>> scanner, boolean printTimestamps)
           
 String next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMAT

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

TraceFormatter

public TraceFormatter()
Method Detail

formatDate

public static String formatDate(Date date)

getRemoteSpan

public static RemoteSpan getRemoteSpan(Map.Entry<Key,Value> entry)

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<String>

next

public String next()
Specified by:
next in interface Iterator<String>

remove

public void remove()
Specified by:
remove in interface Iterator<String>

initialize

public void initialize(Iterable<Map.Entry<Key,Value>> scanner,
                       boolean printTimestamps)
Specified by:
initialize in interface Formatter


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