Groovy Documentation

com.ace.mws.plugins
[Java] Class JobReport

java.lang.Object
  com.ace.mws.plugins.JobReport

public class JobReport
extends Object

A job report consists of values for all of the known, changed properties for a specific job resource. This typically represents changes in a specific time period (ie between the last poll and the current poll), but can also represent all known information concerning a resource (ie the first time poll is run).

For more information on reporting resources, see the Plugin Reporting section in the MWS documentation.

Authors:
bsaville


Field Summary
private String account

The job's account.

private String commandFile

The job's executable command file.

private String commandLineArguments

The job's command line arguments.

private Date completedDate

The date that the job completed.

private Integer completionCode

The completion code of the job.

private String customName

The user-specified name of the job.

private Date deadlineDate

The latest date that the job should be completed.

private Long duration

The requested duration that the job should run.

private Long durationSuspended

The job's suspend duration.

private Date earliestStartDate

The job's earliest start date.

private Map environmentVariables

The job's environment variables.

private String extension

The job's RM extension string.

private List flags

The job's flags.

private String group

The job's group.

private String image

The required image for the job, this relates to the image name field in the MWS Image Catalog.

private String initialWorkingDirectory

The job's initial working directory.

private String name

The job's name, this should be lower-case but will automatically be converted if it is not in setName(String).

private List nodesRequested

The job's requested node names.

private List partitionAccessList

The job's partition access list.

private String pluginId

The ID of the plugin which has generated the report.

private Long precedence

The precedence of the plugin which has generated the report.

private String qos

The job's QOS.

private JobReportRequirementsList requirements

The job's requirements list.

private String reservationRequested

The identifier of the reservation requested for the job.

private String standardErrorFilePath

The job's standard error file path.

private String standardInputFilePath

The job's standard input file path.

private String standardOutputFilePath

The job's standard output file path.

private Date startDate

The job's actual start date.

private JobReportState state

The job's current state.

private Date submitDate

The date at which the job was submitted.

private Long systemPriority

The job's system priority.

private Date timestamp

The date that the report was made or for which the report is current.

private String user

The job's user.

 
Constructor Summary
JobReport()

Creates a new, empty job report.

JobReport(String name)

Creates a new job report for specified job.

 
Method Summary
String getAccount()

@see #account

String getCommandFile()

@see #commandFile

String getCommandLineArguments()

@see #commandLineArguments

Date getCompletedDate()

@see #completedDate

Integer getCompletionCode()

@see #completionCode

String getCustomName()

@see #customName

Date getDeadlineDate()

@see #deadlineDate

Long getDuration()

@see #duration

Long getDurationSuspended()

@see #durationSuspended

Date getEarliestStartDate()

@see #earliestStartDate

Map getEnvironmentVariables()

@see #environmentVariables

String getExtension()

@see #extension

List getFlags()

@see #flags

String getGroup()

@see #group

String getImage()

@see #image

String getInitialWorkingDirectory()

@see #initialWorkingDirectory

String getName()

@see #name

List getNodesRequested()

@see #nodesRequested

List getPartitionAccessList()

@see #partitionAccessList

String getPluginId()

@see #pluginId

Long getPrecedence()

@see #precedence

String getQos()

@see #qos

JobReportRequirementsList getRequirements()

Retrieves the job requirements.

String getReservationRequested()

@see #reservationRequested

String getStandardErrorFilePath()

@see #standardErrorFilePath

String getStandardInputFilePath()

@see #standardInputFilePath

String getStandardOutputFilePath()

@see #standardOutputFilePath

Date getStartDate()

@see #startDate

JobReportState getState()

@see #state

Date getSubmitDate()

@see #submitDate

Long getSystemPriority()

@see #systemPriority

Date getTimestamp()

Retrieves the set timestamp for the report.

String getUser()

@see #user

void setAccount(String account)

@see #account

void setCommandFile(String commandFile)

