All Superinterfaces:
StatusProjection
All Known Implementing Classes:
JobEntity

public interface JobSearchProjection extends StatusProjection
Projection to return only the fields desired for a job with search results.
Since:
3.3.0
  • Method Details

    • getUniqueId

      String getUniqueId()
      Get the unique identifier of the job.
      Returns:
      The unique identifier
    • getName

      String getName()
      Get the name of the job.
      Returns:
      The name of the job
    • getUser

      String getUser()
      Get the user who ran or is running the job.
      Returns:
      the user
    • getStarted

      Optional<Instant> getStarted()
      Get the time the job started if it has started.
      Returns:
      The time the job started
    • getFinished

      Optional<Instant> getFinished()
      Get the time the job finished if it has finished.
      Returns:
      The time the job finished
    • getClusterName

      Optional<String> getClusterName()
      Get the name of the cluster that is running or did run this job.
      Returns:
      The cluster name or empty Optional if it hasn't been set
    • getCommandName

      Optional<String> getCommandName()
      Get the name of the command that is executing this job.
      Returns:
      The command name or empty Optional if one wasn't set yet