|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.pvm.internal.job.JobImpl
public abstract class JobImpl
| Field Summary | |
|---|---|
protected Descriptor |
commandDescriptor
a command that can be used as the behaviour of this job |
protected java.lang.Object |
configuration
|
protected Lob |
configurationBytes
|
protected long |
dbid
|
protected int |
dbversion
|
protected java.util.Date |
dueDate
date until which the command should not be executed for async messages, this due date should be set to null. |
protected java.lang.String |
exception
stack trace of the exception that occurred during command execution. |
protected ExecutionImpl |
execution
the execution (if any) for this job |
protected boolean |
isExclusive
specifies if this jobImpl can be executed concurrently with other jobs for the same execution. |
protected java.util.Date |
lockExpirationTime
the time the lock on this jobImpl expires. |
protected java.lang.String |
lockOwner
name of the jobImpl executor name that has locked this jobImpl. |
protected ExecutionImpl |
processInstance
the process instance |
protected int |
retries
number of attempts left to try. |
protected java.lang.String |
state
job state. |
static java.lang.String |
STATE_ACQUIRED
|
static java.lang.String |
STATE_ERROR
|
static java.lang.String |
STATE_SUSPENDED
|
static java.lang.String |
STATE_WAITING
|
| Constructor Summary | |
|---|---|
JobImpl()
|
|
| Method Summary | |
|---|---|
void |
acquire(java.lang.String lockOwner,
java.util.Date lockExpirationTime)
|
Descriptor |
getCommandDescriptor()
|
java.lang.Object |
getConfiguration()
|
long |
getDbid()
|
java.util.Date |
getDuedate()
Deprecated. |
java.util.Date |
getDueDate()
|
java.lang.String |
getException()
|
ExecutionImpl |
getExecution()
|
java.lang.String |
getId()
|
java.util.Date |
getLockExpirationTime()
|
java.lang.String |
getLockOwner()
|
ExecutionImpl |
getProcessInstance()
|
int |
getRetries()
|
boolean |
isExclusive()
|
void |
release()
|
void |
resume()
|
void |
setCommandDescriptor(Descriptor commandDescriptor)
|
void |
setConfiguration(java.lang.Object configuration)
|
void |
setDbid(long id)
|
void |
setDuedate(java.util.Date duedate)
Deprecated. call setDueDate(Date) instead |
void |
setDueDate(java.util.Date dueDate)
|
void |
setException(java.lang.String exception)
|
void |
setExclusive(boolean isExclusive)
|
void |
setExecution(ExecutionImpl execution)
|
void |
setLockExpirationTime(java.util.Date lockExpirationTime)
|
void |
setLockOwner(java.lang.String jobExecutorName)
|
void |
setRetries(int retries)
|
void |
suspend()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jbpm.api.cmd.Command |
|---|
execute |
| Field Detail |
|---|
public static final java.lang.String STATE_WAITING
public static final java.lang.String STATE_ACQUIRED
public static final java.lang.String STATE_ERROR
public static final java.lang.String STATE_SUSPENDED
protected long dbid
protected int dbversion
protected java.util.Date dueDate
protected java.lang.String state
protected ExecutionImpl execution
protected ExecutionImpl processInstance
protected boolean isExclusive
protected java.lang.String lockOwner
protected java.util.Date lockExpirationTime
protected java.lang.String exception
protected int retries
protected Lob configurationBytes
protected java.lang.Object configuration
protected Descriptor commandDescriptor
| Constructor Detail |
|---|
public JobImpl()
| Method Detail |
|---|
public void setExecution(ExecutionImpl execution)
public void acquire(java.lang.String lockOwner,
java.util.Date lockExpirationTime)
public void release()
public void setRetries(int retries)
public void suspend()
public void resume()
public java.lang.Object getConfiguration()
public void setConfiguration(java.lang.Object configuration)
public java.lang.String getId()
getId in interface Jobpublic long getDbid()
public void setDbid(long id)
public java.lang.String getLockOwner()
getLockOwner in interface Jobpublic java.util.Date getDueDate()
getDueDate in interface Jobpublic void setDueDate(java.util.Date dueDate)
@Deprecated public java.util.Date getDuedate()
getDuedate in interface Job@Deprecated public void setDuedate(java.util.Date duedate)
setDueDate(Date) instead
public java.lang.String getException()
getException in interface Jobpublic int getRetries()
getRetries in interface Jobpublic boolean isExclusive()
isExclusive in interface Jobpublic ExecutionImpl getExecution()
getExecution in interface Jobpublic void setExclusive(boolean isExclusive)
public void setLockOwner(java.lang.String jobExecutorName)
public ExecutionImpl getProcessInstance()
getProcessInstance in interface Jobpublic void setException(java.lang.String exception)
public java.util.Date getLockExpirationTime()
getLockExpirationTime in interface Jobpublic void setLockExpirationTime(java.util.Date lockExpirationTime)
public Descriptor getCommandDescriptor()
public void setCommandDescriptor(Descriptor commandDescriptor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||