org.apache.qpid.server.util
Class TimedRun

java.lang.Object
  extended by org.apache.qpid.server.util.TimedRun
All Implemented Interfaces:
Callable<Long>

public abstract class TimedRun
extends Object
implements Callable<Long>


Constructor Summary
TimedRun(String description)
           
 
Method Summary
 Long call()
           
protected abstract  void run()
           
protected  void setup()
           
protected  void teardown()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimedRun

public TimedRun(String description)
Method Detail

call

public Long call()
          throws Exception
Specified by:
call in interface Callable<Long>
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object

setup

protected void setup()
              throws Exception
Throws:
Exception

teardown

protected void teardown()
                 throws Exception
Throws:
Exception

run

protected abstract void run()
                     throws Exception
Throws:
Exception


Licensed to the Apache Software Foundation