|
||||||||||
| 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
public abstract class AbstractJobExecutor
Common part of jobExecutor implementations based on a Dispatcher thread
| Field Summary | |
|---|---|
protected Command<Collection<Collection<JobImpl<?>>>> |
acquireJobsCommand
|
protected CommandService |
commandService
|
protected DeadJobHandler |
deadJobHandler
|
protected int |
idleMillis
|
protected boolean |
isActive
|
protected boolean |
limitSameInstanceJobs
|
protected int |
lockMillis
|
protected static Log |
LOG
|
protected String |
name
|
protected Command<Date> |
nextDueDateCommand
|
| Constructor Summary | |
|---|---|
AbstractJobExecutor()
|
|
| Method Summary | |
|---|---|
Command<Collection<Collection<JobImpl<?>>>> |
getAcquireJobsCommand()
|
protected abstract int |
getAcquireJobSize()
|
CommandService |
getCommandExecutor()
|
DeadJobHandler |
getDeadJobHandler()
|
protected abstract AbstractDispatcherThread |
getDispatcherThread()
|
protected static String |
getHostName()
|
int |
getIdleMillis()
|
int |
getLockMillis()
|
String |
getName()
returns JobExecutor name |
Command<Date> |
getNextDueDateCommand()
|
boolean |
isActive()
returns true if this JobExecutor is started |
boolean |
isLimitSameInstanceJobs()
|
void |
jobWasAdded()
signals jobExecutor that a job has been added |
void |
setCommandExecutor(CommandService commandExecutor)
|
void |
setDeadJobHandler(DeadJobHandler deadJobHandler)
|
void |
setIdleInterval(int idleInterval)
|
void |
setLimitSameInstanceJobs(boolean limitSameInstanceJobs)
|
void |
setMaxLockTime(int maxLockTime)
|
void |
setName(String name)
|
abstract void |
start()
starts the DispatcherThread
and org.ow2.orchestra.pvm.internal.jobexecutor.pvm.JobExecutorThreads for this
jobImpl executor |
abstract void |
stop()
stops with join set to false. |
abstract void |
stop(boolean join)
signals to all threads managed by this jobImpl executor to stop. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Log LOG
protected CommandService commandService
protected String name
protected int idleMillis
protected int lockMillis
protected Command<Collection<Collection<JobImpl<?>>>> acquireJobsCommand
protected Command<Date> nextDueDateCommand
protected boolean isActive
protected boolean limitSameInstanceJobs
protected DeadJobHandler deadJobHandler
| Constructor Detail |
|---|
public AbstractJobExecutor()
| Method Detail |
|---|
public abstract void stop(boolean join)
JobExecutor
stop in interface JobExecutorpublic abstract void stop()
JobExecutor
stop in interface JobExecutorJobExecutor.stop(boolean)public abstract void start()
JobExecutorDispatcherThread
and org.ow2.orchestra.pvm.internal.jobexecutor.pvm.JobExecutorThreads for this
jobImpl executor
start in interface JobExecutorprotected static String getHostName()
public void jobWasAdded()
JobExecutor
jobWasAdded in interface JobExecutorpublic String getName()
JobExecutor
getName in interface JobExecutorpublic int getIdleMillis()
public boolean isActive()
JobExecutor
isActive in interface JobExecutorpublic int getLockMillis()
public CommandService getCommandExecutor()
public Command<Collection<Collection<JobImpl<?>>>> getAcquireJobsCommand()
public Command<Date> getNextDueDateCommand()
public void setCommandExecutor(CommandService commandExecutor)
public void setName(String name)
public void setIdleInterval(int idleInterval)
public void setMaxLockTime(int maxLockTime)
public DeadJobHandler getDeadJobHandler()
getDeadJobHandler in interface JobExecutorpublic void setDeadJobHandler(DeadJobHandler deadJobHandler)
deadJobHandler - the deadJobHandler to setpublic void setLimitSameInstanceJobs(boolean limitSameInstanceJobs)
limitSameInstanceJobs - the limitSameInstanceJobs to setpublic boolean isLimitSameInstanceJobs()
protected abstract AbstractDispatcherThread getDispatcherThread()
protected abstract int getAcquireJobSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||