@see #commandFile

void setCommandLineArguments(String commandLineArguments)

@see #commandLineArguments

void setCompletedDate(Date completedDate)

@see #completedDate

void setCompletedDate(String completionDate)

@see #completedDate

void setCompletionCode(Integer completionCode)

@see #completionCode

void setCustomName(String customName)

@see #customName

void setDeadlineDate(Date deadlineDate)

@see #deadlineDate

void setDeadlineDate(String latestCompletedDateRequested)

@see #deadlineDate

void setDuration(Long duration)

@see #duration

void setDurationSuspended(Long durationSuspended)

@see #durationSuspended

void setEarliestStartDate(Date earliestStartDate)

@see #earliestStartDate

void setEarliestStartDate(String earliestStartDate)

@see #earliestStartDate

void setEnvironmentVariables(Map environmentVariables)

@see #environmentVariables

void setExtension(String extension)

@see #extension

void setFlags(List flags)

@see #flags

void setGroup(String group)

@see #group

void setImage(String image)

@see #image

void setInitialWorkingDirectory(String initialWorkingDirectory)

@see #initialWorkingDirectory

void setName(String name)

Sets the unique identifier for the job.

void setNodesRequested(List nodesRequested)

@see #nodesRequested

void setPartitionAccessList(List partitionAccessList)

@see #partitionAccessList

void setPluginId(String pluginId)

Sets the ID of the plugin which has generated the report.

void setPrecedence(Long precedence)

Sets the precedence, corresponding to the precedence of the plugin which has generated the report.

void setQos(String qos)

@see #qos

void setRequirements(JobReportRequirementsList requirements)

@see #requirements

void setReservationRequested(String reservationRequested)

@see #reservationRequested

void setStandardErrorFilePath(String standardErrorFilePath)

@see #standardErrorFilePath

void setStandardInputFilePath(String standardInputFilePath)

@see #standardInputFilePath

void setStandardOutputFilePath(String standardOutputFilePath)

@see #standardOutputFilePath

void setStartDate(Date startDate)

@see #startDate

void setStartDate(String startDate)

@see #startDate

void setState(JobReportState state)

@see #state

void setState(String state)

Calls JobReportState.parse to set the state field.

void setSubmitDate(Date submitDate)

@see #submitDate

void setSubmitDate(String submitDate)

@see #submitDate

void setSystemPriority(Long systemPriority)

@see #systemPriority

void setTimestamp(Date timestamp)

@see #timestamp

void setTimestamp(String timestamp)

@see #timestamp

void setUser(String user)

@see #user

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

account

private String account
The job's account.


commandFile

private String commandFile
The job's executable command file.


commandLineArguments

private String commandLineArguments
The job's command line arguments.


completedDate

private Date completedDate
The date that the job completed.


completionCode

private Integer completionCode
The completion code of the job.


customName

private String customName
The user-specified name of the job.


deadlineDate

private Date deadlineDate
The latest date that the job should be completed.


duration

private Long duration
The requested duration that the job should run.


durationSuspended

private Long durationSuspended
The job's suspend duration.


earliestStartDate

private Date earliestStartDate
The job's earliest start date.


environmentVariables

private Map environmentVariables
The job's environment variables.


extension

private String extension
The job's RM extension string.


flags

private List flags
The job's flags.


group

private String group
The job's group.


image

private String image
The required image for the job, this relates to the image name field in the MWS Image Catalog.


initialWorkingDirectory

private String initialWorkingDirectory
The job's initial working directory.


name

private String name
The job's name, this should be lower-case but will automatically be converted if it is not in setName(String).


nodesRequested

private List nodesRequested
The job's requested node names.


partitionAccessList

private List partitionAccessList
The job's partition access list.


pluginId

private String pluginId
The ID of the plugin which has generated the report. NOTE: This is overridden by the RM services automatically and should not be set by the plugin.


precedence

