|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Task
A generic Task
interfact, not necessarily representing a
Job
.
Method Summary | |
---|---|
void |
abort()
Abort this task. |
TaskStatus |
block()
Block on this Task until it reaches a final state (
TaskStatus.SUCCESSFUL , TaskStatus.ABORTED ,
TaskStatus.FAILED ). |
TaskStatus |
block(long millis)
Block for at most millis ms until this Task reaches a final
state. |
eu.unicore.hila.exceptions.HiLAException |
getError()
The reason for the failure of the task can be retrieved here. |
History |
getHistory()
|
String |
getId()
The ID of this Task . |
void |
registerStatusChangeListener(StatusChangeListener listener)
Register a StatusChangeListener to be notified of any changes in
this Task 's TaskStatus . |
void |
removeStatusChangeListener(StatusChangeListener listener)
Remove a registered StatusChangeListener from this Task . |
TaskStatus |
status()
The current TaskStatus of this Task . |
Methods inherited from interface eu.unicore.hila.Resource |
---|
getChild, getChildren, getLocation, getMetadata, getName, getParent, ok |
Method Detail |
---|
void abort() throws eu.unicore.hila.exceptions.HiLAException
eu.unicore.hila.exceptions.HiLAException
TaskStatus block() throws eu.unicore.hila.exceptions.HiLAException
Task
until it reaches a final state (
TaskStatus.SUCCESSFUL
, TaskStatus.ABORTED
,
TaskStatus.FAILED
).
TaskStatus
eu.unicore.hila.exceptions.HiLAException
#block(long)}
TaskStatus block(long millis) throws eu.unicore.hila.exceptions.HiLAException
Task
reaches a final
state.
millis
-
eu.unicore.hila.exceptions.HiLAException
#block()}
eu.unicore.hila.exceptions.HiLAException getError() throws eu.unicore.hila.exceptions.HiLAException
eu.unicore.hila.exceptions.HiLAException
History getHistory() throws eu.unicore.hila.exceptions.HiLAException
eu.unicore.hila.exceptions.HiLAException
String getId() throws eu.unicore.hila.exceptions.HiLAException
Task
. Very often, this will be identical to the
Task
's name.
eu.unicore.hila.exceptions.HiLAException
void registerStatusChangeListener(StatusChangeListener listener) throws eu.unicore.hila.exceptions.HiLAException
StatusChangeListener
to be notified of any changes in
this Task
's TaskStatus
.
listener
-
eu.unicore.hila.exceptions.HiLAException
void removeStatusChangeListener(StatusChangeListener listener) throws eu.unicore.hila.exceptions.HiLAException
StatusChangeListener
from this Task
.
listener
-
eu.unicore.hila.exceptions.HiLAException
TaskStatus status() throws eu.unicore.hila.exceptions.HiLAException
TaskStatus
of this Task
.
eu.unicore.hila.exceptions.HiLAException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |