public class JobSearchResult extends BaseSearchResult
| Constructor and Description |
|---|
JobSearchResult(@NotBlank java.lang.String id,
@NotBlank java.lang.String name,
@NotBlank java.lang.String user,
@NotNull JobStatus status,
java.time.Instant started,
java.time.Instant finished,
java.lang.String clusterName,
java.lang.String commandName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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> |
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.time.Instant> |
getStarted()
Get the time the job started.
|
toStringpublic JobSearchResult(@NotBlank
@NotBlank java.lang.String id,
@NotBlank
@NotBlank java.lang.String name,
@NotBlank
@NotBlank java.lang.String user,
@NotNull
@NotNull JobStatus status,
@Nullable
java.time.Instant started,
@Nullable
java.time.Instant finished,
@Nullable
java.lang.String clusterName,
@Nullable
java.lang.String commandName)
id - The id of the jobname - The name of the jobuser - The user of the jobstatus - The current status of the jobstarted - The start time of the jobfinished - The finish time of the jobclusterName - The name of the cluster this job is or was run oncommandName - The name fo the command this job is or was run withpublic java.util.Optional<java.time.Instant> getStarted()
public java.util.Optional<java.time.Instant> getFinished()
public java.util.Optional<java.lang.String> getClusterName()
public java.util.Optional<java.lang.String> getCommandName()