|
||||||||||
| 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. property has no effect |
protected static java.lang.String |
hostName
Deprecated. this field was just an aid for generating thread names |
protected int |
idleInterval
|
protected boolean |
isStarted
|
protected JbpmConfiguration |
jbpmConfiguration
|
protected int |
lockBufferTime
Deprecated. property has no effect |
protected int |
lockMonitorInterval
|
protected LockMonitorThread |
lockMonitorThread
Deprecated. call getThreads() instead |
protected int |
maxIdleInterval
|
protected int |
maxLockTime
|
protected java.util.Map |
monitoredJobIds
|
protected java.lang.String |
name
|
protected int |
nbrOfThreads
|
protected java.util.Map |
threads
Deprecated. call getThreads() instead |
| 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. property has no effect |
int |
getIdleInterval()
|
JbpmConfiguration |
getJbpmConfiguration()
|
protected java.lang.String |
getLastThreadName()
|
int |
getLockBufferTime()
Deprecated. property has no effect |
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. property has no effect |
void |
setIdleInterval(int idleInterval)
|
void |
setJbpmConfiguration(JbpmConfiguration jbpmConfiguration)
|
void |
setLockBufferTime(int lockBufferTime)
Deprecated. property has no effect |
void |
setLockMonitorInterval(int lockMonitorInterval)
|
void |
setMaxIdleInterval(int maxIdleInterval)
|
void |
setMaxLockTime(int maxLockTime)
|
void |
setMonitoredJobIds(java.util.Map monitoredJobIds)
Deprecated. call addMonitoredJobId(String, long) or
removeMonitoredJobId(String) to manipulate the set of monitored jobs |
void |
setName(java.lang.String name)
|
void |
setNbrOfThreads(int nbrOfThreads)
|
void |
setSize(int nbrOfThreads)
Deprecated. replaced by setNbrOfThreads(int) |
void |
setStarted(boolean isStarted)
Deprecated. call start() or stop() to control this job executor. |
void |
setThreads(java.util.Map threads)
Deprecated. this job executor manages its own thread pool |
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()
Deprecated. |
| 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
getThreads() insteadprotected LockMonitorThread lockMonitorThread
getThreads() insteadprotected 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)
addMonitoredJobId(String, long) or
removeMonitoredJobId(String) to manipulate the set of monitored jobs
public int getHistoryMaxSize()
public void setHistoryMaxSize(int historyMaxSize)
public int getIdleInterval()
public void setIdleInterval(int idleInterval)
public boolean isStarted()
public void setStarted(boolean isStarted)
start() or stop() to control this job executor.
public 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)
public 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 | |||||||||