|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.orchestra.pvm.internal.job.JobImpl<T>
public abstract class JobImpl<T>
| Nested Class Summary | |
|---|---|
static class |
JobImpl.JobException
|
| Field Summary | |
|---|---|
protected Descriptor |
commandDescriptor
a command that can be used as the behaviour of this job |
protected long |
dbid
|
protected int |
dbversion
|
protected long |
delay
|
protected 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 JobImpl.JobException |
exception
stack trace of the exception that occurred during command execution. |
protected ExecutionImpl |
execution
the execution (if any) for this jobImpl |
protected boolean |
isDefaultRetries
|
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 Date |
lockExpirationTime
the time the lock on this jobImpl expires. |
protected String |
lockOwner
name of the jobImpl executor name that has locked this jobImpl. |
protected int |
priority
|
protected ExecutionImpl |
processInstance
the process instance |
protected int |
retries
number of attempts left to try. |
| Constructor Summary | |
|---|---|
JobImpl()
|
|
| Method Summary | |
|---|---|
Descriptor |
getCommandDescriptor()
|
long |
getDbid()
|
int |
getDbversion()
|
long |
getDelay()
|
Date |
getDueDate()
|
String |
getException()
|
ExecutionImpl |
getExecution()
|
Date |
getLockExpirationTime()
|
String |
getLockOwner()
|
int |
getPriority()
|
ExecutionImpl |
getProcessInstance()
|
int |
getRetries()
|
boolean |
isDefaultRetries()
|
boolean |
isExclusive()
|
boolean |
isSuspended()
|
void |
setCommandDescriptor(Descriptor commandDescriptor)
|
void |
setDbid(long id)
|
void |
setDelay(long delay)
|
void |
setDueDate(Date dueDate)
|
void |
setException(String exception)
|
void |
setExclusive(boolean isExclusive)
|
void |
setExecution(ExecutionImpl execution)
|
void |
setLockExpirationTime(Date lockExpirationTime)
|
void |
setLockOwner(String jobExecutorName)
|
void |
setPriority(int priority)
|
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.orchestra.pvm.internal.cmd.Command |
|---|
execute |
| Field Detail |
|---|
protected long dbid
protected int dbversion
protected int priority
protected Date dueDate
protected boolean isSuspended
protected ExecutionImpl execution
protected ExecutionImpl processInstance
protected boolean isExclusive
protected String lockOwner
protected Date lockExpirationTime
protected JobImpl.JobException exception
protected int retries
protected boolean isDefaultRetries
protected long delay
protected Descriptor commandDescriptor
| Constructor Detail |
|---|
public JobImpl()
| Method Detail |
|---|
public void setExecution(ExecutionImpl execution)
public long getDbid()
getDbid in interface Jobpublic void setDbid(long id)
public int getDbversion()
public String getLockOwner()
getLockOwner in interface Jobpublic boolean isSuspended()
isSuspended in interface Jobpublic Date getDueDate()
getDueDate in interface Jobpublic void setDueDate(Date dueDate)
public 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 setException(String exception)
public void setExclusive(boolean isExclusive)
public void setLockOwner(String jobExecutorName)
public void setRetries(int retries)
public void setSuspended(boolean isSuspended)
public ExecutionImpl getProcessInstance()
getProcessInstance in interface Jobpublic Date getLockExpirationTime()
getLockExpirationTime in interface Jobpublic void setLockExpirationTime(Date lockExpirationTime)
public Descriptor getCommandDescriptor()
public void setCommandDescriptor(Descriptor commandDescriptor)
public boolean isDefaultRetries()
public long getDelay()
public void setDelay(long delay)
delay - the delay to setpublic int getPriority()
getPriority in interface Jobpublic void setPriority(int priority)
priority - the priority to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||