|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.bonita.pvm.internal.job.JobImpl<T>
public abstract class JobImpl<T>
Field Summary | |
---|---|
protected Descriptor |
commandDescriptor
a command that can be used as the behaviour of this job |
protected long |
dbid
|
protected int |
dbversion
|
protected java.util.Date |
dueDate
date until which the command should not be executed this date is set to the current time It should be modified only for timers Warning: if you modify this, be sure to wake the JobExecutor when the jobImpl is supposed to be executed |
protected java.lang.String |
exception
stack trace of the exception that occurred during command execution. |
protected ExecutionImpl |
execution
the execution (if any) for this jobImpl |
protected boolean |
isExclusive
specifies if this jobImpl can be executed concurrently with other jobs for the same execution. |
protected boolean |
isSuspended
suspended jobs will not execute. |
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. |
Constructor Summary | |
---|---|
JobImpl()
|
Method Summary | |
---|---|
Descriptor |
getCommandDescriptor()
|
long |
getDbid()
|
java.util.Date |
getDueDate()
|
java.lang.String |
getException()
|
ExecutionImpl |
getExecution()
|
java.util.Date |
getLockExpirationTime()
|
java.lang.String |
getLockOwner()
|
ExecutionImpl |
getProcessInstance()
|
int |
getRetries()
|
boolean |
isExclusive()
|
boolean |
isSuspended()
|
void |
setCommandDescriptor(Descriptor commandDescriptor)
|
void |
setDbid(long id)
|
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 |
setSuspended(boolean isSuspended)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ow2.bonita.pvm.internal.cmd.Command |
---|
execute |
Field Detail |
---|
protected long dbid
protected int dbversion
protected java.util.Date dueDate
protected boolean isSuspended
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 Descriptor commandDescriptor
Constructor Detail |
---|
public JobImpl()
Method Detail |
---|
public void setExecution(ExecutionImpl execution)
public long getDbid()
getDbid
in interface Job
public void setDbid(long id)
public java.lang.String getLockOwner()
getLockOwner
in interface Job
public boolean isSuspended()
isSuspended
in interface Job
public java.util.Date getDueDate()
getDueDate
in interface Job
public void setDueDate(java.util.Date dueDate)
public java.lang.String getException()
getException
in interface Job
public int getRetries()
getRetries
in interface Job
public boolean isExclusive()
isExclusive
in interface Job
public ExecutionImpl getExecution()
getExecution
in interface Job
public void setException(java.lang.String exception)
public void setExclusive(boolean isExclusive)
public void setLockOwner(java.lang.String jobExecutorName)
public void setRetries(int retries)
public void setSuspended(boolean isSuspended)
public ExecutionImpl getProcessInstance()
getProcessInstance
in interface Job
public java.util.Date getLockExpirationTime()
getLockExpirationTime
in interface Job
public 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 |