Class SimpleJobExplorer

    • Method Detail

      • findRunningJobExecutions

        public java.util.Set<JobExecution> findRunningJobExecutions​(java.lang.String jobName)
        Description copied from interface: JobExplorer
        Retrieve running job executions. The corresponding step executions may not be fully hydrated (e.g. their execution context may be missing), depending on the implementation. Use JobExplorer.getStepExecution(Long, Long) to hydrate them in that case.
        Specified by:
        findRunningJobExecutions in interface JobExplorer
        Parameters:
        jobName - the name of the job
        Returns:
        the set of running executions for jobs with the specified name
      • getStepExecution

        public StepExecution getStepExecution​(java.lang.Long jobExecutionId,
                                              java.lang.Long executionId)
        Description copied from interface: JobExplorer
        Retrieve a StepExecution by its id and parent JobExecution id. The execution context for the step should be available in the result, and the parent job execution should have its primitive properties, but may not contain the job instance information.
        Specified by:
        getStepExecution in interface JobExplorer
        Parameters:
        jobExecutionId - the parent job execution id
        executionId - the step execution id
        Returns:
        the StepExecution with this id, or null if not found
        See Also:
        JobExplorer.getJobExecution(Long)
      • getJobInstance

        public JobInstance getJobInstance​(@Nullable
                                          java.lang.Long instanceId)
        Specified by:
        getJobInstance in interface JobExplorer
        Parameters:
        instanceId - Long id for the jobInstance to obtain.
        Returns:
        the JobInstance with this id, or null
      • getJobInstances

        public java.util.List<JobInstance> getJobInstances​(java.lang.String jobName,
                                                           int start,
                                                           int count)
        Description copied from interface: JobExplorer
        Fetch JobInstance values in descending order of creation (and therefore usually of first execution).
        Specified by:
        getJobInstances in interface JobExplorer
        Parameters:
        jobName - the name of the job to query
        start - the start index of the instances to return
        count - the maximum number of instances to return
        Returns:
        the JobInstance values up to a maximum of count values
      • getJobNames

        public java.util.List<java.lang.String> getJobNames()
        Description copied from interface: JobExplorer
        Query the repository for all unique JobInstance names (sorted alphabetically).
        Specified by:
        getJobNames in interface JobExplorer
        Returns:
        the set of job names that have been executed
      • findJobInstancesByJobName

        public java.util.List<JobInstance> findJobInstancesByJobName​(java.lang.String jobName,
                                                                     int start,
                                                                     int count)
        Description copied from interface: JobExplorer
        Fetch JobInstance values in descending order of creation (and there for usually of first execution) with a 'like'/wildcard criteria.
        Specified by:
        findJobInstancesByJobName in interface JobExplorer
        Parameters:
        jobName - the name of the job to query for.
        start - the start index of the instances to return.
        count - the maximum number of instances to return.
        Returns:
        a list of JobInstance for the job name requested.