|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.jobs.MoabJob
public class MoabJob
Constructor Summary | |
---|---|
MoabJob()
|
Method Summary | |
---|---|
void |
addAllocatedNode(JobAllocatedNode allocatedNode)
Adds an allocated node to the list of nodes this job is using to run. |
void |
addGenericResource(GenericResource genericResource)
Add a new generic resource to the generic resource list. |
void |
addJobRequirement(JobRequirement requirement)
Adds a requirement to the list of job requirements on the job. |
void |
addMessage(java.lang.String message)
Adds a message and a newline to existing list of messages. |
void |
addVariable(Variable variable)
Adds a variable to the set of variables this job owns. |
void |
clearAllocatedNodeList()
Clears the list of allocated nodes the job is using to run. |
int |
compareTo(MoabJob o)
Compares the jobID of this job to the other job's jobID. |
java.lang.String |
getAccount()
Returns the account used for billing purposes for the job. |
long |
getActiveDuration()
Returns the duration in seconds the job has spent being active or running. |
JobAllocatedNodes |
getAllocatedNodes()
Returns the set of nodes allocated for use by the job to run. |
JobBlockReason |
getBlockReason()
Returns the reason the job is blocked. |
int |
getBypass()
Returns the number of times the job has been backfilled. |
java.lang.String |
getCommandFile()
Returns the path to the file that is executed when the job runs. |
java.lang.String |
getCommandLineArguments()
Returns the command line arguments passed into running the job. |
java.util.Date |
getCompletionTime()
Returns the date the job completed. |
java.lang.String |
getCredentialID(CredentialType credType)
Returns the ID of the credential of the type passed in which corresponds to this job. |
double |
getDedicatedProcSeconds()
Returns the number of processor seconds dedicated to this job. |
DynamicJobInformation |
getDynamicJobInformation()
Returns the dynamic job and job template information for the job. |
java.util.Date |
getEarliestStartDate()
Returns the system specified earliest start date. |
java.util.Date |
getEarliestStartDateRequested()
Returns the earliest start date and time requested by the job. |
long |
getEffectiveQueueDuration()
Returns the duration in seconds the job has been eligible to run in the queue. |
JobState |
getExpectedState()
Returns the state expected based on scheduler action. |
JobFlags |
getFlags()
Returns the flags for the job. |
java.util.List<java.lang.String> |
getGenericAttributes()
Returns the list of generic attributes the job has requested. |
java.util.List<GenericResource> |
getGenericResourcesList()
get the generic resource list |
java.lang.String |
getGroup()
Returns the group the job is run under. |
java.util.Set<JobHoldType> |
getHolds()
Sets the holds that are currently on the job. |
java.util.Set<java.lang.String> |
getHostList()
Returns the set of hosts/nodes the job is running on. |
java.lang.String |
getInitialWorkingDirectory()
Returns the path to the directory the job will be started in. |
java.util.List<JobDependency> |
getJobDependecyList()
Returns the list of dependencies for this job. |
java.lang.String |
getJobID()
Returns the unique ID of the job. |
java.lang.String |
getJobName()
Returns the user specified name of the job. |
java.util.List<JobRequirement> |
getJobRequirements()
Returns the list of job requirements this job has that specifies what it needs to run. |
java.util.Date |
getLatestCompletedDateRequested()
Returns the latest date and time the job must be completed by. |
java.lang.String |
getMasterHost()
Returns the node/host that the primary task will run on. |
int |
getMemoryRequested()
Returns the amount of memory in MB requested by the job. |
java.util.List<java.lang.String> |
getMessages()
Returns the list of system set and user specified message. |
int |
getNodeCount()
Returns the number of nodes this job is using. |
int |
getNodeCountRequested()
Returns the number of nodes the job has requested. |
java.util.Set<JobEmailNotifyType> |
getNotifyTypeList()
Returns the set of e-mail notify types attached to the job. |
java.util.Set<java.lang.String> |
getPartitionAccessList()
Returns the list of partitions that this job has access to. |
int |
getProcCountRequested()
Returns the number of processors the job has requested. |
java.lang.String |
getQos()
Returns the QoS the job is actually running under. |
java.lang.String |
getQosRequested()
Returns the QoS the job requested. |
java.lang.String |
getQueue()
Returns the class that the job is wanting to or actually running in. |
QueueStatus |
getQueueStatus()
Returns the status of the job in its queue. |
java.lang.String |
getReservationRequested()
Returns the reservation that job requested. |
java.util.Date |
getReservationStartDate()
Returns the actual start date of the reservation the job is running inside of. |
java.lang.String |
getResourceManagerExtension()
Returns the resource manager extension String that describes information passed to the the resource manager accounting for the job. |
java.lang.String |
getResourceManagerName()
Returns the name of the resource manager that is reporting this job. |
java.lang.String |
getRmStdErrorFilePath()
Returns the path to the remote file containing the standard error output of the job. |
java.lang.String |
getRmStdInputFilePath()
Returns the path to the remote file containing the standard input of the job. |
java.lang.String |
getRmStdOutputFilePath()
Returns the remote path to the file containing the standard output of the job. |
long |
getRunPriority()
Returns the priority to start running the job. |
SLAViolationType |
getSLAViolationType()
Returns the worst-case violation of a job's target SLA information as reported in a violation type category. |
double |
getSLAViolationValue()
Returns the worst-case violation of a job's target SLA information as reported in a percentage. |
int |
getStartCount()
Returns the number of times this job was started. |
java.util.Date |
getStartDate()
Returns the date that this job actually started. |
long |
getStartPriority()
Returns the effective job priority level. |
JobState |
getState()
Get the job's current state. |
java.lang.String |
getStdErrorFilePath()
Returns the path to the file containing the standard error output of the job. |
java.lang.String |
getStdInputFilePath()
Returns the path to the file containing the standard input of the job. |
java.lang.String |
getStdOutputFilePath()
Returns the path to the file containing the standard output of the job. |
java.util.Date |
getSubmitDate()
Returns the date when this job was submitted. |
long |
getSuspendDuration()
Get the amount of time the job has been suspended |
java.lang.String |
getSystemID()
Returns the system ID of the job as reported by an external source. |
java.lang.String |
getSystemJobID()
Returns the job ID according to an external source such as a resource manager. |
long |
getSystemPriority()
Get the administrator specified system priority level. |
java.util.List<java.lang.String> |
getTemplateMatchList()
Returns the list of strings representing job templates that match this job. |
java.util.List<java.lang.String> |
getTemplateSetList()
Returns the list of strings representing job templates that were set on this job. |
java.lang.String |
getUser()
Returns the user that is running the job. |
long |
getUserPriority()
Returns the user-specified priority for the job. |
double |
getUtilizedMemorySeconds()
Returns the number of memory seconds utilized by job. |
double |
getUtilizedProcSeconds()
Returns the number of processor seconds utilized by job |
java.util.Set<Variable> |
getVariables()
Get the set of variables this job "owns" or sets on completion. |
VMUsagePolicy |
getVMUsagePolicy()
Returns the requested virtual machine usage policy for the job. |
long |
getWallclockRequested()
Returns the wallclock requested in seconds. |
boolean |
isDynamic()
Returns true if the job is dynamic. |
boolean |
isTemplate()
Returns whether or not this job object is actually a template description or an actual job. |
void |
removeJobRequirement(JobRequirement requirement)
Attempts to remove the job requirement from the list of requirements on the job. |
void |
removeVariable(Variable variable)
Removes a variable from the set of variables this job owns. |
void |
setAccount(java.lang.String account)
Sets the account that this job is to run under for billing purposes |
void |
setActiveDuration(long activeDuration)
Sets the duration in seconds the job has spent being active or running. |
void |
setAllocatedNodes(java.util.Set<JobAllocatedNode> allocatedNodes)
Sets the set of nodes allocated for use by the job to run. |
void |
setBlockReason(JobBlockReason blockReason)
Sets the reason the job is blocked. |
void |
setBypass(int bypass)
Sets the number of times the job has been backfilled. |
void |
setCommandFile(java.lang.String commandFile)
Sets the path to the file that is executed when the job runs. |
void |
setCommandLineArguments(java.lang.String commandLineArguments)
Sets the command line arguments passed into running the job. |
void |
setCompletionTime(java.util.Date completionDate)
Sets the date the job completed. |
void |
setDedicatedProcSeconds(double dedicatedProcSeconds)
Sets the processor seconds dedicated to the job. |
void |
setDynamicJobInformation(DynamicJobInformation jobTemplateExtension)
Sets the job template and dynamic job information. |
void |
setEarliestStartDate(java.util.Date earliestStartDate)
Sets the system specified earliest start date. |
void |
setEarliestStartDateRequested(java.util.Date earliestStartDateRequested)
Sets the earliest start date that the job requests. |
void |
setEffectiveQueueDuration(long effectiveQueueDuration)
Sets the duration in seconds the job has been eligible to run in the queue. |
void |
setExpectedState(JobState jobState)
Returns the state expected based on scheduler action. |
void |
setFlags(JobFlags jobFlags)
Sets the flags for the job. |
void |
setGenericAttributes(java.util.List<java.lang.String> genericAttributes)
Sets the list of generic attributes the job has requested. |
void |
setGenericResourcesList(java.util.List<GenericResource> genericResourcesList)
Set the new generic resource list. |
void |
setGroup(java.lang.String group)
Sets the group the job is run under. |
void |
setHolds(java.util.Set<JobHoldType> holds)
Sets the holds that are currently on the job. |
void |
setHostList(java.util.Set<java.lang.String> hostList)
Sets the set of hosts/nodes the job is running on. |
void |
setInitialWorkingDirectory(java.lang.String initialWorkingDirectory)
Sets the path to the directory the job will be started in. |
void |
setJobDependecyList(java.util.List<JobDependency> jobDependecyList)
Sets the list of dependencies for this job. |
void |
setJobID(java.lang.String jobID)
Sets the unique ID for the job. |
void |
setJobName(java.lang.String jobName)
Sets the user specified job name. |
void |
setLatestCompletedDateRequested(java.util.Date latestCompletionDateRequested)
Sets the latest date and time the job must be completed by. |
void |
setMasterHost(java.lang.String masterHost)
Sets the node/host that the primary task will run on. |
void |
setMemoryRequested(int memoryRequested)
Sets the amount of memory in MB requested by the job. |
void |
setMessages(java.util.List<java.lang.String> messages)
Sets the list of system set and user specified message. |
void |
setNodeCountRequested(int nodeCountRequested)
Sets the number of nodes the job has requested. |
void |
setNotifyTypeList(java.util.Set<JobEmailNotifyType> notifyTypeList)
Sets the set of e-mail notify types attached to the job. |
void |
setPartitionAccessList(java.util.Set<java.lang.String> partitionAccessList)
Sets the list of partitions that this job has access to. |
void |
setProcCountRequested(int procCountRequested)
Sets the number of processors the job has requested. |
void |
setQos(java.lang.String qos)
Sets the QoS the job is actually running under. |
void |
setQosRequested(java.lang.String qosRequested)
Sets the QoS the job requested. |
void |
setQueue(java.lang.String queue)
Sets the class that the job is wanting to or actually running in. |
void |
setQueueStatus(QueueStatus queueStatus)
Sets the status of the job in its queue. |
void |
setReservationRequested(java.lang.String reservationRequested)
Sets the reservation that job requested. |
void |
setReservationStartDate(java.util.Date reservationStartDate)
Sets the actual start date of the reservation the job is running inside of. |
void |
setResourceManagerExtension(java.lang.String resourceManagerExtension)
Sets the resource manager extension String that describes information passed to the the resource manager accounting for the job. |
void |
setResourceManagerName(java.lang.String resourceManagerName)
Sets the name of the resource manager that is reporting this job. |
void |
setRmStdErrorFilePath(java.lang.String stdErrorFile)
Sets the path to the remote file containing the standard error output of the job |
void |
setRmStdInputFilePath(java.lang.String stdErrorFile)
Sets the path to the remote file containing the standard input of the job. |
void |
setRmStdOutputFilePath(java.lang.String rmStdOutputFile)
Sets the path to the remote file containing the standard output of the job |
void |
setRunPriority(long runPriority)
Sets the priority to start running the job. |
void |
setStartCount(int startCount)
Sets the number of times this job was started. |
void |
setStartDate(java.util.Date startDate)
Sets the job's actual start time. |
void |
setStartPriority(long startPriority)
Sets the effective job priority level. |
void |
setState(JobState jobState)
Sets the job's current state. |
void |
setStdErrorFilePath(java.lang.String stdErrorFile)
Sets the path to the file containing the standard error output of the job |
void |
setStdInputFilePath(java.lang.String stdInFilePath)
Sets the path to the file containing the standard input of the job. |
void |
setStdOutputFilePath(java.lang.String stdOutputFile)
Sets the path to the file containing the standard output of the job |
void |
setSubmitDate(java.util.Date submitDate)
Sets the date this job was submitted. |
void |
setSuspendDuration(long suspendDuration)
Set the amount of time in seconds the job has been suspended. |
void |
setSystemID(java.lang.String systemID)
Sets the system ID of the job as reported by an external source. |
void |
setSystemJobID(java.lang.String systemJobID)
Sets the job ID according to an external source such as a resource manager. |
void |
setSystemPriority(long systemPriority)
Get the administrator specified system priority level. |
void |
setTemplate(boolean isTemplate)
Sets whether or not this job object is actually a template description or an actual job. |
void |
setTemplateMatchList(java.util.List<java.lang.String> templateMatchList)
Sets the list of templates that match this job. |
void |
setTemplateSetList(java.util.List<java.lang.String> templateSetList)
Sets the list of template sets that are applied to this job. |
void |
setUser(java.lang.String user)
Sets the user running the job. |
void |
setUserPriority(long userPriority)
Sets the priority as specified by the user. |
void |
setUtilizedMemorySeconds(double utilizedMemorySeconds)
Sets the memory seconds utilized by the job. |
void |
setUtilizedProcSeconds(double utilizedProcSeconds)
Sets the processor seconds utilized by the job. |
void |
setVariables(java.util.Set<Variable> variables)
Sets the set of variables this job "owns" or sets on completion. |
void |
setVMUsagePolicy(VMUsagePolicy vmUsagePolicy)
Sets the requested virtual machine usage policy for the job. |
void |
setWallclockRequested(long wallclockRequested)
Sets the wallclock the job requested in seconds. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MoabJob()
Method Detail |
---|
public void addAllocatedNode(JobAllocatedNode allocatedNode)
Adds an allocated node to the list of nodes this job is using to run.
If the node is already in the node list, then the addition request is ignored.
allocatedNode
- the name of the node to add to the allocated list.public void addJobRequirement(JobRequirement requirement)
requirement
- the requirement to add to the job.public void addMessage(java.lang.String message)
message
- The new message to add.public void addVariable(Variable variable)
Adds a variable to the set of variables this job owns.
If the variable is already in the set, then the addition request is ignored.
variable
- the variable to be added to the set of variablespublic void clearAllocatedNodeList()
public int compareTo(MoabJob o)
It should be noted that the reason only the jobIDs are compared instead of all job attributes is because different Moab queries return different attributes. In other words, if a user used one call to get one MoabJob object and a different call to get the other MoabJob object, the attributes might be set from one call but not the other, but the jobIDs will always be the same if it is the same job according to Moab. For this purpose, only the jobIDs are compared, even if not all the attributes had been set.
compareTo
in interface java.lang.Comparable<MoabJob>
public java.lang.String getAccount()
Returns the account used for billing purposes for the job.
Can be null.
public long getActiveDuration()
public JobAllocatedNodes getAllocatedNodes()
Returns the set of nodes allocated for use by the job to run.
Cannot be null.
public JobBlockReason getBlockReason()
Returns the reason the job is blocked.
Can be null.
public int getBypass()
public java.lang.String getCommandFile()
Returns the path to the file that is executed when the job runs.
Can be null.
public java.lang.String getCommandLineArguments()
Returns the command line arguments passed into running the job.
Can be null.
public java.util.Date getCompletionTime()
Returns the date the job completed.
If null, the job hasn't completed yet.
public java.lang.String getCredentialID(CredentialType credType)
public double getDedicatedProcSeconds()
Returns the number of processor seconds dedicated to this job.
public DynamicJobInformation getDynamicJobInformation()
Returns the dynamic job and job template information for the job.
Cannot be null.
public java.util.Date getEarliestStartDate()
Returns the system specified earliest start date.
Can be null.
public java.util.Date getEarliestStartDateRequested()
Returns the earliest start date and time requested by the job.
Can be null.
public long getEffectiveQueueDuration()
public JobState getExpectedState()
Returns the state expected based on scheduler action.
Null cannot be returned. Instead JobState.NONE
will be returned.
public JobFlags getFlags()
Returns the flags for the job.
Cannot be null.
public java.util.List<java.lang.String> getGenericAttributes()
Returns the list of generic attributes the job has requested.
Can be null.
public java.lang.String getGroup()
Returns the group the job is run under.
Can be null.
public java.util.Set<JobHoldType> getHolds()
Sets the holds that are currently on the job.
Can be null.
public java.util.Set<java.lang.String> getHostList()
Returns the set of hosts/nodes the job is running on.
Can be null.
public java.lang.String getInitialWorkingDirectory()
Returns the path to the directory the job will be started in.
Can be null.
public java.lang.String getJobID()
Returns the unique ID of the job.
Can be null.
public java.lang.String getJobName()
Returns the user specified name of the job.
Can be null.
public java.util.List<JobRequirement> getJobRequirements()
Returns the list of job requirements this job has that specifies what it needs to run.
Can be null.
public java.util.Date getLatestCompletedDateRequested()
Returns the latest date and time the job must be completed by.
Can be null.
public java.lang.String getMasterHost()
Returns the node/host that the primary task will run on.
Can be null.
public int getMemoryRequested()
public java.util.List<java.lang.String> getMessages()
Returns the list of system set and user specified message.
Can be null.
public int getNodeCount()
public int getNodeCountRequested()
public java.util.Set<java.lang.String> getPartitionAccessList()
Returns the list of partitions that this job has access to.
Can be null.
public int getProcCountRequested()
public java.lang.String getQos()
Returns the QoS the job is actually running under.
Can be null.
public java.lang.String getQosRequested()
Returns the QoS the job requested.
This may not be the actual QoS the job is given based on policies. Can be null.
public java.lang.String getQueue()
Returns the class that the job is wanting to or actually running in.
Can be null.
public QueueStatus getQueueStatus()
Returns the status of the job in its queue.
Cannot be null.
public java.lang.String getReservationRequested()
Returns the reservation that job requested.
Can be null.
public java.util.Date getReservationStartDate()
Returns the actual start date of the reservation the job is running inside of.
Can be null.
public java.lang.String getResourceManagerExtension()
Returns the resource manager extension String that describes information passed to the the resource manager accounting for the job.
Can be null.
public java.lang.String getResourceManagerName()
Returns the name of the resource manager that is reporting this job.
Can be null.
public long getRunPriority()
public int getStartCount()
Returns the number of times this job was started.
public java.util.Date getStartDate()
Returns the date that this job actually started.
public long getStartPriority()
Returns the effective job priority level.
public JobState getState()
Get the job's current state.
Null cannot be returned. Instead JobState.NONE
will be returned.
public java.lang.String getStdErrorFilePath()
Returns the path to the file containing the standard error output of the job.
Can be null.
public java.lang.String getRmStdErrorFilePath()
Returns the path to the remote file containing the standard error output of the job.
Can be null.
public java.lang.String getStdInputFilePath()
Returns the path to the file containing the standard input of the job.
Can be null.
public java.lang.String getRmStdInputFilePath()
Returns the path to the remote file containing the standard input of the job.
Can be null.
public java.lang.String getStdOutputFilePath()
Returns the path to the file containing the standard output of the job.
Can be null.
public java.lang.String getRmStdOutputFilePath()
Returns the remote path to the file containing the standard output of the job.
Can be null.
public java.util.Date getSubmitDate()
Returns the date when this job was submitted.
public long getSuspendDuration()
Get the amount of time the job has been suspended
public java.lang.String getSystemID()
Returns the system ID of the job as reported by an external source.
Can be null.
public java.lang.String getSystemJobID()
Returns the job ID according to an external source such as a resource manager.
Can be null.
public long getSystemPriority()
Get the administrator specified system priority level.
Defaults to 0 if no priority is set.
public java.util.List<java.lang.String> getTemplateMatchList()
Returns the list of strings representing job templates that match this job.
Can be null.
public java.util.List<java.lang.String> getTemplateSetList()
Returns the list of strings representing job templates that were set on this job.
Can be null.
public java.lang.String getUser()
Returns the user that is running the job.
Can be null.
public long getUserPriority()
Returns the user-specified priority for the job.
This priority value, if set, will be used in relation to the user's other jobs.
public double getUtilizedMemorySeconds()
Returns the number of memory seconds utilized by job.
public double getUtilizedProcSeconds()
Returns the number of processor seconds utilized by job
public java.util.Set<Variable> getVariables()
Get the set of variables this job "owns" or sets on completion.
Can return null.
public long getWallclockRequested()
Returns the wallclock requested in seconds.
public boolean isDynamic()
Returns true if the job is dynamic.
This is determined by the JobFlag.DYNAMIC
flag being set.
public boolean isTemplate()
public void removeJobRequirement(JobRequirement requirement)
requirement
- the requirement to remove from the job.public void removeVariable(Variable variable)
Removes a variable from the set of variables this job owns.
If the variable is not included in the set, then the remove request is ignored.
variable
- the variable to be removed to the set of variablespublic void setAccount(java.lang.String account)
Sets the account that this job is to run under for billing purposes
Can be null.
account
- the account that is billed for running the job.public void setActiveDuration(long activeDuration)
activeDuration
- the duration in seconds the job has spent being active or
running.public void setAllocatedNodes(java.util.Set<JobAllocatedNode> allocatedNodes)
Sets the set of nodes allocated for use by the job to run.
Cannot be null.
allocatedNodes
- the set of nodes allocated for use by the job to run.public void setBlockReason(JobBlockReason blockReason)
Sets the reason the job is blocked.
Can be null.
blockReason
- the reason the job is blocked.public void setBypass(int bypass)
bypass
- the number of times the job has been backfilled.public void setCommandFile(java.lang.String commandFile)
Sets the path to the file that is executed when the job runs.
Can be null.
commandFile
- the path to the file that is executed when the job runs.public void setCommandLineArguments(java.lang.String commandLineArguments)
Sets the command line arguments passed into running the job.
Can be null.
commandLineArguments
- the command line arguments passed into running the job.public void setCompletionTime(java.util.Date completionDate)
Sets the date the job completed.
If null, the job hasn't completed yet.
completionDate
- the date the job completed.public void setDedicatedProcSeconds(double dedicatedProcSeconds)
Sets the processor seconds dedicated to the job.
dedicatedProcSeconds
- the processor seconds dedicated to the job.public void setDynamicJobInformation(DynamicJobInformation jobTemplateExtension) throws java.lang.IllegalArgumentException
Sets the job template and dynamic job information.
Cannot be null.
jobTemplateExtension
- the job template and dynamic job information.
java.lang.IllegalArgumentException
- thrown if jobTemplateExtension is null.public void setEarliestStartDate(java.util.Date earliestStartDate)
Sets the system specified earliest start date.
Can be null.
earliestStartDate
- the system specified earliest start date.public void setEarliestStartDateRequested(java.util.Date earliestStartDateRequested)
Sets the earliest start date that the job requests.
Can be null.
earliestStartDateRequested
- the earliest start date that the job requests.public void setEffectiveQueueDuration(long effectiveQueueDuration)
effectiveQueueDuration
- the duration in seconds the job has been eligible to run in
the queue.public void setExpectedState(JobState jobState) throws InvalidMoabArgumentException
Returns the state expected based on scheduler action.
Null cannot be used. Instead JobState.NONE
should be used.
jobState
- the expected state of the job.
InvalidMoabArgumentException
- thrown if jobState is null.public void setFlags(JobFlags jobFlags) throws InvalidMoabArgumentException
Sets the flags for the job.
Cannot be null.
jobFlags
- the flags that apply to the job.
InvalidMoabArgumentException
- thrown if jobFlags is null.public void setGenericAttributes(java.util.List<java.lang.String> genericAttributes)
Sets the list of generic attributes the job has requested.
Can be null.
genericAttributes
- the list of generic attributes the job has requested.public void setGroup(java.lang.String group)
Sets the group the job is run under.
Can be null.
group
- the group the job is run under.public void setHolds(java.util.Set<JobHoldType> holds)
Sets the holds that are currently on the job.
Can be null.
holds
- the holds that are currently on the job.public void setHostList(java.util.Set<java.lang.String> hostList)
Sets the set of hosts/nodes the job is running on.
Can be null.
hostList
- theset of hosts/nodes the job is running on.public void setInitialWorkingDirectory(java.lang.String initialWorkingDirectory)
Sets the path to the directory the job will be started in.
Can be null.
initialWorkingDirectory
- the path to the directory the job will be started in.public void setJobID(java.lang.String jobID)
Sets the unique ID for the job.
Can be null.
jobID
- the unique ID for the job.public void setJobName(java.lang.String jobName)
Sets the user specified job name.
Can be null.
jobName
- the user specified job name.public void setLatestCompletedDateRequested(java.util.Date latestCompletionDateRequested)
Sets the latest date and time the job must be completed by.
Can be null.
latestCompletionDateRequested
- the latest date and time the job must be completed by.public void setMasterHost(java.lang.String masterHost)
Sets the node/host that the primary task will run on.
Can be null.
masterHost
- the node/host that the primary task will run on.public void setMemoryRequested(int memoryRequested)
memoryRequested
- the amount of memory in MB requested by the job.public void setMessages(java.util.List<java.lang.String> messages)
Sets the list of system set and user specified message.
Can be null.
messages
- the list of messages attached to the job.public void setNodeCountRequested(int nodeCountRequested)
nodeCountRequested
- the number of nodes the job has requested.public void setPartitionAccessList(java.util.Set<java.lang.String> partitionAccessList)
Sets the list of partitions that this job has access to.
Can be null.
partitionAccessList
- the list of partitions that this job has access to.public void setProcCountRequested(int procCountRequested)
procCountRequested
- the number of processors the job has requested.public void setQos(java.lang.String qos)
Sets the QoS the job is actually running under.
Can be null.
qos
- the QoS the job is actually running under.public void setQosRequested(java.lang.String qosRequested)
Sets the QoS the job requested.
This may not be the actual QoS the job is given based on policies. Can be null.
qosRequested
- the QoS the job requested.public void setQueue(java.lang.String queue)
Sets the class that the job is wanting to or actually running in.
Can be null.
queue
- the class that the job is wanting to or actually running in.public void setQueueStatus(QueueStatus queueStatus) throws InvalidMoabArgumentException
Sets the status of the job in its queue.
Cannot be null.
queueStatus
- the status of the job in its queue.
InvalidMoabArgumentException
- thrown if queueStatus is null.public void setReservationRequested(java.lang.String reservationRequested)
Sets the reservation that job requested.
Can be null.
reservationRequested
- the reservation that job requested.public void setReservationStartDate(java.util.Date reservationStartDate)
Sets the actual start date of the reservation the job is running inside of.
Can be null.
reservationStartDate
- the actual start date of the reservation the job is running
inside of.public void setResourceManagerExtension(java.lang.String resourceManagerExtension)
Sets the resource manager extension String that describes information passed to the the resource manager accounting for the job.
Can be null.
resourceManagerExtension
- the resource manager extension String that describes
information passed to the the resource manager accounting for
the job.public void setResourceManagerName(java.lang.String resourceManagerName)
Sets the name of the resource manager that is reporting this job.
Can be null.
resourceManagerName
- the name of the resource manager that is reporting this job.public void setRunPriority(long runPriority)
runPriority
- the priority to start running the job.public void setStartCount(int startCount)
Sets the number of times this job was started.
startCount
- the number of times this job was started.public void setStartDate(java.util.Date startDate)
Sets the job's actual start time.
startDate
- the job's actual start timepublic void setStartPriority(long startPriority)
Sets the effective job priority level.
startPriority
- the effective job priority levelpublic void setState(JobState jobState) throws InvalidMoabArgumentException
Sets the job's current state.
Null cannot be used. Instead JobState.NONE
should be used.
jobState
- the current state of the job.
InvalidMoabArgumentException
- thrown if jobState is null.public void setStdErrorFilePath(java.lang.String stdErrorFile)
stdErrorFile
- the path to the file containing the job's standard error
(STDERR)public void setRmStdErrorFilePath(java.lang.String stdErrorFile)
stdErrorFile
- the path to the remote file containing the job's standard
error (STDERR)public void setStdInputFilePath(java.lang.String stdInFilePath)
Sets the path to the file containing the standard input of the job.
Can be null.
stdInFilePath
- the path to the file containing the job's standard input
(STDIN)public void setRmStdInputFilePath(java.lang.String stdErrorFile)
Sets the path to the remote file containing the standard input of the job.
Can be null.
stdErrorFile
- the path to the remote file containing the job's standard
input (STDIN)public void setStdOutputFilePath(java.lang.String stdOutputFile)
stdOutputFile
- the path to the file containing the job's standard output
(STDOUT)public void setRmStdOutputFilePath(java.lang.String rmStdOutputFile)
rmStdOutputFile
- the path to the remote file containing the job's standard
output (STDOUT)public void setSubmitDate(java.util.Date submitDate)
Sets the date this job was submitted.
submitDate
- the time this job was submitted.public void setSuspendDuration(long suspendDuration)
Set the amount of time in seconds the job has been suspended.
suspendDuration
- the amount of time the job has been suspended.public void setSystemID(java.lang.String systemID)
Sets the system ID of the job as reported by an external source.
Can be null.
systemID
- the system ID of the job as reported by an external source.public void setSystemJobID(java.lang.String systemJobID)
Sets the job ID according to an external source such as a resource manager.
Can be null.
systemJobID
- the job ID according to an external source such as a resource
manager.public void setSystemPriority(long systemPriority)
Get the administrator specified system priority level.
systemPriority
- the administrator specified system priority levelpublic void setTemplate(boolean isTemplate)
isTemplate
- if true, this is a template; if false, it is an actual job.public void setTemplateMatchList(java.util.List<java.lang.String> templateMatchList)
Sets the list of templates that match this job.
Can be null.
templateMatchList
- the list of templates that match this job.public void setTemplateSetList(java.util.List<java.lang.String> templateSetList)
Sets the list of template sets that are applied to this job.
Can be null.
templateSetList
- the list of template sets that are applied to this job.public void setUser(java.lang.String user)
Sets the user running the job.
Can be null.
user
- the user running the job.public void setUserPriority(long userPriority)
Sets the priority as specified by the user.
This is different than the job's system wide priority.
userPriority
- the priority as specified by the user.public void setUtilizedMemorySeconds(double utilizedMemorySeconds)
Sets the memory seconds utilized by the job.
utilizedMemorySeconds
- the memory seconds utilized by the jobpublic void setUtilizedProcSeconds(double utilizedProcSeconds)
Sets the processor seconds utilized by the job.
utilizedProcSeconds
- the processor seconds utilized by the job.public void setVariables(java.util.Set<Variable> variables)
Sets the set of variables this job "owns" or sets on completion.
Can be null.
variables
- the set of variables this job "owns" or sets on completion.public void setWallclockRequested(long wallclockRequested)
wallclockRequested
- the wallclock the job requested in seconds.public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<JobEmailNotifyType> getNotifyTypeList()
Returns the set of e-mail notify types attached to the job.
Can be null.
public void setNotifyTypeList(java.util.Set<JobEmailNotifyType> notifyTypeList)
Sets the set of e-mail notify types attached to the job.
Can be null.
notifyTypeList
- the set of e-mail notify types attached to the job.public double getSLAViolationValue()
Returns the worst-case violation of a job's target SLA information as reported in a percentage.
Looking at the four target ranges of a dynamic job, this will return a negative percentage if the actual value is lower than the minimum target. Similarly, it will return a postive percentage if the actual value is higher than maximum target. If no values are outside the targets or the SLA targets are not used, then 0 is returned.
public SLAViolationType getSLAViolationType()
Returns the worst-case violation of a job's target SLA information as reported in a violation type category.
public java.util.List<JobDependency> getJobDependecyList()
Returns the list of dependencies for this job.
Can be null.
public void setJobDependecyList(java.util.List<JobDependency> jobDependecyList)
Sets the list of dependencies for this job.
Can be null.
jobDependecyList
- the list of dependencies for this job.public java.util.List<GenericResource> getGenericResourcesList()
public void setGenericResourcesList(java.util.List<GenericResource> genericResourcesList)
genericResourcesList
- public void addGenericResource(GenericResource genericResource)
genericResource
- public void setVMUsagePolicy(VMUsagePolicy vmUsagePolicy)
vmUsagePolicy
- the requested VM usage policypublic VMUsagePolicy getVMUsagePolicy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |