|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.seide.controller.impl.DirectThreadPoolStageController
public class DirectThreadPoolStageController
| Field Summary | |
|---|---|
protected int |
configuredTimeout
|
protected Dispatcher |
dispatcher
|
protected ExecutorService |
executor
|
protected ThreadPoolExecutorFactory |
executorFactory
|
protected RuntimeStage |
runtimeStage
|
protected boolean |
started
|
protected boolean |
stopRequired
|
static String |
THREAD_POOL_EXECUTOR_MXBEAN_PREFIX
|
protected int |
timeout
|
protected ScheduledThreadPoolExecutor |
timeoutMonitorExecutor
|
protected int |
timeoutMonitorThreadCount
|
| Constructor Summary | |
|---|---|
DirectThreadPoolStageController()
|
|
| Method Summary | |
|---|---|
protected Runnable |
customize(Event event,
RunnableEventHandlerWrapper originalRunnable)
Customizable Runnable creation to wrap around the original RunnableEventHandlerWrapper. |
void |
execute(Event event)
Execution handler for the given stage. |
Dispatcher |
getDispatcher()
|
ThreadPoolExecutorFactory |
getExecutorFactory()
|
boolean |
isRunning()
|
void |
setDispatcher(Dispatcher dispatcher)
|
void |
setExecutorFactory(ThreadPoolExecutorFactory executorFactory)
|
void |
setRuntimeStage(RuntimeStage runtimeStage)
Runtime configuration of the running Stage (RuntimeStage). |
void |
setTimeout(int timeout)
|
void |
setTimeoutMonitorThreadCount(int timeoutMonitorThreadCount)
|
void |
start()
Starts the object implementation's lifecycle. |
void |
stop()
Stops the object implementation's lifecycle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String THREAD_POOL_EXECUTOR_MXBEAN_PREFIX
protected ThreadPoolExecutorFactory executorFactory
protected Dispatcher dispatcher
protected RuntimeStage runtimeStage
protected ExecutorService executor
protected int timeout
protected int configuredTimeout
protected int timeoutMonitorThreadCount
protected ScheduledThreadPoolExecutor timeoutMonitorExecutor
protected volatile boolean started
protected volatile boolean stopRequired
| Constructor Detail |
|---|
public DirectThreadPoolStageController()
| Method Detail |
|---|
public void execute(Event event)
StageController
execute in interface StageController
@Beta
protected Runnable customize(Event event,
RunnableEventHandlerWrapper originalRunnable)
Runnable creation to wrap around the original RunnableEventHandlerWrapper.
event -
public void start()
Lifecycle
start in interface Lifecyclepublic void stop()
Lifecycle
stop in interface Lifecyclepublic Dispatcher getDispatcher()
getDispatcher in interface DispatcherAwarepublic void setDispatcher(Dispatcher dispatcher)
setDispatcher in interface DispatcherAwarepublic void setRuntimeStage(RuntimeStage runtimeStage)
StageControllerStage (RuntimeStage).
setRuntimeStage in interface StageControllerpublic void setExecutorFactory(ThreadPoolExecutorFactory executorFactory)
public ThreadPoolExecutorFactory getExecutorFactory()
public void setTimeout(int timeout)
public void setTimeoutMonitorThreadCount(int timeoutMonitorThreadCount)
public boolean isRunning()
isRunning in interface Lifecycle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||