|
||||||||||
| 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 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 Map |
monitoredJobIds
|
protected String |
name
|
protected int |
nbrOfThreads
|
protected Map |
threads
Deprecated. call getThreads() instead |
| Constructor Summary | |
|---|---|
JobExecutor()
|
|
| Method Summary | |
|---|---|
void |
addMonitoredJobId(String threadName,
long jobId)
|
protected Thread |
createThread(String threadName)
|
void |
ensureThreadsAreActive()
|
int |
getHistoryMaxSize()
Deprecated. property has no effect |
int |
getIdleInterval()
|
JbpmConfiguration |
getJbpmConfiguration()
|
int |
getLockBufferTime()
Deprecated. property has no effect |
int |
getLockMonitorInterval()
|
int |
getMaxIdleInterval()
|
int |
getMaxLockTime()
|
Set |
getMonitoredJobIds()
|
String |
getName()
|
int |
getNbrOfThreads()
|
int |
getRetryInterval()
|
int |
getSize()
Deprecated. replaced by getNbrOfThreads() |
Map |
getThreads()
|
boolean |
isStarted()
Tells whether this job executor has been started. |
void |
removeMonitoredJobId(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(Map monitoredJobIds)
Deprecated. call addMonitoredJobId(String, long) or
removeMonitoredJobId(String) to manipulate the set of monitored jobs |
void |
setName(String name)
|
void |
setNbrOfThreads(int nbrOfThreads)
|
void |
setRetryInterval(int retryInterval)
|
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(Map threads)
Deprecated. this job executor manages its own thread pool |
void |
start()
Starts all the threads needed. |
protected void |
startThread(String threadName)
|
List |
stop()
tells all threads in this job executor to stop. |
void |
stopAndJoin()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JbpmConfiguration jbpmConfiguration
protected String name
protected int nbrOfThreads
protected int idleInterval
protected int maxIdleInterval
protected int maxLockTime
protected int lockMonitorInterval
protected Map monitoredJobIds
protected boolean isStarted
protected int historyMaxSize
protected int lockBufferTime
protected Map threads
getThreads() insteadprotected transient LockMonitorThread lockMonitorThread
getThreads() insteadprotected static String hostName
| Constructor Detail |
|---|
public JobExecutor()
| Method Detail |
|---|
public void start()
public List stop()
stopAndJoin() in case you want a method
that blocks until all the threads are actually finished.
public void stopAndJoin()
throws InterruptedException
InterruptedExceptionpublic void ensureThreadsAreActive()
protected void startThread(String threadName)
protected Thread createThread(String threadName)
public Set getMonitoredJobIds()
public void addMonitoredJobId(String threadName,
long jobId)
public void removeMonitoredJobId(String threadName)
public int getIdleInterval()
public void setIdleInterval(int idleInterval)
public boolean isStarted()
public JbpmConfiguration getJbpmConfiguration()
public void setJbpmConfiguration(JbpmConfiguration jbpmConfiguration)
public int getRetryInterval()
public void setRetryInterval(int retryInterval)
public int getMaxIdleInterval()
public void setMaxIdleInterval(int maxIdleInterval)
public String getName()
public void setName(String name)
public Map getThreads()
public int getMaxLockTime()
public void setMaxLockTime(int maxLockTime)
public int getLockMonitorInterval()
public void setLockMonitorInterval(int lockMonitorInterval)
public int getNbrOfThreads()
public void setNbrOfThreads(int nbrOfThreads)
public void setMonitoredJobIds(Map monitoredJobIds)
addMonitoredJobId(String, long) or
removeMonitoredJobId(String) to manipulate the set of monitored jobs
public int getHistoryMaxSize()
public void setHistoryMaxSize(int historyMaxSize)
public void setStarted(boolean isStarted)
start() or stop() to control this job executor.
public int getSize()
getNbrOfThreads()
public void setSize(int nbrOfThreads)
setNbrOfThreads(int)
public void setThreads(Map threads)
public int getLockBufferTime()
public void setLockBufferTime(int lockBufferTime)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||