类 JobInstance
- java.lang.Object
- org.springframework.batch.core.Entity
- org.springframework.batch.core.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(java.lang.Long id, java.lang.String jobName)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 long
getInstanceId()
java.lang.String
getJobName()
java.lang.String
toString()
从类继承的方法 org.springframework.batch.core.Entity
equals, getId, getVersion, hashCode, incrementVersion, setId, setVersion
构造器详细资料
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