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()
Entity
getPersistentState
in interface Entity
public void setExecution(ExecutionEntity execution)
setExecution
in interface JobEntity
public String getExceptionStacktrace()
getExceptionStacktrace
in interface JobEntity
public void setExceptionStacktrace(String exception)
setExceptionStacktrace
in interface JobEntity
public int getRevisionNext()
getRevisionNext
in interface HasRevision
public String getId()
Job
public int getRevision()
getRevision
in interface HasRevision
public void setRevision(int revision)
setRevision
in interface HasRevision
public Date getDuedate()
Job
getDuedate
in interface Job
public void setDuedate(Date duedate)
setDuedate
in interface JobEntity
public String getExecutionId()
Job
getExecutionId
in interface Job
public void setExecutionId(String executionId)
setExecutionId
in interface JobEntity
public int getRetries()
Job
getRetries
in interface Job
public void setRetries(int retries)
setRetries
in interface JobEntity
public String getLockOwner()
getLockOwner
in interface JobEntity
public void setLockOwner(String claimedBy)
setLockOwner
in interface JobEntity
public Date getLockExpirationTime()
getLockExpirationTime
in interface JobEntity
public void setLockExpirationTime(Date claimedUntil)
setLockExpirationTime
in interface JobEntity
public String getProcessInstanceId()
Job
getProcessInstanceId
in interface Job
public void setProcessInstanceId(String processInstanceId)
setProcessInstanceId
in interface JobEntity
public boolean isExclusive()
isExclusive
in interface JobEntity
public void setExclusive(boolean isExclusive)
setExclusive
in interface JobEntity
public String getProcessDefinitionId()
Job
getProcessDefinitionId
in interface Job
public void setProcessDefinitionId(String processDefinitionId)
setProcessDefinitionId
in interface JobEntity
public String getJobHandlerType()
getJobHandlerType
in interface JobEntity
public void setJobHandlerType(String jobHandlerType)
setJobHandlerType
in interface JobEntity
public String getJobHandlerConfiguration()
getJobHandlerConfiguration
in interface JobEntity
public void setJobHandlerConfiguration(String jobHandlerConfiguration)
setJobHandlerConfiguration
in interface JobEntity
public String getExceptionMessage()
Job
ManagementService.getJobExceptionStacktrace(String)
getExceptionMessage
in interface Job
public void setExceptionMessage(String exceptionMessage)
setExceptionMessage
in interface JobEntity
public String getJobType()
getJobType
in interface JobEntity
public void setJobType(String jobType)
setJobType
in interface JobEntity
public String getTenantId()
Job
getTenantId
in interface Job
public void setTenantId(String tenantId)
setTenantId
in interface JobEntity
public ByteArrayRef getExceptionByteArrayRef()
getExceptionByteArrayRef
in interface JobEntity
Copyright © 2015 Alfresco. All rights reserved.