|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SlotManager
A slot manager is responsible for slot assigment to jobs. This is an important
part of the job agent since a job may not be executed without a slot has been
assigned to it and the slot manager ususally has a limited number of slots.
The default slot manager for a job agent is the InternalSlotManager.
It is also possible for several job agents to cooperate on slot assignment by
using MasterSlotManager and RemoteSlotManager.
| Method Summary | |
|---|---|
void |
close()
This method is called when the job agent is shutting down. |
Slot |
getSlot(Job job)
Get a slot for the specified job. |
void |
init(Agent agent)
Initialize the slot manager. |
void |
releaseSlot(Slot slot)
Called by the job agent when the job has finished exeuting. |
| Method Detail |
|---|
void init(Agent agent)
agent - The job agentvoid close()
Slot getSlot(Job job)
job - The job that the job agent wants to execute
void releaseSlot(Slot slot)
slot - The slot that was assigned to the job
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||