Interface JobOperator



  • public interface JobOperator
    JobOperator provide the interface for operating on batch jobs. Through the JobOperator a program can start, stop, and restart jobs. It can additionally inspect job history, to discover what jobs are currently running and what jobs have previously run. The JobOperator interface imposes no security constraints. However, the implementer is free to limit JobOperator methods with a security scheme of its choice. The implementer should terminate any method that is limited by the security scheme with a JobSecurityException.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void abandon​(long executionId)
      Set batch status to ABANDONED.
      JobExecution getJobExecution​(long executionId)
      Return job execution for specified execution id
      java.util.List<JobExecution> getJobExecutions​(JobInstance instance)
      Return all job executions belonging to the specified job instance.
      JobInstance getJobInstance​(long executionId)
      Return the job instance for the specified execution id.
      int getJobInstanceCount​(java.lang.String jobName)
      Returns number of instances of a job with a particular name.
      java.util.List<JobInstance> getJobInstances​(java.lang.String jobName, int start, int count)
      Returns all JobInstances belonging to a job with a particular name in reverse chronological order.
      java.util.Set<java.lang.String> getJobNames​()
      Returns a set of all job names known to the batch runtime.
      java.util.Properties getParameters​(long executionId)
      Returns job parameters for a specified job instance.
      java.util.List<java.lang.Long> getRunningExecutions​(java.lang.String jobName)
      Returns execution ids for job instances with the specified name that have running executions.
      java.util.List<StepExecution> getStepExecutions​(long jobExecutionId)
      Return StepExecutions for specified execution id.
      long restart​(long executionId, java.util.Properties restartParameters)
      Restarts a failed or stopped job instance.
      long start​(java.lang.String jobXMLName, java.util.Properties jobParameters)
      Creates a new job instance and starts the first execution of that instance.
      void stop​(long executionId)
      Request a running job execution stops.