org.activiti.engine.impl.persistence.entity
类 JobEntity

java.lang.Object
  继承者 org.activiti.engine.impl.persistence.entity.JobEntity
所有已实现的接口:
Serializable, HasRevision, PersistentObject, Job
直接已知子类:
MessageEntity, TimerEntity

public abstract class JobEntity
extends Object
implements Serializable, Job, PersistentObject, HasRevision

Stub of the common parts of a Job. You will normally work with a subclass of JobEntity, such as TimerEntity or MessageEntity.

作者:
Tom Baeyens, Nick Burch, Dave Syer, Frederik Heremans
另请参见:
序列化表格

字段摘要
static boolean DEFAULT_EXCLUSIVE
           
static int DEFAULT_RETRIES
           
protected  Date duedate
           
protected  ByteArrayRef exceptionByteArrayRef
           
protected  String exceptionMessage
           
protected  String executionId
           
protected  String id
           
protected  boolean isExclusive
           
protected  String jobHandlerConfiguration
           
protected  String jobHandlerType
           
protected  Date lockExpirationTime
           
protected  String lockOwner
           
protected  String processDefinitionId
           
protected  String processInstanceId
           
protected  int retries
           
protected  int revision
           
 
构造方法摘要
JobEntity()
           
 
方法摘要
 void delete()
           
 void execute(CommandContext commandContext)
           
 Date getDuedate()
          Returns the date on which this job is supposed to be processed.
 String getExceptionMessage()
          Returns the message of the exception that occurred, the last time the job was executed.
 String getExceptionStacktrace()
           
 String getExecutionId()
          Returns the specific execution on which the job was created.
 String getId()
          Returns the unique identifier for this job.
 String getJobHandlerConfiguration()
           
 String getJobHandlerType()
           
 Date getLockExpirationTime()
           
 String getLockOwner()
           
 Object getPersistentState()
          Returns a representation of the object, as would be stored in the database.
 String getProcessDefinitionId()
          Returns the specific process definition on which the job was created
 String getProcessInstanceId()
          Returns the id of the process instance which execution created the job.
 int getRetries()
          Returns the number of retries this job has left.
 int getRevision()
           
 int getRevisionNext()
           
 void insert()
           
 boolean isExclusive()
           
 void setDuedate(Date duedate)
           
 void setExceptionMessage(String exceptionMessage)
           
 void setExceptionStacktrace(String exception)
           
 void setExclusive(boolean isExclusive)
           
 void setExecution(ExecutionEntity execution)
           
 void setExecutionId(String executionId)
           
 void setId(String id)
           
 void setJobHandlerConfiguration(String jobHandlerConfiguration)
           
 void setJobHandlerType(String jobHandlerType)
           
 void setLockExpirationTime(Date claimedUntil)
           
 void setLockOwner(String claimedBy)
           
 void setProcessDefinitionId(String processDefinitionId)
           
 void setProcessInstanceId(String processInstanceId)
           
 void setRetries(int retries)
           
 void setRevision(int revision)
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

DEFAULT_EXCLUSIVE

public static final boolean DEFAULT_EXCLUSIVE
另请参见:
常量字段值

DEFAULT_RETRIES

public static final int DEFAULT_RETRIES
另请参见:
常量字段值

id

protected String id

revision

protected int revision

duedate

protected Date duedate

lockOwner

protected String lockOwner

lockExpirationTime

protected Date lockExpirationTime

executionId

protected String executionId

processInstanceId

protected String processInstanceId

processDefinitionId

protected String processDefinitionId

isExclusive

protected boolean isExclusive

retries

protected int retries

jobHandlerType

protected String jobHandlerType

jobHandlerConfiguration

protected String jobHandlerConfiguration

exceptionByteArrayRef

protected final ByteArrayRef exceptionByteArrayRef

exceptionMessage

protected String exceptionMessage
构造方法详细信息

JobEntity

public JobEntity()
方法详细信息

execute

public void execute(CommandContext commandContext)

insert

public void insert()

delete

public void delete()

setExecution

public void setExecution(ExecutionEntity execution)

getExceptionStacktrace

public String getExceptionStacktrace()

setExceptionStacktrace

public void setExceptionStacktrace(String exception)

getPersistentState

public Object getPersistentState()
从接口 PersistentObject 复制的描述
Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.

指定者:
接口 PersistentObject 中的 getPersistentState

getRevisionNext

public int getRevisionNext()
指定者:
接口 HasRevision 中的 getRevisionNext

getId

public String getId()
从接口 Job 复制的描述
Returns the unique identifier for this job.

指定者:
接口 PersistentObject 中的 getId
指定者:
接口 Job 中的 getId

setId

public void setId(String id)
指定者:
接口 PersistentObject 中的 setId

getRevision

public int getRevision()
指定者:
接口 HasRevision 中的 getRevision

setRevision

public void setRevision(int revision)
指定者:
接口 HasRevision 中的 setRevision

getDuedate

public Date getDuedate()
从接口 Job 复制的描述
Returns the date on which this job is supposed to be processed.

指定者:
接口 Job 中的 getDuedate

setDuedate

public void setDuedate(Date duedate)

getExecutionId

public String getExecutionId()
从接口 Job 复制的描述
Returns the specific execution on which the job was created.

指定者:
接口 Job 中的 getExecutionId

setExecutionId

public void setExecutionId(String executionId)

getRetries

public int getRetries()
从接口 Job 复制的描述
Returns the number of retries this job has left. Whenever the jobexecutor fails to execute the job, this value is decremented. When it hits zero, the job is supposed to be dead and not retried again (ie a manual retry is required then).

指定者:
接口 Job 中的 getRetries

setRetries

public void setRetries(int retries)

getLockOwner

public String getLockOwner()

setLockOwner

public void setLockOwner(String claimedBy)

getLockExpirationTime

public Date getLockExpirationTime()

setLockExpirationTime

public void setLockExpirationTime(Date claimedUntil)

getProcessInstanceId

public String getProcessInstanceId()
从接口 Job 复制的描述
Returns the id of the process instance which execution created the job.

指定者:
接口 Job 中的 getProcessInstanceId

setProcessInstanceId

public void setProcessInstanceId(String processInstanceId)

isExclusive

public boolean isExclusive()

setExclusive

public void setExclusive(boolean isExclusive)

getProcessDefinitionId

public String getProcessDefinitionId()
从接口 Job 复制的描述
Returns the specific process definition on which the job was created

指定者:
接口 Job 中的 getProcessDefinitionId

setProcessDefinitionId

public void setProcessDefinitionId(String processDefinitionId)

getJobHandlerType

public String getJobHandlerType()

setJobHandlerType

public void setJobHandlerType(String jobHandlerType)

getJobHandlerConfiguration

public String getJobHandlerConfiguration()

setJobHandlerConfiguration

public void setJobHandlerConfiguration(String jobHandlerConfiguration)

getExceptionMessage

public String getExceptionMessage()
从接口 Job 复制的描述
Returns the message of the exception that occurred, the last time the job was executed. Returns null when no exception occurred. To get the full exception stacktrace, use ManagementService.getJobExceptionStacktrace(String)

指定者:
接口 Job 中的 getExceptionMessage

setExceptionMessage

public void setExceptionMessage(String exceptionMessage)

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2013 Alfresco. All rights reserved.