org.oddjob.monitor
Class OddjobExplorer
java.lang.Object
org.oddjob.framework.BaseComponent
org.oddjob.framework.BasePrimary
org.oddjob.framework.SimpleJob
org.oddjob.framework.SerializableJob
org.oddjob.monitor.OddjobExplorer
- All Implemented Interfaces:
- Serializable, Runnable, ArooaContextAware, Forceable, PropertyChangeNotifier, Iconic, LogEnabled, Resetable, Stateful, Stoppable
public class OddjobExplorer
- extends SerializableJob
- implements Stoppable
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
- See Also:
- Serialized Form
- Author:
- Rob Gordon
| Methods inherited from class org.oddjob.framework.SimpleJob |
fireDestroyedState, force, getStateChanger, hardReset, onDestroy, onReset, run, sleep, 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 |
ODDJOB_PROPERTY
public static final String ODDJOB_PROPERTY
- See Also:
- Constant Field Values
DEFAULT_TITLE
public static final String DEFAULT_TITLE
- See Also:
- Constant Field Values
vetoableChangeSupport
protected transient VetoableChangeSupport vetoableChangeSupport
OddjobExplorer
public OddjobExplorer()
OddjobExplorer
public OddjobExplorer(MultiViewController controller,
ScreenPresence screen,
FileHistory sharedFileHistory)
getExplorerComponent
protected ExplorerComponent getExplorerComponent()
setOddjobServices
@Inject
public void setOddjobServices(OddjobServices oddjobServices)
setOddjob
public void setOddjob(Oddjob oddjob)
throws PropertyVetoException
- Throws:
PropertyVetoException
getOddjob
public Oddjob getOddjob()
setDir
public void setDir(File dir)
getDir
public File getDir()
getTitle
public String getTitle()
Property: title
Description: The Explorer frame's title.
- Returns:
- The title.
show
public void show()
execute
protected int execute()
throws Exception
- Description copied from class:
SimpleJob
- Execute this job.
- Specified by:
execute in class SimpleJob
- Returns:
- 0 if the job is complete, anything else otherwise.
- Throws:
Exception - If the unexpected occurs.
onStop
public void onStop()
throws FailedToStopException
- Description copied from class:
SimpleJob
- Allow sub classes to do something on stop.
- Overrides:
onStop in class SimpleJob
- 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)
Property:
Description: How many lines to keep in file history.
Required: No.
getScreen
public ScreenPresence getScreen()
getLogFormat
public String getLogFormat()
setLogFormat
public void setLogFormat(String logFormat)
getFile
public File getFile()
setFile
public void setFile(File file)