|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.request.SubmitJobRequest
public class SubmitJobRequest
This class represents a request that is built to submit a job.
In order to use this, a MoabJob
object must be created that describes
the job requirements that the user wants to user when submitting a job.
The following is a list of supported operations for this request:
Constructor Summary | |
---|---|
SubmitJobRequest(MoabJob job)
Initializes a new request that is set up according to the job object passed. |
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getMoabCommands()
Returns a list of commands that define the request. |
boolean |
hasChanges()
Returns true if changes exist for the request. |
void |
setJob(MoabJob job)
Sets the job description used to build the commands to submit a job. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubmitJobRequest(MoabJob job) throws InvalidMoabArgumentException
Initializes a new request that is set up according to the job object passed.
The job object cannot be null.
job
- the job description used to build the submit job request.
InvalidMoabArgumentException
- thrown if job is null.Method Detail |
---|
public java.util.List<java.lang.String> getMoabCommands() throws com.moab.api.connect.exception.RequestException
Request.hasChanges()
method returns true
.
getMoabCommands
in interface com.moab.api.commands.Request
com.moab.api.connect.exception.RequestException
- thrown if the implementing Request class has problems
building the associated commands.public boolean hasChanges()
com.moab.api.commands.Request
hasChanges
in interface com.moab.api.commands.Request
public void setJob(MoabJob job) throws InvalidMoabArgumentException
job
- the job description to use to submit a job.
InvalidMoabArgumentException
- thrown if job is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |