|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object plgrid.GridJobSubmitInfo
public class GridJobSubmitInfo
Contains information needed for job submission
Field Summary | |
---|---|
static int |
SUBMISSION_ARRAY
|
static int |
SUBMISSION_SINGLE
|
Constructor Summary | |
---|---|
GridJobSubmitInfo()
Constructor |
Method Summary | |
---|---|
static GridJobSubmitInfo |
fromXML(java.lang.String xml)
|
static GridJobSubmitInfo |
fromXMLElement(nu.xom.Element gjsiElement)
|
java.util.List<GridJobArgument> |
getArguments()
Return arguments of the command |
int |
getBeginIndex()
Returns the index associated to the first job |
java.lang.String |
getCommand()
Returns the command of the job |
int |
getEndIndex()
Returns the index associated to the last job |
java.util.Properties |
getEnvironmentProperties()
Return job's environment properties |
java.lang.String |
getErrorPath()
Returns Error Path of the job |
java.lang.String |
getNativeSpecification()
Returns job's native specification |
int |
getNumJobs()
Returns number of jobs for this submission |
java.lang.String |
getOutputPath()
Return Output Path of the job |
boolean |
getPrivilegeEscalation()
Returns flag which indicates whether job will be submitted with sudo command or not |
int |
getSubmissionType()
Returns the submission type |
java.lang.String |
getUsername()
Returns job owner's username |
void |
setArguments(java.util.List<GridJobArgument> arguments)
Sets job command arguments |
void |
setBeginIndex(int index)
This function is used only for array/bulk job submission Sets the index associated to the first job |
void |
setCommand(java.lang.String command)
Sets the job command |
void |
setEndIndex(int index)
This function is used only for array/bulk job submission Sets the index associated to the first job |
void |
setEnvironmentProperties(java.util.Properties environmentProperties)
Sets environment properties of the job |
void |
setErrorPath(java.lang.String errorPath)
Sets the error path of the job |
void |
setNativeSpecification(java.lang.String nativeSpecification)
Sets native specification of the job |
void |
setNumJobs(int numJobs)
Sets number of jobs for this submission. |
void |
setOutputPath(java.lang.String outputPath)
Sets the output path of the job |
void |
setPrivilegeEscalation(boolean privilegeEscalation)
Sets flag to true of false which indicates whether job will be submitted with sudo command |
void |
setSubmissionType(int submissionType)
Sets submission type which indicates whether the submission is array or single Allowed values are * SUBMISSION_SINGLE [ default ] * SUBMISSION_ARRAY |
void |
setUsername(java.lang.String username)
Sets the job owner |
java.lang.String |
toXML()
|
nu.xom.Element |
toXMLElement()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int SUBMISSION_SINGLE
public static int SUBMISSION_ARRAY
Constructor Detail |
---|
public GridJobSubmitInfo()
Method Detail |
---|
public void setOutputPath(java.lang.String outputPath)
outputPath
- Output Pathpublic void setErrorPath(java.lang.String errorPath)
errorPath
- Error Pathpublic void setUsername(java.lang.String username)
username
- Username of submitterpublic void setNativeSpecification(java.lang.String nativeSpecification)
nativeSpecification
- Native spceification of the jobpublic void setEnvironmentProperties(java.util.Properties environmentProperties)
environmentProperties
- Environment properties of the jobpublic void setSubmissionType(int submissionType)
submissionType
- The submission typepublic void setBeginIndex(int index)
index
- index associated to the first jobpublic void setEndIndex(int index)
index
- index associated to the first jobpublic void setCommand(java.lang.String command)
command
- Command of the jobpublic void setArguments(java.util.List<GridJobArgument> arguments)
arguments
- Arguments of commandpublic void setPrivilegeEscalation(boolean privilegeEscalation)
privilegeEscalation
- True or false indicating if the job will be submitted with sudo commandpublic void setNumJobs(int numJobs)
numJobs
- public java.lang.String getOutputPath()
public java.lang.String getErrorPath()
public java.lang.String getUsername()
public java.lang.String getNativeSpecification()
public java.util.Properties getEnvironmentProperties()
public int getSubmissionType()
public int getBeginIndex()
public int getEndIndex()
public java.lang.String getCommand()
public java.util.List<GridJobArgument> getArguments()
public int getNumJobs()
public boolean getPrivilegeEscalation()
public nu.xom.Element toXMLElement()
public java.lang.String toXML()
public static GridJobSubmitInfo fromXMLElement(nu.xom.Element gjsiElement)
public static GridJobSubmitInfo fromXML(java.lang.String xml)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |