|
||||||||||
| 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<java.util.Collection<java.lang.Long>> |
acquireJobsCommand
|
protected CommandService |
commandService
|
protected int |
idleMillis
|
protected boolean |
isActive
|
protected int |
lockMillis
|
protected static Log |
LOG
|
protected java.lang.String |
name
|
protected Command<java.util.Date> |
nextDueDateCommand
|
| Constructor Summary | |
|---|---|
AbstractJobExecutor()
|
|
| Method Summary | |
|---|---|
Command<java.util.Collection<java.lang.Long>> |
getAcquireJobsCommand()
|
CommandService |
getCommandExecutor()
|
protected abstract AbstractDispatcherThread |
getDispatcherThread()
|
protected static java.lang.String |
getHostName()
|
int |
getIdleMillis()
|
int |
getLockMillis()
|
java.lang.String |
getName()
returns JobExecutor name |
Command<java.util.Date> |
getNextDueDateCommand()
|
boolean |
isActive()
returns true if this JobExecutor is started |
void |
jobWasAdded()
signals jobExecutor that a job has been added |
void |
setCommandExecutor(CommandService commandService)
|
void |
setIdleInterval(int idleInterval)
|
void |
setMaxLockTime(int maxLockTime)
|
void |
setName(java.lang.String name)
|
abstract void |
start()
starts the DispatcherThread
and 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 java.lang.String name
protected int idleMillis
protected int lockMillis
protected Command<java.util.Collection<java.lang.Long>> acquireJobsCommand
protected Command<java.util.Date> nextDueDateCommand
protected boolean isActive
| 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 JobExecutorThreads for this
jobImpl executor
start in interface JobExecutorprotected static java.lang.String getHostName()
public void jobWasAdded()
JobExecutor
jobWasAdded in interface JobExecutorpublic java.lang.String getName()
JobExecutor
getName in interface JobExecutorpublic int getIdleMillis()
public boolean isActive()
JobExecutor
isActive in interface JobExecutorpublic int getLockMillis()
public CommandService getCommandExecutor()
public Command<java.util.Collection<java.lang.Long>> getAcquireJobsCommand()
public Command<java.util.Date> getNextDueDateCommand()
public void setCommandExecutor(CommandService commandService)
public void setName(java.lang.String name)
public void setIdleInterval(int idleInterval)
public void setMaxLockTime(int maxLockTime)
protected abstract AbstractDispatcherThread getDispatcherThread()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||