|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gridlab.gat.resources.AbstractJobDescription
org.gridlab.gat.resources.JobDescription
public class JobDescription
An instance of this class describes a job to be run.
It consists of a description of the "executable" (a
SoftwareDescription
), and of a description of the resource
requirements of the job. The latter can be given as either a
ResourceDescription
, or as a specific Resource
; only one of
these may be specified.
Constructor Summary | |
---|---|
JobDescription(SoftwareDescription softwareDescription)
Create a job description with no resource description. |
|
JobDescription(SoftwareDescription softwareDescription,
Resource resource)
Create a JobDescription out of a SoftwareDescription and
a Resource . |
|
JobDescription(SoftwareDescription softwareDescription,
ResourceDescription resourceDescription)
Create a JobDescription out of a SoftwareDescription and
a ResourceDescription . |
Method Summary | |
---|---|
Object |
clone()
|
int |
getProcessCount()
Get the number of processes, which is the total number of times the executable should be run. |
Resource |
getResource()
Returns the Resource associated with this JobDescription . |
int |
getResourceCount()
Get the number of resources, which is the total number of resources where the number of processes should be distributed on. |
ResourceDescription |
getResourceDescription()
Returns the ResourceDescription associated with this
JobDescription . |
SoftwareDescription |
getSoftwareDescription()
Returns the SoftwareDescription associated with this
JobDescription . |
void |
setProcessCount(int processCount)
Set the number of processes, which is the total number of times the executable should be run. |
void |
setResource(Resource resource)
Set the Resource associated with this JobDescription . |
void |
setResourceCount(int resourceCount)
Set the number of resources, which is the total number of resources where the number of processes should be distributed on. |
void |
setResourceDescription(ResourceDescription resourceDescription)
Set the ResourceDescription associated with this
JobDescription . |
void |
setSoftwareDescription(SoftwareDescription softwareDescription)
Set the SoftwareDescription associated with this
JobDescription . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JobDescription(SoftwareDescription softwareDescription)
ResourceBroker
will choose the location.
softwareDescription
- the SoftwareDescription
of the executable.public JobDescription(SoftwareDescription softwareDescription, ResourceDescription resourceDescription)
JobDescription
out of a SoftwareDescription
and
a ResourceDescription
.
softwareDescription
- the SoftwareDescription
of the executable.resourceDescription
- the ResourceDescription
of the resource where the
executable should run.public JobDescription(SoftwareDescription softwareDescription, Resource resource)
JobDescription
out of a SoftwareDescription
and
a Resource
.
softwareDescription
- the SoftwareDescription
of the executable.resource
- the Resource where the executable should run on.Method Detail |
---|
public Resource getResource()
Resource
associated with this JobDescription
.
Resource
associated with this JobDescription
.public void setResource(Resource resource)
Resource
associated with this JobDescription
.
resource
- The Resource
to set.public ResourceDescription getResourceDescription()
ResourceDescription
associated with this
JobDescription
.
ResourceDescription
.public void setResourceDescription(ResourceDescription resourceDescription)
ResourceDescription
associated with this
JobDescription
.
resourceDescription
- The ResourceDescription
to set.public SoftwareDescription getSoftwareDescription()
SoftwareDescription
associated with this
JobDescription
.
SoftwareDescription
.public void setSoftwareDescription(SoftwareDescription softwareDescription)
SoftwareDescription
associated with this
JobDescription
.
softwareDescription
- The SoftwareDescription
to set.public String toString()
toString
in class Object
public Object clone()
clone
in class Object
public int getProcessCount()
public void setProcessCount(int processCount)
processCount
- the number of processespublic int getResourceCount()
public void setResourceCount(int resourceCount)
resourceCount
- the number of resources
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |