public class JobSearchResult extends BaseSearchResult
| Constructor and Description | 
|---|
| JobSearchResult(java.lang.String id,
               java.lang.String name,
               java.lang.String user,
               JobStatus status,
               java.util.Date started,
               java.util.Date 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.util.Date> | getFinished()Get the time the job finished. | 
| java.util.Optional<java.util.Date> | getStarted()Get the time the job started. | 
toStringpublic JobSearchResult(@NotBlank
                       java.lang.String id,
                       @NotBlank
                       java.lang.String name,
                       @NotBlank
                       java.lang.String user,
                       @NotNull
                       JobStatus status,
                       java.util.Date started,
                       java.util.Date finished,
                       java.lang.String clusterName,
                       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.util.Date> getStarted()
public java.util.Optional<java.util.Date> getFinished()
public java.util.Optional<java.lang.String> getClusterName()
public java.util.Optional<java.lang.String> getCommandName()