org.oddjob.monitor
Class MultiExplorerLauncher

java.lang.Object
  extended by org.oddjob.framework.BaseComponent
      extended by org.oddjob.framework.BasePrimary
          extended by org.oddjob.framework.StructuralJob<Runnable>
              extended by 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 OddjobExplorers to run. This is the default job that Oddjob runs on startup.
See Also:
Serialized Form
Author:
rob

Field Summary
 
Fields inherited from class org.oddjob.framework.StructuralJob
childHelper, childStateReflector, stateHandler, stop, structuralState
 
Fields inherited from class org.oddjob.framework.BaseComponent
iconHelper
 
Constructor Summary
MultiExplorerLauncher()
          Default constructor.
 
Method Summary
protected  void execute()
          Execute this job.
 File getDir()
           
 File getFile()
           
 int getFileHistorySize()
           
protected  StateOperator getInitialStateOp()
          Subclasses must provide the StateOperator that will decide how to evaluate the children's state.
 String getLogFormat()
           
 long getPollingInterval()
           
protected  void onReset()
          Allow sub classes to do something on reset.
 void setDir(File dir)
           
 void setFile(File file)
           
 void setFileHistorySize(int fileHistorySize)
           
 void setLogFormat(String logFormat)
           
 void setOddjobServices(OddjobServices oddjobServices)
           
 void setPollingInterval(long pollingInterval)
           
protected  void startChildStateReflector()
           
 
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.BasePrimary
configure, getName, logger, logger, loggerName, save, setName, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.oddjob.Stoppable
stop
 
Methods inherited from interface org.oddjob.Stateful
addStateListener, lastStateEvent, removeStateListener
 

Constructor Detail

MultiExplorerLauncher

public MultiExplorerLauncher()
Default constructor.

Method Detail

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)