org.oddjob.monitor
Class MultiExplorerLauncher
java.lang.Object
org.oddjob.framework.BaseComponent
org.oddjob.framework.BasePrimary
org.oddjob.framework.StructuralJob<Runnable>
org.oddjob.monitor.MultiExplorerLauncher
- All Implemented Interfaces:
- Serializable, Runnable, ArooaContextAware, ArooaSessionAware, Forceable, PropertyChangeNotifier, Iconic, LogEnabled, Resetable, Stateful, Stoppable, Structural
public class MultiExplorerLauncher
- extends StructuralJob<Runnable>
- implements Stoppable
Description
A container that allows multiple OddjobExplorer
s to run.
This is the default job that Oddjob runs on startup.- See Also:
- Serialized Form
- Author:
- rob
Methods inherited from class org.oddjob.framework.StructuralJob |
addStructuralListener, fireDestroyedState, force, getStateChanger, hardReset, isStop, onDestroy, onStop, removeStructuralListener, run, softReset, stateHandler, stop |
Methods inherited from class org.oddjob.framework.BaseComponent |
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSession |
MultiExplorerLauncher
public MultiExplorerLauncher()
- Default constructor.
getInitialStateOp
protected StateOperator getInitialStateOp()
- Description copied from class:
StructuralJob
- Subclasses must provide the
StateOperator
that will decide
how to evaluate the children's state.
- Specified by:
getInitialStateOp
in class StructuralJob<Runnable>
- Returns:
- A State Operator. Must not be null.
setOddjobServices
@Inject
public void setOddjobServices(OddjobServices oddjobServices)
execute
protected void execute()
throws InterruptedException
- Description copied from class:
StructuralJob
- Execute this job.
- Specified by:
execute
in class StructuralJob<Runnable>
- Throws:
InterruptedException
startChildStateReflector
protected void startChildStateReflector()
- Overrides:
startChildStateReflector
in class StructuralJob<Runnable>
onReset
protected void onReset()
- Description copied from class:
StructuralJob
- Allow sub classes to do something on reset.
- Overrides:
onReset
in class StructuralJob<Runnable>
getDir
public File getDir()
setDir
public void setDir(File dir)
getFile
public File getFile()
- Returns:
- the file
setFile
public void setFile(File file)
getPollingInterval
public long getPollingInterval()
setPollingInterval
public void setPollingInterval(long pollingInterval)
getFileHistorySize
public int getFileHistorySize()
setFileHistorySize
public void setFileHistorySize(int fileHistorySize)
Property: fileHistorySize
Description: How many lines to keep in file history.
Required: No.
getLogFormat
public String getLogFormat()
setLogFormat
public void setLogFormat(String logFormat)