Package org.oddjob.monitor
Class MultiExplorerLauncher
- All Implemented Interfaces:
Serializable,Runnable,ArooaContextAware,ArooaSessionAware,Forceable,PropertyChangeNotifier,Iconic,LogEnabled,Resettable,Stateful,Stoppable,Structural
- Author:
- rob
- See Also:
Description
A container that allows multipleOddjobExplorers to run.
This is the default job that Oddjob runs on startup.-
Field Summary
Fields inherited from class org.oddjob.framework.extend.StructuralJob
childHelper, destroy, stop, structuralState -
Constructor Summary
ConstructorsModifierConstructorDescriptionDefault constructor.protectedMultiExplorerLauncher(FileHistory fileHistory, ScreenPresence screen) Used by custom deserialization. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute()Execute this job.getDir()getFile()intprotected StateOperatorSubclasses must provide theStateOperatorthat will decide how to evaluate the children's state.longprotected voidonReset()Allow sub classes to do something on reset.voidvoidvoidsetFileHistorySize(int fileHistorySize) voidsetLogFormat(String logFormat) voidsetOddjobServices(OddjobServices oddjobServices) voidsetPollingInterval(long pollingInterval) protected voidStart the child state reflector.Methods inherited from class org.oddjob.framework.extend.StructuralJob
addStructuralListener, fireDestroyedState, force, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onHardReset, onSoftReset, onStop, postStop, removeStructuralListener, run, softReset, stateHandler, stop, stopChildStateReflector, waitForChildrenOnStopMethods inherited from class org.oddjob.framework.extend.BasePrimary
configure, getName, logger, logger, loggerName, save, setName, toStringMethods inherited from class org.oddjob.framework.extend.BaseComponent
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.oddjob.Stateful
addStateListener, lastStateEvent, removeStateListener
-
Constructor Details
-
MultiExplorerLauncher
public MultiExplorerLauncher()Default constructor. -
MultiExplorerLauncher
Used by custom deserialization.
-
-
Method Details
-
getInitialStateOp
Description copied from class:StructuralJobSubclasses must provide theStateOperatorthat will decide how to evaluate the children's state.- Specified by:
getInitialStateOpin classStructuralJob<Runnable>- Returns:
- A State Operator. Must not be null.
-
setOddjobServices
-
execute
Description copied from class:StructuralJobExecute this job.- Specified by:
executein classStructuralJob<Runnable>- Throws:
InterruptedException
-
startChildStateReflector
protected void startChildStateReflector()Description copied from class:StructuralJobStart the child state reflector. Sub classes override this if they need to start the child state reflector at a different time.- Overrides:
startChildStateReflectorin classStructuralJob<Runnable>
-
onReset
protected void onReset()Description copied from class:StructuralJobAllow sub classes to do something on reset.- Overrides:
onResetin classStructuralJob<Runnable>
-
getDir
-
setDir
-
getFile
- Returns:
- the file
-
setFile
-
getPollingInterval
public long getPollingInterval() -
setPollingInterval
public void setPollingInterval(long pollingInterval) -
getFileHistorySize
public int getFileHistorySize() -
setFileHistorySize
public void setFileHistorySize(int fileHistorySize) - Reference Property:
- fileHistorySize
- Required:
- No.
Description
How many lines to keep in file history. -
getLogFormat
-
setLogFormat
-