|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scheduler
Method Summary | |
---|---|
void |
addFailureHandler(FailureHandler handler)
Allows handling task failures at the scheduler level |
void |
addJobStatusListener(StatusListener l,
Task task)
Allows the addition of a status listener that will be invoked whenever the status of the given task changes. |
void |
addTaskHandler(TaskHandlerWrapper taskHandler)
Makes the scheduler aware of a task handler implementation. |
void |
addTaskTransformer(TaskTransformer transformer)
Adds a task transformer to this scheduler. |
Contact |
allocateContact()
Attempt to allocate a host. |
Contact |
allocateContact(Object constraints)
|
void |
cancelTask(Task task)
Prematurely terminates a task that is either enqueued or running |
void |
enqueue(Task task,
Object constraints)
Adds a task to the queue. |
String[] |
getPropertyNames()
|
ContactSet |
getResources()
Returns the set of resources that the scheduler knows about |
List |
getTaskHandlers()
Returns a list of all the task handlers that were added to the scheduler |
void |
releaseContact(Contact sc)
Can be used to tell the scheduler that a previously allocated contact (using allocateContact()) is not used any more. |
void |
removeJobStatusListener(StatusListener l,
Task task)
Removes a status listener added using addJobStatusListener |
void |
setProperty(String name,
Object value)
Sets a scheduler property. |
void |
setResources(ContactSet resources)
Sets the set of resources that the scheduler will use |
Method Detail |
---|
void enqueue(Task task, Object constraints)
constraints
- Can be used to specify constraints under which the task should
be scheduler. While the semantics of the constraints are left
to the implementation, such an implementation should be able
to handle at least constraints of the type Contact.org.globus.karajan.util.Contact
Contact allocateContact() throws NoFreeResourceException
NoFreeResourceException
Contact allocateContact(Object constraints) throws NoFreeResourceException
NoFreeResourceException
void releaseContact(Contact sc)
void setResources(ContactSet resources)
ContactSet
ContactSet getResources()
void addJobStatusListener(StatusListener l, Task task)
void removeJobStatusListener(StatusListener l, Task task)
void addTaskHandler(TaskHandlerWrapper taskHandler)
TaskHandlerWrapper
List getTaskHandlers()
void setProperty(String name, Object value)
String[] getPropertyNames()
void cancelTask(Task task)
void addTaskTransformer(TaskTransformer transformer)
void addFailureHandler(FailureHandler handler)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |