org.objectweb.proactive.scheduler
Class GenericJob
java.lang.Object
org.objectweb.proactive.scheduler.GenericJob
- All Implemented Interfaces:
- java.io.Serializable, Job
public class GenericJob
- extends java.lang.Object
- implements java.io.Serializable, Job
This class includes the definition and description of the jobs ...
- "classname" of the class to be run
- "priority" of the job
- "userId" is the id of the user who posted the job.
- "submitDate" gives the date when the job was submitted.
- "mainParameters" contains the parameters that should be submitted to the job
when starting it.
- "ressourceNb" indicates the number of processors needed to execute this job.
- "estimatedTime" gives an estimate of the time to finish the job.
- "xmlName" gives a mean to store the path to the deployment descriptor if present.
- "startDate" is the date when the job should start execution
- "jobId" is the id of the job
- "jvmParameters" is the JVM system properties of the main node
- "jobStatus" is the status of the job. It can take one of the following values:
queued, deployed, finished
- "classPath" offers the class paths of the main node
- "minRessourceNb" is an optional field that, if set, indicates the minimum required
ressource to enable the job to run
- Author:
- cjarjouh
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericJob
public GenericJob()
setClassName
public void setClassName(java.lang.String className)
setPriority
public void setPriority(int priority)
setUserId
public void setUserId(int userId)
setSubmitDate
public void setSubmitDate()
setSubmitDate
public void setSubmitDate(java.util.Date submitDate)
setMainParameters
public void setMainParameters(java.util.Vector mainParameters)
addMainParameter
public void addMainParameter(java.lang.String mainParameter)
- appends the mainParameter to the curently existing list of mainParameters
- Parameters:
mainParameter
-
setRessourceNb
public void setRessourceNb(int ressourceNb)
setEstimatedTime
public void setEstimatedTime(int estimatedTime)
getClassName
public java.lang.String getClassName()
getPriority
public int getPriority()
getUserId
public int getUserId()
getSubmitDate
public java.util.Date getSubmitDate()
getMainParameters
public java.lang.String[] getMainParameters()
getRessourceNb
public int getRessourceNb()
getEstimatedTime
public int getEstimatedTime()
getJobID
public java.lang.String getJobID()
- Specified by:
getJobID
in interface Job
- Returns:
- the jobID associated with this object
setXMLDescriptorName
public void setXMLDescriptorName(java.lang.String XMLDescriptorName)
getXMLDescriptorName
public java.lang.String getXMLDescriptorName()
setXMLFullPath
public void setXMLFullPath(java.lang.String XMLFullPath)
getXMLFullPath
public java.lang.String getXMLFullPath()
setJVMParameters
public void setJVMParameters(java.lang.String jvmParameters)
getJVMParameters
public java.lang.String getJVMParameters()
setJobStatus
public void setJobStatus(java.lang.String jobStatus)
getJobStatus
public java.lang.String getJobStatus()
getClassPath
public java.lang.String[] getClassPath()
setClassPath
public void setClassPath(java.lang.String[] classPath)
setMinNbOfNodes
public void setMinNbOfNodes(int nbOfNodes)
getMinNbOfNodes
public int getMinNbOfNodes()
Copyright 2001-2007 INRIA All Rights Reserved.