|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.orchestra.pvm.internal.jobexecutor.AbstractJobExecutor
org.ow2.orchestra.pvm.internal.jobexecutor.jdk.JdkJobExecutor
public class JdkJobExecutor
Implementation of the JobExecutor which uses java ExecutorService
to execute the jobs.
| Field Summary |
|---|
| Fields inherited from class org.ow2.orchestra.pvm.internal.jobexecutor.AbstractJobExecutor |
|---|
acquireJobsCommand, commandService, deadJobHandler, idleMillis, isActive, limitSameInstanceJobs, lockMillis, name, nextDueDateCommand |
| Constructor Summary | |
|---|---|
JdkJobExecutor()
|
|
| Method Summary | |
|---|---|
protected int |
getAcquireJobSize()
|
JdkDispatcherThread |
getDispatcherThread()
|
java.util.concurrent.ExecutorService |
getExecutorService()
|
void |
start()
starts the JdkDispatcherThread and ExecutorServices |
void |
stop()
stops with join set to false. |
void |
stop(boolean join)
signals to all threads managed by this jobImpl executor to stop. |
protected void |
waitTillQueueEmpty()
|
| Methods inherited from class org.ow2.orchestra.pvm.internal.jobexecutor.AbstractJobExecutor |
|---|
getAcquireJobsCommand, getCommandExecutor, getDeadJobHandler, getHostName, getIdleMillis, getLockMillis, getName, getNextDueDateCommand, isActive, isLimitSameInstanceJobs, jobWasAdded, setCommandExecutor, setDeadJobHandler, setIdleInterval, setLimitSameInstanceJobs, setMaxLockTime, setName |
| 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.jobexecutor.JobExecutor |
|---|
getDeadJobHandler, getName, isActive, jobWasAdded |
| Constructor Detail |
|---|
public JdkJobExecutor()
| Method Detail |
|---|
public void start()
JdkDispatcherThread and ExecutorServices
start in interface JobExecutorstart in class AbstractJobExecutorpublic void stop()
JobExecutor
stop in interface JobExecutorstop in class AbstractJobExecutorJobExecutor.stop(boolean)public void stop(boolean join)
JobExecutor
stop in interface JobExecutorstop in class AbstractJobExecutorprotected void waitTillQueueEmpty()
public JdkDispatcherThread getDispatcherThread()
getDispatcherThread in class AbstractJobExecutorprotected int getAcquireJobSize()
getAcquireJobSize in class AbstractJobExecutorpublic java.util.concurrent.ExecutorService getExecutorService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||