private Long precedence
The precedence of the plugin which has generated the report. NOTE: This is overridden by the RM services automatically and should not be set by the plugin.


qos

private String qos
The job's QOS.


requirements

private JobReportRequirementsList requirements
The job's requirements list. This may be treated as a single JobReportRequirement.


reservationRequested

private String reservationRequested
The identifier of the reservation requested for the job.


standardErrorFilePath

private String standardErrorFilePath
The job's standard error file path.


standardInputFilePath

private String standardInputFilePath
The job's standard input file path.


standardOutputFilePath

private String standardOutputFilePath
The job's standard output file path.


startDate

private Date startDate
The job's actual start date.


state

private JobReportState state
The job's current state.


submitDate

private Date submitDate
The date at which the job was submitted.


systemPriority

private Long systemPriority
The job's system priority.


timestamp

private Date timestamp
The date that the report was made or for which the report is current. This will be set to the current date and time if not provided. This may also be set as a string which will use PluginConstants.STANDARD_DATE_FORMAT to parse into a date.


user

private String user
The job's user.


 
Constructor Detail

JobReport

public JobReport()
Creates a new, empty job report.


JobReport

public JobReport(String name)
Creates a new job report for specified job.
Parameters:
name - See setName


 
Method Detail

getAccount

public String getAccount()
See Also:
account


getCommandFile

public String getCommandFile()
See Also:
commandFile


getCommandLineArguments

public String getCommandLineArguments()
See Also:
commandLineArguments


getCompletedDate

public Date getCompletedDate()
See Also:
completedDate


getCompletionCode

public Integer getCompletionCode()
See Also:
completionCode


getCustomName

public String getCustomName()
See Also:
customName


getDeadlineDate

public Date getDeadlineDate()
See Also:
deadlineDate


getDuration

public Long getDuration()
See Also:
duration


getDurationSuspended

public Long getDurationSuspended()
See Also:
durationSuspended


getEarliestStartDate

public Date getEarliestStartDate()
See Also:
earliestStartDate


getEnvironmentVariables

public Map getEnvironmentVariables()
See Also:
environmentVariables


getExtension

public String getExtension()
See Also:
extension


getFlags

public List getFlags()
See Also:
flags


getGroup

public String getGroup()
See Also:
group


getImage

public String getImage()
See Also:
image


getInitialWorkingDirectory

public String getInitialWorkingDirectory()
See Also:
initialWorkingDirectory


getName

public String getName()
See Also:
name


getNodesRequested

public List getNodesRequested()
See Also:
nodesRequested


getPartitionAccessList

public List getPartitionAccessList()
See Also:
partitionAccessList


getPluginId

public String getPluginId()
See Also:
pluginId


getPrecedence

public Long getPrecedence()
See Also:
precedence


getQos

public String getQos()
See Also:
qos


getRequirements

public JobReportRequirementsList getRequirements()
Retrieves the job requirements. This list may be manipulated as a IJobReportRequirement itself.
See Also:
requirements


getReservationRequested

public String getReservationRequested()
See Also:
reservationRequested


getStandardErrorFilePath

public String getStandardErrorFilePath()
See Also:
standardErrorFilePath


getStandardInputFilePath

public String getStandardInputFilePath()
See Also:
standardInputFilePath


getStandardOutputFilePath

public String getStandardOutputFilePath()
See Also:
standardOutputFilePath


getStartDate

public Date getStartDate()
See Also:
startDate


getState

public JobReportState getState()
See Also:
state


getSubmitDate

public Date getSubmitDate()
See Also:
submitDate


getSystemPriority

public Long getSystemPriority()
See Also:
systemPriority


getTimestamp

public Date getTimestamp()
Retrieves the set timestamp for the report. NOTE: If no timestamp is provided by the plugin, the timestamp will be assigned a value of the current date and time.
See Also:
timestamp


getUser

public String getUser()
See Also:
user


setAccount

public void setAccount(String account)
See Also:
account


