|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
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. |
Contact |
allocateContact()
Attempt to allocate a host. |
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(BoundContact 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 |
public 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
public Contact allocateContact()
throws NoFreeResourceException
NoFreeResourceExceptionpublic void releaseContact(BoundContact sc)
public void setResources(ContactSet resources)
ContactSetpublic ContactSet getResources()
public void addJobStatusListener(StatusListener l,
Task task)
public void removeJobStatusListener(StatusListener l,
Task task)
public void addTaskHandler(TaskHandlerWrapper taskHandler)
TaskHandlerWrapperpublic List getTaskHandlers()
public void setProperty(String name,
Object value)
public String[] getPropertyNames()
public void cancelTask(Task task)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||