org.apache.accumulo.cloudtrace.instrument
Class TraceRunnable

java.lang.Object
  extended by org.apache.accumulo.cloudtrace.instrument.TraceRunnable
All Implemented Interfaces:
Comparable<TraceRunnable>, Runnable

public class TraceRunnable
extends Object
implements Runnable, Comparable<TraceRunnable>

Wrap a Runnable with a Span that survives a change in threads.


Constructor Summary
TraceRunnable(Runnable runnable)
           
TraceRunnable(Span parent, Runnable runnable)
           
 
Method Summary
 int compareTo(TraceRunnable o)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceRunnable

public TraceRunnable(Runnable runnable)

TraceRunnable

public TraceRunnable(Span parent,
                     Runnable runnable)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

compareTo

public int compareTo(TraceRunnable o)
Specified by:
compareTo in interface Comparable<TraceRunnable>


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