|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridbus.broker.scheduler.Scheduler
public abstract class 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.lang.String |
getAlgorithm()
|
java.util.Collection |
getJobs()
|
int |
getPollTime()
|
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 |
isFeasible()
|
boolean |
isFinished()
Returns whether the scheduling is finished. |
void |
printStats()
|
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 |
setAlgorithm(java.lang.String type)
|
void |
setFailed(boolean failed)
|
void |
setFeasible(boolean feasible)
|
void |
setFinished(boolean b)
Sets the 'finished' state of the scheduler. |
void |
setPollTime(int pollTime)
|
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)
as - - ActiveSet| 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 printStats()
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()
public java.lang.String getAlgorithm()
public void setAlgorithm(java.lang.String type)
type - public int getPollTime()
public void setPollTime(int pollTime)
pollTime - The pollTime to set.public boolean isFeasible()
public void setFeasible(boolean feasible)
feasible - The feasible to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||