Package org.oddjob.monitor
Class OddjobExplorer
- All Implemented Interfaces:
Serializable,Runnable,ArooaContextAware,ArooaSessionAware,Forceable,PropertyChangeNotifier,Iconic,LogEnabled,Resettable,Stateful,Stoppable
- Author:
- Rob Gordon
- See Also:
Description
Runs Oddjob Explorer.
In the log panel the log level shown is set to be that of the
rootLogger in the log4j.properties file in the opt/classes
directory. By default it is set to INFO so you will not see
DEBUG messages in the log panel. For more information on configuring the
file see
http://logging.apache.org/log4j
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected VetoableChangeSupport -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructor to be used to create a single instance of this explorer.protectedOddjobExplorer(FileHistory fileHistory, ScreenPresence screen) Used by custom deserialization.OddjobExplorer(MultiViewController controller, AtomicReference<ScreenPresence> screen, FileHistory sharedFileHistory) Constructor when this explorer is being created as one of many. -
Method Summary
Modifier and TypeMethodDescriptionprotected intexecute()Execute this job.getDir()protected ExplorerComponentgetFile()intlonggetTitle()voidonStop()Allow sub classes to do something on stop.voidsetArooaSession(ArooaSession session) Here for the tests...voidvoidvoidsetFileHistorySize(int fileHistorySize) voidsetLogFormat(String logFormat) voidSetter for Oddjob.voidsetOddjobServices(OddjobServices oddjobServices) Capture services from the containing Oddjob.voidsetPollingInterval(long pollingInterval) voidshow()Methods inherited from class org.oddjob.framework.extend.SimpleJob
fireDestroyedState, force, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onReset, run, sleep, softReset, stateHandler, stopMethods 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, setArooaContextMethods 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
-
Field Details
-
ODDJOB_PROPERTY
- See Also:
-
DEFAULT_TITLE
- See Also:
-
vetoableChangeSupport
-
-
Constructor Details
-
OddjobExplorer
public OddjobExplorer()Constructor to be used to create a single instance of this explorer. Typically used from code to aid debugging an Oddjob. -
OddjobExplorer
Used by custom deserialization. -
OddjobExplorer
public OddjobExplorer(MultiViewController controller, AtomicReference<ScreenPresence> screen, FileHistory sharedFileHistory) Constructor when this explorer is being created as one of many.- Parameters:
controller-screen-sharedFileHistory-
-
-
Method Details
-
getExplorerComponent
-
setOddjobServices
Capture services from the containing Oddjob.- Parameters:
oddjobServices-
-
setArooaSession
Description copied from class:BaseComponentHere for the tests...- Specified by:
setArooaSessionin interfaceArooaSessionAware- Overrides:
setArooaSessionin classBaseComponent- Parameters:
session-
-
setOddjob
Setter for Oddjob. This will change the Oddjob being monitored.- Parameters:
oddjob- The new Oddjob or null to just close.- Throws:
PropertyVetoException- If the exsiting Oddjob can't be closed.
-
getOddjob
-
setDir
-
getDir
-
getTitle
- Returns:
- The title.
- Reference Property:
- title
Description
The Explorer frame's title. -
show
public void show() -
execute
Description copied from class:SimpleJobExecute this job. -
onStop
Description copied from class:SimpleJobAllow sub classes to do something on stop.- Overrides:
onStopin classSimpleJob- Throws:
FailedToStopException
-
getPollingInterval
public long getPollingInterval()- Returns:
- Returns the pollingInterval.
-
setPollingInterval
public void setPollingInterval(long pollingInterval) - Parameters:
pollingInterval- The pollingInterval to set.
-
getFileHistorySize
public int getFileHistorySize() -
setFileHistorySize
public void setFileHistorySize(int fileHistorySize) - Reference Property:
- Required:
- No.
Description
How many lines to keep in file history. -
getLogFormat
-
setLogFormat
-
getFile
-
setFile
-