com.openexchange.admin.taskmanagement
Class ExtendedFutureTask<V>
java.lang.Object
java.util.concurrent.FutureTask<V>
com.openexchange.admin.taskmanagement.ExtendedFutureTask<V>
- Type Parameters:
V
-
- All Implemented Interfaces:
- Runnable, Future<V>, RunnableFuture<V>
public class ExtendedFutureTask<V>
- extends FutureTask<V>
A FutureTask extented by Progress
- Author:
- d7
ExtendedFutureTask
public ExtendedFutureTask(Callable<V> callable,
String typeofjob,
String furtherinformation,
int id)
isRunning
public boolean isRunning()
- Convenience method for detecting if a job runs
- Returns:
isFailed
public boolean isFailed()
- Convenience method for detecting if a job failed
- Returns:
getProgressPercentage
public int getProgressPercentage()
throws NoSuchMethodException
- Gets the progress percentage of the underlying job
- Returns:
- The progress in percent
- Throws:
NoSuchMethodException
- If the job doesn't support this feature
getFurtherinformation
public final String getFurtherinformation()
getTypeofjob
public final String getTypeofjob()