|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.scheduler.Scheduler
public class Scheduler
This is the class of the scheduler daemon.
Field Summary |
---|
Fields inherited from interface org.objectweb.proactive.scheduler.SchedulerConstants |
---|
JOB_ID, JVM_PARAMETERS, POLICY_NAME, SCHEDULER_NODE_NAME, SCHEDULER_URL, XML_PATH |
Constructor Summary | |
---|---|
Scheduler()
|
|
Scheduler(java.lang.String policyClass)
Scheduler constructor that instanciate an active object used to manage jobs knowing the policy class name and creates an active object ressource manager. |
Method Summary | |
---|---|
void |
commit(java.lang.String jobID)
commits the job's description and submits it to the waiting queue |
static Scheduler |
connectTo(java.lang.String schedulerURL)
connects to the scheduler node and fetchs the scheduler daemon using the submitted url |
static void |
createScheduler(java.lang.String policyName)
This method is used to create a unique scheduler object on the machine. |
BooleanWrapper |
del(java.lang.String jobId)
Deletes the job from the queue and stops it if it has already been launched. |
void |
end()
Method invoqued when we want to shutdown the scheduler. |
StringMutableWrapper |
fetchJobDescription(java.lang.String xmlDescriptorUrl)
This method launches the parsing of the XML file to extract the description of the job submitted prior to its submission to the queue. |
protected void |
finalize()
Redefines the finalize method to do some cleaning. |
java.util.Vector |
getNodes(int ressourceNb,
int estimatedTime)
This method is used while programming .. |
Node[] |
getReservedNodes(java.lang.String jobID,
int askedNodes)
returns an array of the reserved nodes of the object with the specified jobId |
GenericJob |
getTmpJob(java.lang.String jobID)
Gets the temporary created generic job object to change it's attribute's content. |
StringMutableWrapper |
info()
Gives intormation about the scheduler. |
void |
init()
|
static void |
main(java.lang.String[] args)
|
java.util.Vector |
nodes(java.lang.String nodeURL)
Provides the information about the nodes (state, job running, ...) |
static void |
start(java.lang.String policyName)
Starts the scheduler. |
java.util.Vector |
stat(java.lang.String jobId)
Gives description of all the jobs that are curently running in forms of a Vector if no specific id is specified, else, it gives the description of the specified job if it exists. |
BooleanWrapper |
sub(GenericJob job)
Insert a job in the queue of the scheduler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scheduler()
public Scheduler(java.lang.String policyClass)
policyClass,
- the class name of the policyMethod Detail |
---|
public void init()
public BooleanWrapper sub(GenericJob job)
job,
- the descriptions of the job to be inserted
public BooleanWrapper del(java.lang.String jobId)
id:
- the id of the job
public java.util.Vector stat(java.lang.String jobId)
public java.util.Vector nodes(java.lang.String nodeURL)
public static void createScheduler(java.lang.String policyName)
policyName
- the name of the policy used by the scheduler
java.lang.Exception
- when having difficulty with the creation of the scheduler.public static void start(java.lang.String policyName)
public void end()
public StringMutableWrapper info()
protected void finalize()
finalize
in class java.lang.Object
public StringMutableWrapper fetchJobDescription(java.lang.String xmlDescriptorUrl)
public static Scheduler connectTo(java.lang.String schedulerURL)
schedulerURL
- the url of the scheduler node
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public java.util.Vector getNodes(int ressourceNb, int estimatedTime)
public Node[] getReservedNodes(java.lang.String jobID, int askedNodes)
public void commit(java.lang.String jobID)
jobID
- the ID of the jobpublic GenericJob getTmpJob(java.lang.String jobID)
jobID
- the job id of the temporary job description object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |