|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.friendshipsystems.fsshresourcemanager.FScheduler
public class FScheduler
The default implementation of the FIScheduler Interface.
| Constructor Summary | |
|---|---|
FScheduler()
|
|
| Method Summary | |
|---|---|
FJob |
selectNextJobToRun(java.util.List<java.util.List<FJob>> waitingQueues,
java.util.Map<java.lang.String,java.util.Date> blockedAddresses)
This method is called to determine the next FJob that should be run depending
on the available resources and the scheduling algorithm. |
void |
setHostManager(FHostManager manager)
The FHostManager handles the automatic host management of the SshResourceManager. |
void |
setSchedulerDebug(boolean debug)
This method allows to enable and disable scheduler debug during the test phase |
void |
setSchedulerHint(java.lang.String hint)
This method allows the admin to pass a scheduling hint to the scheduler using the properties file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FScheduler()
| Method Detail |
|---|
public FJob selectNextJobToRun(java.util.List<java.util.List<FJob>> waitingQueues,
java.util.Map<java.lang.String,java.util.Date> blockedAddresses)
FISchedulerFJob that should be run depending
on the available resources and the scheduling algorithm. If it is a valid FJob,
it will be started right away. It is the responsibility of this method to
assign the FApplicationInfo to the job which holds the info on which host the FJob
will be executed.
selectNextJobToRun in interface FISchedulerwaitingQueues - A list of lists of FJob that are currently waiting for execution.
This is a list of lists where each list represents the FJob that were
executed by the same user.blockedAddresses - A Map of FrameworkAddresses that are currently blocked from scheduling. The
values in the map are the times the blocking was done.
FJob that should be run. If it is null, the scheduling will be blocked until
a new FJob arrives or a FJob has finished.public void setSchedulerHint(java.lang.String hint)
FIScheduler
setSchedulerHint in interface FISchedulerpublic void setSchedulerDebug(boolean debug)
FIScheduler
setSchedulerDebug in interface FISchedulerpublic void setHostManager(FHostManager manager)
FISchedulerFHostManager handles the automatic host management of the SshResourceManager.
The default scheduler implementation uses the FHostManager, for two things:FHostManager passed in this method (it is called right after
creation of the Scheduler).
setHostManager in interface FIScheduler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||