public abstract class AbstractSimpleParallelTaskImpl extends Object implements ParallelTask
getTaskLabel()
and getTaskInfo()
, which may be enough for most cases.
The developer extending this class only needs to provide
the callImpl()
method.Modifier | Constructor and Description |
---|---|
protected |
AbstractSimpleParallelTaskImpl(int iid)
Constructor with instance id parameter.
|
Modifier and Type | Method and Description |
---|---|
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".
|
protected AbstractSimpleParallelTaskImpl(int iid)
iid
- the instance id, an integer. Identifies the task instance
in the getTaskInfo string, has otherwise no use.public String getTaskLabel()
ParallelTask
getTaskLabel
in interface ParallelTask
public String getTaskInfo()
ParallelTask
getTaskInfo
in interface ParallelTask
public ParallelResult call()
call
in interface ParallelTask
call
in interface Callable<ParallelResult>
protected abstract ParallelResult callImpl()
public ParallelResult getResult()
ParallelTask
getResult
in interface ParallelTask
public int getId()
protected String getCallThreadName()
Copyright © 2018 CNES. All Rights Reserved.