类 JobInstance

  • 所有已实现的接口:
    java.io.Serializable, javax.batch.runtime.JobInstance

    public class JobInstance
    extends Entity
    implements javax.batch.runtime.JobInstance
    Batch domain object representing a uniquely identifiable job run. JobInstance can be restarted multiple times in case of execution failure and it's lifecycle ends with first successful execution. Trying to execute an existing JobInstance that has already completed successfully will result in error. Error will be raised also for an attempt to restart a failed JobInstance if the Job is not restartable.
    作者:
    Lucas Ward, Dave Syer, Robert Kasanicky, Michael Minella, Mahmoud Ben Hassine
    另请参阅:
    Job, JobParameters, JobExecution, JobInstance, 序列化表格
    • 构造器详细资料

      • JobInstance

        public JobInstance​(java.lang.Long id,
                           java.lang.String jobName)
    • 方法详细资料

      • getJobName

        public java.lang.String getJobName()
        指定者:
        getJobName 在接口中 javax.batch.runtime.JobInstance
        返回:
        the job name. (Equivalent to getJob().getName())
      • getInstanceId

        public long getInstanceId()
        指定者:
        getInstanceId 在接口中 javax.batch.runtime.JobInstance