setCommandFile

public void setCommandFile(String commandFile)
See Also:
commandFile


setCommandLineArguments

public void setCommandLineArguments(String commandLineArguments)
See Also:
commandLineArguments


setCompletedDate

public void setCompletedDate(Date completedDate)
See Also:
completedDate


setCompletedDate

public void setCompletedDate(String completionDate)
See Also:
completedDate


setCompletionCode

public void setCompletionCode(Integer completionCode)
See Also:
completionCode


setCustomName

public void setCustomName(String customName)
See Also:
customName


setDeadlineDate

public void setDeadlineDate(Date deadlineDate)
See Also:
deadlineDate


setDeadlineDate

public void setDeadlineDate(String latestCompletedDateRequested)
See Also:
deadlineDate


setDuration

public void setDuration(Long duration)
See Also:
duration


setDurationSuspended

public void setDurationSuspended(Long durationSuspended)
See Also:
durationSuspended


setEarliestStartDate

public void setEarliestStartDate(Date earliestStartDate)
See Also:
earliestStartDate


setEarliestStartDate

public void setEarliestStartDate(String earliestStartDate)
See Also:
earliestStartDate


setEnvironmentVariables

public void setEnvironmentVariables(Map environmentVariables)
See Also:
environmentVariables


setExtension

public void setExtension(String extension)
See Also:
extension


setFlags

public void setFlags(List flags)
See Also:
flags


setGroup

public void setGroup(String group)
See Also:
group


setImage

public void setImage(String image)
See Also:
image


setInitialWorkingDirectory

public void setInitialWorkingDirectory(String initialWorkingDirectory)
See Also:
initialWorkingDirectory


setName

public void setName(String name)
Sets the unique identifier for the job. This automatically lower-cases the ID.
See Also:
name


setNodesRequested

public void setNodesRequested(List nodesRequested)
See Also:
nodesRequested


setPartitionAccessList

public void setPartitionAccessList(List partitionAccessList)
See Also:
partitionAccessList


setPluginId

public void setPluginId(String pluginId)
Sets the ID of the plugin which has generated the report. NOTE: This is overridden by the RM services automatically and should not be set by the plugin.
See Also:
pluginId


setPrecedence

public void setPrecedence(Long precedence)
Sets the precedence, corresponding to the precedence of the plugin which has generated the report. NOTE: This is overridden by the RM services automatically and should not be set by the plugin.
See Also:
precedence


setQos

public void setQos(String qos)
See Also:
qos


setRequirements

public void setRequirements(JobReportRequirementsList requirements)
See Also:
requirements


setReservationRequested

public void setReservationRequested(String reservationRequested)
See Also:
reservationRequested


setStandardErrorFilePath

public void setStandardErrorFilePath(String standardErrorFilePath)
See Also:
standardErrorFilePath


setStandardInputFilePath

public void setStandardInputFilePath(String standardInputFilePath)
See Also:
standardInputFilePath


setStandardOutputFilePath

public void setStandardOutputFilePath(String standardOutputFilePath)
See Also:
standardOutputFilePath


setStartDate

public void setStartDate(Date startDate)
See Also:
startDate


setStartDate

public void setStartDate(String startDate)
See Also:
startDate


setState

public void setState(JobReportState state)
See Also:
state


setState

public void setState(String state)
Calls JobReportState.parse to set the state field.
See Also:
state


setSubmitDate

public void setSubmitDate(Date submitDate)
See Also:
submitDate


setSubmitDate

public void setSubmitDate(String submitDate)
See Also:
submitDate


setSystemPriority

public void setSystemPriority(Long systemPriority)
See Also:
systemPriority


setTimestamp

public void setTimestamp(Date timestamp)
See Also:
timestamp


setTimestamp

public void setTimestamp(String timestamp)
See Also:
timestamp


setUser

public void setUser(String user)
See Also:
user


 

Groovy Documentation