|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.request.ModifyJobRequest
public class ModifyJobRequest
This class represents a request that is built to modify a job in Moab.
In order to use this, at least 1 MoabJob
object must be created that
describes the job modifications that the user wants to use when modifying a
job.
The following is a list of supported attributes for the modify job request:
Constructor Summary | |
---|---|
ModifyJobRequest(MoabJob oldJob,
MoabJob newJob,
ModifyJobType modifyType,
IMoabConnection moabConnection)
Constructor to create a modify job request. |
|
ModifyJobRequest(MoabJob job,
ModifyJobType modifyType,
IMoabConnection moabConnection)
|
Method Summary | |
---|---|
java.lang.String |
getAccountCommand()
Get the command to change the account |
java.util.List<java.lang.String> |
getHoldsCommands()
match the hold on the new job |
java.lang.String |
getJobNameCommand()
|
java.util.List<java.lang.String> |
getMessagesCommands()
Using the information on the old and new versions of the job, we will send create message commands to Moab. |
java.util.List<java.lang.String> |
getMoabCommands()
Returns a list of commands that define the request. |
java.lang.String |
getNodeCountRequestedCommand()
Gets the node count command from the new moabJob object. |
java.util.List<java.lang.String> |
getPartitionAccessListCommands()
|
java.lang.String |
getReservationRequestedCommand()
|
java.lang.String |
getSystemPriorityCommand()
|
java.util.List<java.lang.String> |
getVariablesCommands()
|
java.lang.String |
getWallClockRequestedCommand()
|
boolean |
hasChanges()
Returns true if changes exist for the request. |
boolean |
isHoldsEquals()
Check to see if the holds set on the old job match those set on the new job. |
boolean |
isPartitionAccessListEqual()
|
boolean |
isVariablesEqual()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModifyJobRequest(MoabJob oldJob, MoabJob newJob, ModifyJobType modifyType, IMoabConnection moabConnection) throws InvalidMoabArgumentException, com.moab.api.connect.exception.RequestException
oldJob
- The job that will be modified (Optional)newJob
- The new job that will be created. The commands created will
match the commands necessary to match this job.modifyType
- The modify type for the job.moabConnection
- The moab connection used to get the old job information if
necessary.
InvalidMoabArgumentException
- If invalid arguments are passed into this method.
com.moab.api.connect.exception.RequestException
- If the request fails.public ModifyJobRequest(MoabJob job, ModifyJobType modifyType, IMoabConnection moabConnection) throws InvalidMoabArgumentException, com.moab.api.connect.exception.RequestException
InvalidMoabArgumentException
com.moab.api.connect.exception.RequestException
Method Detail |
---|
public java.lang.String getAccountCommand()
public java.util.List<java.lang.String> getHoldsCommands()
public java.lang.String getJobNameCommand()
public java.util.List<java.lang.String> getMessagesCommands()
public java.util.List<java.lang.String> getMoabCommands()
com.moab.api.commands.Request
Request.hasChanges()
method returns true
.
getMoabCommands
in interface com.moab.api.commands.Request
public java.lang.String getNodeCountRequestedCommand()
public java.util.List<java.lang.String> getPartitionAccessListCommands()
public java.lang.String getReservationRequestedCommand()
public java.lang.String getSystemPriorityCommand()
public java.util.List<java.lang.String> getVariablesCommands()
public java.lang.String getWallClockRequestedCommand()
public boolean hasChanges()
com.moab.api.commands.Request
hasChanges
in interface com.moab.api.commands.Request
public boolean isHoldsEquals()
public boolean isPartitionAccessListEqual()
public boolean isVariablesEqual()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |