|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.gridbus.broker.farming.common.FarmingEngine
org.gridbus.broker.farming.common.GridbusFarmingEngine
This class is a place holder for the jobs and the server objects and is the main interface to applications that talk to the Broker.
| Constructor Summary | |
GridbusFarmingEngine()
Constructor - initializes GridbusFarmingEngine by looking at the DB.properties file If DB.properties is not found, then nothing is started. |
|
| Method Summary | |
org.ietf.jgss.GSSCredential |
genProxy()
To be implemented in a future version. |
java.util.Collection |
getDataFileList()
Collection of Data Files |
java.util.Hashtable |
getDataHostTable()
Collection of Data Hosts |
java.lang.Object |
getGkprList()
Returns an object which represents the Gatekeeper list, used to probe the compute servers |
java.lang.String |
getLocalDir()
Returns the local directory the broker |
java.lang.Object |
getPlanFile()
Returns the name of the plan file |
org.ietf.jgss.GSSCredential |
getProxy()
Get the credential to be using when executing jobs |
void |
init()
This method performs initialisation tasks for the farming engine. |
boolean |
isFeasible()
Returns whether the current schedule is feasible or not, depending on the given budget,deadline constraints |
boolean |
isInputDataFilePresent()
True / False based on whether the input data file is present |
boolean |
isOutputDataFilePresent()
To be implemented in future versions. |
boolean |
isSchedulingFailed()
Returns if the scheduler has failed due to some reason |
boolean |
isSchedulingFinished()
Returns if all the jobs have been executed on the grid |
float |
returnBudget()
Returns the budget for the jobs currently scheduled / being scheduled |
long |
returnDeadline()
Returns the deadline for the jobs currently scheduled / being scheduled |
void |
schedule()
Initialises the appropriate scheduler based on the broker properties, and starts the scheduler on a seperate thread |
void |
setFeasible(boolean b)
Sets the feasibility of the broker schedule |
void |
setGkprList(java.lang.Object o)
Sets the Gatekeeper list object |
void |
setLocalDir(java.lang.String val)
Sets the LocalDir variable within the Broker Properties. |
void |
setPlanFile(java.lang.Object object)
Sets the plan file name |
void |
setProxy(org.ietf.jgss.GSSCredential cred)
Set the credential to be using when executing jobs No checks are made as to whether it is valid or active |
boolean |
terminate()
Terminates the execution by stopping all the running jobs |
void |
terminateJob(java.lang.String jobID)
Terminates the job, whose identifier has been passed, if it is running |
| Methods inherited from class org.gridbus.broker.farming.common.FarmingEngine |
addJob, addServer, getJobs, getServers, setJobs, setServers |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GridbusFarmingEngine()
throws GridBrokerException
GridBrokerException| Method Detail |
public void init()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object getGkprList()
public java.lang.Object getPlanFile()
public void setGkprList(java.lang.Object o)
o - - object of type string or java collectionpublic void setPlanFile(java.lang.Object object)
object - of type string representing the plan filenamepublic boolean isInputDataFilePresent()
public boolean isOutputDataFilePresent()
public java.util.Collection getDataFileList()
public java.util.Hashtable getDataHostTable()
public void schedule()
throws GridBrokerException
GridBrokerException
public void terminateJob(java.lang.String jobID)
throws java.lang.Exception
jobID -
java.lang.Exceptionpublic boolean terminate()
public java.lang.String getLocalDir()
throws GridBrokerException
GridBrokerExceptionpublic org.ietf.jgss.GSSCredential getProxy()
public void setProxy(org.ietf.jgss.GSSCredential cred)
cred -
public void setLocalDir(java.lang.String val)
throws GridBrokerException
val -
GridBrokerException
public org.ietf.jgss.GSSCredential genProxy()
throws org.ietf.jgss.GSSException
org.ietf.jgss.GSSException
public long returnDeadline()
throws GridBrokerException
GridBrokerException
public float returnBudget()
throws GridBrokerException
GridBrokerExceptionpublic boolean isFeasible()
public void setFeasible(boolean b)
b - public boolean isSchedulingFinished()
public boolean isSchedulingFailed()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||