org.apache.qpid.server.util
Class TimedRun

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

public abstract class TimedRun
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.Long>


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

Constructor Detail

TimedRun

public TimedRun(java.lang.String description)
Method Detail

call

public java.lang.Long call()
                    throws java.lang.Exception
Specified by:
call in interface java.util.concurrent.Callable<java.lang.Long>
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setup

protected void setup()
              throws java.lang.Exception
Throws:
java.lang.Exception

teardown

protected void teardown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

run

protected abstract void run()
                     throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2007. All Rights Reserved.