|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridbus.broker.common.GridbusFarmingEngine
public final class GridbusFarmingEngine
This class is a place holder for the broker objects and is the main interface to applications that talk to the Broker.
| Constructor Summary | |
|---|---|
GridbusFarmingEngine()
Initializes the broker using default properties, defined in the BrokerProperties class. |
|
GridbusFarmingEngine(BrokerProperties config)
Initialises the broker with the given BrokerProperties object |
|
GridbusFarmingEngine(BrokerProperties props,
java.lang.String applicationId)
Initialises the broker with the given BrokerProperties object, Loads an application with the given id. |
|
GridbusFarmingEngine(java.lang.String applicationID)
Initializes the broker using default properties, defined in the BrokerProperties class. |
|
| Method Summary | |
|---|---|
void |
addJob(Job job)
Adds a job to the broker application |
void |
addSCSJob(org.gridbus.scs.common.SCSJob job)
|
void |
addService(Service s)
|
java.lang.String |
createApplication(ApplicationContext app)
Save the application context to the broker storage |
ApplicationContext |
getApplication()
Get the application context |
Job |
getJob(java.lang.String jobname)
|
long |
getJobCount(int status,
java.lang.String serverName)
|
java.util.Collection |
getJobs()
Gets all the jobs |
java.util.Collection |
getJobs(int status)
Gets all the jobs with the given status |
JobStatistics |
getJobStatistics(java.lang.String name)
|
Qos |
getQos()
|
java.util.Collection |
getServers()
|
java.util.Collection |
getServices(int serviceType)
|
java.lang.String |
getSummaryStatistics()
Returns a formatted string that presents the application performance statistics. |
boolean |
isSchedulingFinished()
|
void |
parse(java.lang.String applicationFile,
java.lang.String servicesFile,
java.lang.String credentialsFile)
|
ApplicationParser |
parseApplication(java.lang.String applicationFile)
|
CredentialParser |
parseCredentials(java.lang.String credentialsFile)
|
ServiceParser |
parseServices(java.lang.String servicesFile)
|
void |
removeJob(Job job)
Removes a job from the broker application |
void |
schedule()
Initialises the appropriate scheduler based on the broker properties, and starts the scheduler on a seperate thread |
void |
setQos(Qos qos)
|
void |
terminate()
Terminates the execution by stopping all the running jobs |
void |
terminateJob(java.lang.String jobName)
Terminates the job, whose identifier has been passed, if it is running |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridbusFarmingEngine()
throws GridBrokerException
GridBrokerException
public GridbusFarmingEngine(BrokerProperties config)
throws GridBrokerException
config -
GridBrokerException
public GridbusFarmingEngine(java.lang.String applicationID)
throws GridBrokerException
applicationID -
GridBrokerException
public GridbusFarmingEngine(BrokerProperties props,
java.lang.String applicationId)
throws GridBrokerException
props - applicationId -
GridBrokerException| Method Detail |
|---|
public void schedule()
throws java.lang.Exception
java.lang.Exception
public void setQos(Qos qos)
throws GridBrokerException
qos -
GridBrokerException
public Qos getQos()
throws GridBrokerException
GridBrokerException
public void terminateJob(java.lang.String jobName)
throws java.lang.Exception
jobName -
java.lang.Exceptionpublic void terminate()
public java.util.Collection getJobs(int status)
throws GridBrokerException
status -
GridBrokerException
public java.util.Collection getJobs()
throws GridBrokerException
GridBrokerException
public Job getJob(java.lang.String jobname)
throws GridBrokerException
jobname -
GridBrokerException
public long getJobCount(int status,
java.lang.String serverName)
throws GridBrokerException
status - serverName -
GridBrokerException
public void addJob(Job job)
throws GridBrokerException
job -
GridBrokerException
public void addSCSJob(org.gridbus.scs.common.SCSJob job)
throws GridBrokerException
GridBrokerException
public void removeJob(Job job)
throws GridBrokerException
job -
GridBrokerException
public void addService(Service s)
throws GridBrokerException
s -
GridBrokerException
public java.util.Collection getServers()
throws GridBrokerException
GridBrokerException
public ApplicationContext getApplication()
throws GridBrokerException
GridBrokerException
public java.lang.String createApplication(ApplicationContext app)
throws GridBrokerException
app -
GridBrokerException
public boolean isSchedulingFinished()
throws GridBrokerException
GridBrokerException
public void parse(java.lang.String applicationFile,
java.lang.String servicesFile,
java.lang.String credentialsFile)
throws GridBrokerException,
java.io.IOException,
java.lang.Exception
applicationFile - servicesFile - credentialsFile -
GridBrokerException
java.io.IOException
java.lang.Exception
public ServiceParser parseServices(java.lang.String servicesFile)
throws java.lang.Exception
servicesFile -
java.lang.Exception
public CredentialParser parseCredentials(java.lang.String credentialsFile)
throws java.lang.Exception
credentialsFile -
java.lang.Exception
public ApplicationParser parseApplication(java.lang.String applicationFile)
throws java.lang.Exception
applicationFile -
java.lang.Exception
public java.util.Collection getServices(int serviceType)
throws GridBrokerException
serviceType -
GridBrokerException
public JobStatistics getJobStatistics(java.lang.String name)
throws GridBrokerException
name -
GridBrokerException
public java.lang.String getSummaryStatistics()
throws GridBrokerException
GridBrokerException
|
Copyright © The University of Melbourne. 2006 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||