|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.gridbus.broker.scheduler.Scheduler
This is the base scheduler class, and contains main methods for performing the scheduling/
| Constructor Summary | |
Scheduler(GridbusFarmingEngine fe)
Constructor for the Scheduler |
|
| Method Summary | |
java.util.Collection |
getJobs()
|
java.util.Collection |
getServers()
Get the latest servers collection everytime from the farming engine. |
java.lang.String |
getStats()
|
boolean |
isClassValid()
Returns if the current class is a valid one. |
boolean |
isFailed()
|
boolean |
isFinished()
Returns whether the scheduling is finished. |
void |
recoverStats()
This method re-initialises the scheduler stats, when the broker is recovering from a crash. |
void |
run()
The run method enables the scheduler to run as a seperate thread, and calls the 'schedule()' method. |
abstract void |
schedule()
Abstract method: schedule to be implemented by derived classes which implement various scheduling algorithms. |
void |
setFailed(boolean failed)
|
void |
setFinished(boolean b)
Sets the 'finished' state of the scheduler. |
void |
sortByCost(java.util.Vector server_vect)
Sorts the compute server list by cost |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Scheduler(GridbusFarmingEngine fe)
fe - - Farming Engine| Method Detail |
public void sortByCost(java.util.Vector server_vect)
server_vect - public final void recoverStats()
public final java.lang.String getStats()
public final void run()
run in interface java.lang.RunnableRunnable.run()public boolean isFailed()
public void setFailed(boolean failed)
failed - The failed to set.public boolean isClassValid()
public abstract void schedule()
public boolean isFinished()
public void setFinished(boolean b)
b - - booleanpublic java.util.Collection getServers()
public java.util.Collection getJobs()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||