org.dasein.cloud
Class AsynchronousTask<T>

java.lang.Object
  extended by org.dasein.cloud.AsynchronousTask<T>
Direct Known Subclasses:
FileTransfer

public class AsynchronousTask<T>
extends Object


Constructor Summary
AsynchronousTask()
           
 
Method Summary
 void complete(Throwable withError)
           
 void completeWithResult(T result)
           
 long getDuration()
           
 long getEndTime()
           
 double getPercentComplete()
           
 T getResult()
           
 long getStartTime()
           
 Throwable getTaskError()
           
 boolean isComplete()
           
 void setPercentComplete(double percentComplete)
           
 void setStartTime(long startTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousTask

public AsynchronousTask()
Method Detail

complete

public void complete(Throwable withError)

completeWithResult

public void completeWithResult(T result)

isComplete

public boolean isComplete()

getDuration

public long getDuration()

getPercentComplete

public double getPercentComplete()

setPercentComplete

public void setPercentComplete(double percentComplete)

getEndTime

public long getEndTime()

getResult

public T getResult()

getStartTime

public long getStartTime()

setStartTime

public void setStartTime(long startTime)

getTaskError

public Throwable getTaskError()