public interface SlotManager
InternalSlotManager
.
It is also possible for several job agents to cooperate on slot assignment by
using MasterSlotManager
and RemoteSlotManager
.Modifier and Type | Method and Description |
---|---|
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.
|
void init(Agent agent)
agent
- The job agentvoid close()
Slot getSlot(Job job)
job
- The job that the job agent wants to executevoid releaseSlot(Slot slot)
slot
- The slot that was assigned to the job