public abstract class JobEntityImpl extends Object implements JobEntity, BulkDeleteable, Serializable
TimerEntity or MessageEntity.| Modifier and Type | Field and Description |
|---|---|
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 String |
jobType |
protected Date |
lockExpirationTime |
protected String |
lockOwner |
protected String |
processDefinitionId |
protected String |
processInstanceId |
protected int |
retries |
protected int |
revision |
protected String |
tenantId |
DEFAULT_EXCLUSIVE, DEFAULT_RETRIES, MAX_EXCEPTION_MESSAGE_LENGTH| Constructor and Description |
|---|
JobEntityImpl() |
| Modifier and Type | Method and Description |
|---|---|
Date |
getDuedate()
Returns the date on which this job is supposed to be processed.
|
ByteArrayRef |
getExceptionByteArrayRef() |
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() |
String |
getJobType() |
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() |
String |
getTenantId()
Get the tenant identifier for this job.
|
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 |
setJobType(String jobType) |
void |
setLockExpirationTime(Date claimedUntil) |
void |
setLockOwner(String claimedBy) |
void |
setProcessDefinitionId(String processDefinitionId) |
void |
setProcessInstanceId(String processInstanceId) |
void |
setRetries(int retries) |
void |
setRevision(int revision) |
void |
setTenantId(String tenantId) |
String |
toString() |
protected String id
protected int revision
protected Date duedate
protected String lockOwner
protected Date lockExpirationTime
protected String executionId
protected String processInstanceId
protected String processDefinitionId
protected boolean isExclusive
protected int retries
protected String jobHandlerType
protected String jobHandlerConfiguration
protected final ByteArrayRef exceptionByteArrayRef
protected String exceptionMessage
protected String tenantId
protected String jobType
public Object getPersistentState()
EntitygetPersistentState in interface Entitypublic void setExecution(ExecutionEntity execution)
setExecution in interface JobEntitypublic String getExceptionStacktrace()
getExceptionStacktrace in interface JobEntitypublic void setExceptionStacktrace(String exception)
setExceptionStacktrace in interface JobEntitypublic int getRevisionNext()
getRevisionNext in interface HasRevisionpublic String getId()
Jobpublic int getRevision()
getRevision in interface HasRevisionpublic void setRevision(int revision)
setRevision in interface HasRevisionpublic Date getDuedate()
JobgetDuedate in interface Jobpublic void setDuedate(Date duedate)
setDuedate in interface JobEntitypublic String getExecutionId()
JobgetExecutionId in interface Jobpublic void setExecutionId(String executionId)
setExecutionId in interface JobEntitypublic int getRetries()
JobgetRetries in interface Jobpublic void setRetries(int retries)
setRetries in interface JobEntitypublic String getLockOwner()
getLockOwner in interface JobEntitypublic void setLockOwner(String claimedBy)
setLockOwner in interface JobEntitypublic Date getLockExpirationTime()
getLockExpirationTime in interface JobEntitypublic void setLockExpirationTime(Date claimedUntil)
setLockExpirationTime in interface JobEntitypublic String getProcessInstanceId()
JobgetProcessInstanceId in interface Jobpublic void setProcessInstanceId(String processInstanceId)
setProcessInstanceId in interface JobEntitypublic boolean isExclusive()
isExclusive in interface JobEntitypublic void setExclusive(boolean isExclusive)
setExclusive in interface JobEntitypublic String getProcessDefinitionId()
JobgetProcessDefinitionId in interface Jobpublic void setProcessDefinitionId(String processDefinitionId)
setProcessDefinitionId in interface JobEntitypublic String getJobHandlerType()
getJobHandlerType in interface JobEntitypublic void setJobHandlerType(String jobHandlerType)
setJobHandlerType in interface JobEntitypublic String getJobHandlerConfiguration()
getJobHandlerConfiguration in interface JobEntitypublic void setJobHandlerConfiguration(String jobHandlerConfiguration)
setJobHandlerConfiguration in interface JobEntitypublic String getExceptionMessage()
JobManagementService.getJobExceptionStacktrace(String)getExceptionMessage in interface Jobpublic void setExceptionMessage(String exceptionMessage)
setExceptionMessage in interface JobEntitypublic String getJobType()
getJobType in interface JobEntitypublic void setJobType(String jobType)
setJobType in interface JobEntitypublic String getTenantId()
JobgetTenantId in interface Jobpublic void setTenantId(String tenantId)
setTenantId in interface JobEntitypublic ByteArrayRef getExceptionByteArrayRef()
getExceptionByteArrayRef in interface JobEntityCopyright © 2015 Alfresco. All rights reserved.