public class Job extends CommonDTO
Modifier and Type | Class and Description |
---|---|
static class |
Job.Builder
A builder to create jobs.
|
Modifier | Constructor and Description |
---|---|
protected |
Job(@Valid Job.Builder builder)
Constructor used by the builder.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getArchiveLocation()
Get the archive location for the job if there is one.
|
java.util.Optional<java.lang.String> |
getClusterName()
Get the name of the cluster running the job if there currently is one.
|
java.util.Optional<java.lang.String> |
getCommandArgs()
Get the arguments to be put on the command line along with the command executable.
|
java.util.Optional<java.lang.String> |
getCommandName()
Get the name of the command running this job if there currently is one.
|
java.util.Optional<java.time.Instant> |
getFinished()
Get the time the job finished.
|
java.util.Optional<java.lang.String> |
getGrouping()
Get the grouping for this job if there currently is one.
|
java.util.Optional<java.lang.String> |
getGroupingInstance()
Get the grouping instance for this job if there currently is one.
|
java.util.Optional<java.time.Instant> |
getStarted()
Get the time the job started.
|
java.util.Optional<java.lang.String> |
getStatusMsg()
Get the current status message.
|
getDescription, getMetadata
getCreated, getId, getUpdated, toString
protected Job(@Valid @Valid Job.Builder builder)
builder
- The builder to usepublic java.util.Optional<java.lang.String> getCommandArgs()
public java.util.Optional<java.lang.String> getStatusMsg()
public java.util.Optional<java.lang.String> getArchiveLocation()
public java.util.Optional<java.lang.String> getClusterName()
public java.util.Optional<java.lang.String> getCommandName()
public java.util.Optional<java.lang.String> getGrouping()
public java.util.Optional<java.lang.String> getGroupingInstance()
public java.util.Optional<java.time.Instant> getStarted()
public java.util.Optional<java.time.Instant> getFinished()