org.ow2.orchestra.pvm.internal.jobexecutor.pvm
Class PvmJobExecutor
java.lang.Object
org.ow2.orchestra.pvm.internal.jobexecutor.AbstractJobExecutor
org.ow2.orchestra.pvm.internal.jobexecutor.pvm.PvmJobExecutor
- All Implemented Interfaces:
- JobExecutor
public class PvmJobExecutor
- extends AbstractJobExecutor
- implements JobExecutor
manager for jobImpl execution threads and their configuration.
- Author:
- Tom Baeyens, Guillaume Porcher
| Methods inherited from class org.ow2.orchestra.pvm.internal.jobexecutor.AbstractJobExecutor |
getAcquireJobsCommand, getCommandExecutor, getDeadJobHandler, getHostName, getIdleMillis, getLockMillis, getName, getNextDueDateCommand, isActive, jobWasAdded, setCommandExecutor, setDeadJobHandler, setIdleInterval, setMaxLockTime, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PvmJobExecutor
public PvmJobExecutor()
start
public void start()
- Description copied from interface:
JobExecutor
- starts the
DispatcherThread
and JobExecutorThreads for this
jobImpl executor
- Specified by:
start in interface JobExecutor- Specified by:
start in class AbstractJobExecutor
stop
public void stop()
- Description copied from interface:
JobExecutor
- stops with join set to false.
- Specified by:
stop in interface JobExecutor- Specified by:
stop in class AbstractJobExecutor
- See Also:
JobExecutor.stop(boolean)
stop
public void stop(boolean join)
- Description copied from interface:
JobExecutor
- signals to all threads managed by this jobImpl executor to stop. Stopping
the dispatcher thread is blocking till the dispatcher is no more alive. If
join is set to true, this method will block until all jobImpl executor
threads are joined and actually dead. If join is false, the jobImpl
executor threads are only told to stop, without waiting till they are
actually stopped. It may be that jobImpl executor threads are in the middle
of executing a jobImpl and they may finish after this method returned.
- Specified by:
stop in interface JobExecutor- Specified by:
stop in class AbstractJobExecutor
waitTillQueueEmpty
protected void waitTillQueueEmpty()
getJobDbidsQueue
protected java.util.concurrent.BlockingQueue<java.util.Collection<java.lang.Long>> getJobDbidsQueue()
getHistorySize
public int getHistorySize()
getNbrOfThreads
public int getNbrOfThreads()
getDispatcherThread
public DispatcherThread getDispatcherThread()
- Specified by:
getDispatcherThread in class AbstractJobExecutor
getHistory
public java.util.List<JobHistoryEntry> getHistory()
setNbrOfJobExecutorThreads
public void setNbrOfJobExecutorThreads(int nbrOfJobExecutorThreads)
setHistoryMaxSize
public void setHistoryMaxSize(int historyMaxSize)
Copyright © 2010 OW2 Consortium. All Rights Reserved.