Package com.netflix.genie.common.dto
Class Job
java.lang.Object
com.netflix.genie.common.dto.BaseDTO
com.netflix.genie.common.dto.CommonDTO
com.netflix.genie.common.dto.Job
- All Implemented Interfaces:
Serializable
Read only data transfer object representing a Job in the Genie system.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Job
(@Valid Job.Builder builder) Constructor used by the builder. -
Method Summary
Modifier and TypeMethodDescriptionGet the archive location for the job if there is one.Get the name of the cluster running the job if there currently is one.Get the arguments to be put on the command line along with the command executable.Get the name of the command running this job if there currently is one.Get the time the job finished.Get the grouping for this job if there currently is one.Get the grouping instance for this job if there currently is one.Get the time the job started.Get the current status message.Methods inherited from class com.netflix.genie.common.dto.CommonDTO
getDescription, getMetadata
Methods inherited from class com.netflix.genie.common.dto.BaseDTO
getCreated, getId, getUpdated, toString
-
Constructor Details
-
Job
Constructor used by the builder.- Parameters:
builder
- The builder to use
-
-
Method Details
-
getCommandArgs
Get the arguments to be put on the command line along with the command executable.- Returns:
- The command arguments
-
getStatusMsg
Get the current status message.- Returns:
- The status message as an optional
-
getArchiveLocation
Get the archive location for the job if there is one.- Returns:
- The archive location
-
getClusterName
Get the name of the cluster running the job if there currently is one.- Returns:
- The name of the cluster where the job is running
-
getCommandName
Get the name of the command running this job if there currently is one.- Returns:
- The name of the command
-
getGrouping
Get the grouping for this job if there currently is one.- Returns:
- The grouping
- Since:
- 3.3.0
-
getGroupingInstance
Get the grouping instance for this job if there currently is one.- Returns:
- The grouping instance
- Since:
- 3.3.0
-
getStarted
Get the time the job started.- Returns:
- The started time or null if not set
-
getFinished
Get the time the job finished.- Returns:
- The finished time or null if not set
-