|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskMap
A map associating Task
s to task identifiers and task types.
Two tasks of two distinct types may have the same identifier.
Method Summary | |
---|---|
void |
addTask(String type,
Object id,
org.objectweb.deployment.scheduling.core.api.Task task)
Adds the given task to this task map. |
org.objectweb.deployment.scheduling.core.api.Task |
getTask(String type,
Object id)
Returns the task of the given type and identifier. |
org.objectweb.deployment.scheduling.core.api.Task[] |
getTasks()
Returns the tasks contained in this task map. |
Method Detail |
---|
org.objectweb.deployment.scheduling.core.api.Task[] getTasks()
org.objectweb.deployment.scheduling.core.api.Task getTask(String type, Object id) throws NoSuchElementException
type
- the type of the task that must be returned.id
- the identifier of the task that must be returned.
NoSuchElementException
- if there is no such task.void addTask(String type, Object id, org.objectweb.deployment.scheduling.core.api.Task task)
type
- the type of the task to be added.id
- the identifier of the task to be added.task
- the task itself.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |