|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.spec.JobSpec
public class JobSpec
Entity that encapsulates all the information given by the user about each job. To inform, the user uses the Description Files that can be compiled by the CommonCompiler.
CommonCompiler
,
Serialized FormConstructor Summary | |
---|---|
JobSpec(java.lang.String label)
The constructor |
|
JobSpec(java.lang.String label,
java.lang.String requirements,
java.util.List<TaskSpec> taskSpecs)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getLabel()
|
java.lang.String |
getRequirements()
|
java.util.List<TaskSpec> |
getTaskSpecs()
|
void |
setRequirements(java.lang.String expression)
Sets the logical expression for the job. |
void |
setTaskSpecs(java.util.List<TaskSpec> taskSpecs)
Inserts a list of task specifications. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobSpec(java.lang.String label, java.lang.String requirements, java.util.List<TaskSpec> taskSpecs) throws JobSpecificationException
label
- The label for the job.requirements
- The logical expression that defines the job. It will
be used to choose machines that are able to run its tasks. To
define it well, check the OurGrid manual.taskSpecs
- A list with all the task specifications of this job.
JobSpecificationException
public JobSpec(java.lang.String label)
label
- The label for the job.Method Detail |
---|
public java.util.List<TaskSpec> getTaskSpecs()
public void setTaskSpecs(java.util.List<TaskSpec> taskSpecs) throws JobSpecificationException
taskSpecs
- The list of tasks that will be contained by this job.
JobSpecificationException
public java.lang.String getRequirements()
public void setRequirements(java.lang.String expression)
expression
- The logical expression that defines the job. It will be
used to choose machines that are able to run its tasks.public java.lang.String getLabel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |