|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.job.executor.JobExecutor
public class JobExecutor
| Field Summary | |
|---|---|
protected int |
historyMaxSize
Deprecated. this field was never used |
protected static java.lang.String |
hostName
|
protected int |
idleInterval
|
protected boolean |
isStarted
|
protected JbpmConfiguration |
jbpmConfiguration
|
protected int |
lockBufferTime
|
protected int |
lockMonitorInterval
|
protected LockMonitorThread |
lockMonitorThread
|
protected int |
maxIdleInterval
|
protected int |
maxLockTime
|
protected java.util.Map |
monitoredJobIds
|
protected java.lang.String |
name
|
protected int |
nbrOfThreads
|
protected java.util.Map |
threads
|
| Constructor Summary | |
|---|---|
JobExecutor()
|
|
| Method Summary | |
|---|---|
void |
addMonitoredJobId(java.lang.String threadName,
long jobId)
|
protected java.lang.Thread |
createThread(java.lang.String threadName)
|
void |
ensureThreadsAreActive()
|
int |
getHistoryMaxSize()
Deprecated. this property was never used |
int |
getIdleInterval()
|
JbpmConfiguration |
getJbpmConfiguration()
|
protected java.lang.String |
getLastThreadName()
|
int |
getLockBufferTime()
|
int |
getLockMonitorInterval()
|
int |
getMaxIdleInterval()
|
int |
getMaxLockTime()
|
java.util.Set |
getMonitoredJobIds()
|
java.lang.String |
getName()
|
int |
getNbrOfThreads()
|
protected java.lang.String |
getNextThreadName()
|
int |
getSize()
Deprecated. Replaced by getNbrOfThreads() |
java.util.Map |
getThreads()
|
boolean |
isStarted()
Tells whether this job executor has been started. |
void |
removeMonitoredJobId(java.lang.String threadName)
|
void |
setHistoryMaxSize(int historyMaxSize)
Deprecated. this property was never used |
void |
setIdleInterval(int idleInterval)
|
void |
setJbpmConfiguration(JbpmConfiguration jbpmConfiguration)
|
void |
setLockBufferTime(int lockBufferTime)
|
void |
setLockMonitorInterval(int lockMonitorInterval)
|
void |
setMaxIdleInterval(int maxIdleInterval)
|
void |
setMaxLockTime(int maxLockTime)
|
void |
setMonitoredJobIds(java.util.Map monitoredJobIds)
Deprecated. monitoredJobIds is an internal control field |
void |
setName(java.lang.String name)
|
void |
setNbrOfThreads(int nbrOfThreads)
|
void |
setSize(int nbrOfThreads)
Deprecated. Replaced by setNbrOfThreads(int) |
void |
setStarted(boolean isStarted)
Deprecated. isStarted is an internal control field |
void |
setThreads(java.util.Map threads)
Deprecated. threads is an internal control field |
void |
start()
|
protected void |
startThread()
|
protected void |
startThread(java.lang.String threadName)
|
java.util.List |
stop()
signals to all threads in this job executor to stop. |
void |
stopAndJoin()
|
protected java.lang.Thread |
stopThread()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JbpmConfiguration jbpmConfiguration
protected java.lang.String name
protected int nbrOfThreads
protected int idleInterval
protected int maxIdleInterval
protected int historyMaxSize
protected int maxLockTime
protected int lockMonitorInterval
protected int lockBufferTime
protected java.util.Map threads
protected LockMonitorThread lockMonitorThread
protected java.util.Map monitoredJobIds
protected boolean isStarted
protected static java.lang.String hostName
| Constructor Detail |
|---|
public JobExecutor()
| Method Detail |
|---|
public void start()
public java.util.List stop()
stopAndJoin() in case you want a method
that blocks until all the threads are actually finished.
public void stopAndJoin()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void ensureThreadsAreActive()
protected void startThread()
protected void startThread(java.lang.String threadName)
protected java.lang.Thread createThread(java.lang.String threadName)
protected java.lang.String getNextThreadName()
protected java.lang.String getLastThreadName()
protected java.lang.Thread stopThread()
public java.util.Set getMonitoredJobIds()
public void addMonitoredJobId(java.lang.String threadName,
long jobId)
public void removeMonitoredJobId(java.lang.String threadName)
public void setMonitoredJobIds(java.util.Map monitoredJobIds)
monitoredJobIds is an internal control field
java.lang.UnsupportedOperationException - to prevent invocationpublic int getHistoryMaxSize()
public void setHistoryMaxSize(int historyMaxSize)
public int getIdleInterval()
public void setIdleInterval(int idleInterval)
public boolean isStarted()
public void setStarted(boolean isStarted)
isStarted is an internal control field
java.lang.UnsupportedOperationException - to prevent invocationpublic JbpmConfiguration getJbpmConfiguration()
public void setJbpmConfiguration(JbpmConfiguration jbpmConfiguration)
public int getMaxIdleInterval()
public void setMaxIdleInterval(int maxIdleInterval)
public java.lang.String getName()
public void setName(java.lang.String name)
public int getSize()
getNbrOfThreads()
public void setSize(int nbrOfThreads)
setNbrOfThreads(int)
public java.util.Map getThreads()
public void setThreads(java.util.Map threads)
threads is an internal control field
java.lang.UnsupportedOperationException - to prevent invocationpublic int getMaxLockTime()
public void setMaxLockTime(int maxLockTime)
public int getLockBufferTime()
public void setLockBufferTime(int lockBufferTime)
public int getLockMonitorInterval()
public void setLockMonitorInterval(int lockMonitorInterval)
public int getNbrOfThreads()
public void setNbrOfThreads(int nbrOfThreads)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||