Class CloseJobRequest

    • Constructor Detail

      • CloseJobRequest

        public CloseJobRequest​(String... jobIds)
        Close the specified Jobs via their unique jobIds
        Parameters:
        jobIds - must be non-null and non-empty and each jobId must be non-null
    • Method Detail

      • closeAllJobsRequest

        public static CloseJobRequest closeAllJobsRequest()
        Explicitly close all jobs
        Returns:
        a CloseJobRequest for all existing jobs
      • getJobIds

        public List<String> getJobIds()
        All the jobIds to be closed
      • setTimeout

        public void setTimeout​(TimeValue timeout)
        How long to wait for the close request to complete before timing out.
        Parameters:
        timeout - Default value: 30 minutes
      • getForce

        public Boolean getForce()
      • setForce

        public void setForce​(boolean force)
        Should the closing be forced. Use to close a failed job, or to forcefully close a job which has not responded to its initial close request.
        Parameters:
        force - When true forcefully close the job. Defaults to false
      • getAllowNoJobs

        public Boolean getAllowNoJobs()
      • setAllowNoJobs

        public void setAllowNoJobs​(boolean allowNoJobs)
        Whether to ignore if a wildcard expression matches no jobs. This includes _all string or when no jobs have been specified
        Parameters:
        allowNoJobs - When true ignore if wildcard or _all matches no jobs. Defaults to true
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object