Package adams.flow.standalone
Class Standalones.ParallelDirector
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.flow.control.AbstractDirector
-
- adams.flow.standalone.Standalones.ParallelDirector
-
- All Implemented Interfaces:
CleanUpHandler,LoggingSupporter,SizeOfHandler,Stoppable,StoppableWithFeedback,FlowPauseStateListener,Serializable
- Enclosing class:
- Standalones
public static class Standalones.ParallelDirector extends AbstractDirector
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected PausableFixedThreadPoolExecutorm_Poolthe thread pool.-
Fields inherited from class adams.flow.control.AbstractDirector
m_ControlActor, m_Flushing, m_LoggingPrefix, m_Paused, m_Stopped, m_Stopping
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description ParallelDirector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringexecute()Executes the group of actors.voidpauseExecution()Pauses the execution.-
Methods inherited from class adams.flow.control.AbstractDirector
cleanUp, configureLogger, flowPauseStateChanged, flushExecution, getControlActor, getVariables, handleException, hasControlActor, initialize, isFinished, isFlushing, isPaused, isStopped, isStopping, pause, setControlActor, setLoggingLevel, stopExecution, toString, updatePrefix
-
Methods inherited from class adams.core.logging.LoggingObject
getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Pool
protected PausableFixedThreadPoolExecutor m_Pool
the thread pool.
-
-
Method Detail
-
execute
public String execute()
Executes the group of actors.- Specified by:
executein classAbstractDirector- Returns:
- null if everything went smooth
-
pauseExecution
public void pauseExecution()
Pauses the execution.- Overrides:
pauseExecutionin classAbstractDirector
-
-