|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.sirius.validate.parallel.AbstractSimpleParallelTaskImpl
public abstract class AbstractSimpleParallelTaskImpl
Simple, abstract implementation for a ParallelTask.
Serves as a base for generic, simple implementations of ParallelTask,
or as a starting example for other implementations. Provides simple implementations
for getTaskLabel() and getTaskInfo(), which may be enough for most cases.
The developer extending this class only needs to provide
the callImpl() method.
| Constructor Summary | |
|---|---|
protected |
AbstractSimpleParallelTaskImpl(int iid)
Constructor with instance id parameter. |
| Method Summary | |
|---|---|
ParallelResult |
call()
|
protected abstract ParallelResult |
callImpl()
Call implementation to be provided by the implementing class. |
protected String |
getCallThreadName()
|
int |
getId()
|
ParallelResult |
getResult()
Asynchronous getter for the results. |
String |
getTaskInfo()
Returns human-readable info on the status of the task. |
String |
getTaskLabel()
Returns a label identifying the task "class". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractSimpleParallelTaskImpl(int iid)
iid - the instance id, an integer. Identifies the task instance
in the getTaskInfo string, has otherwise no use.| Method Detail |
|---|
public String getTaskLabel()
ParallelTask
getTaskLabel in interface ParallelTaskpublic String getTaskInfo()
ParallelTask
getTaskInfo in interface ParallelTaskpublic ParallelResult call()
call in interface ParallelTaskcall in interface Callable<ParallelResult>protected abstract ParallelResult callImpl()
public ParallelResult getResult()
ParallelTask
getResult in interface ParallelTaskpublic int getId()
protected String getCallThreadName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||