public class OddjobExplorer extends SerializableJob implements Stoppable
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
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TITLE |
static java.lang.String |
ODDJOB_PROPERTY |
protected java.beans.VetoableChangeSupport |
vetoableChangeSupport |
Constructor and Description |
---|
OddjobExplorer()
Constructor to be used to create a single instance of this explorer.
|
OddjobExplorer(MultiViewController controller,
ScreenPresence screen,
FileHistory sharedFileHistory)
Constructor when this explorer is being created as one of many.
|
Modifier and Type | Method and Description |
---|---|
protected int |
execute()
Execute this job.
|
java.io.File |
getDir() |
protected ExplorerComponent |
getExplorerComponent() |
java.io.File |
getFile() |
int |
getFileHistorySize() |
java.lang.String |
getLogFormat() |
Oddjob |
getOddjob() |
long |
getPollingInterval() |
ScreenPresence |
getScreen() |
java.lang.String |
getTitle() |
void |
onStop()
Allow sub classes to do something on stop.
|
void |
setArooaSession(ArooaSession session)
Here for the tests...
|
void |
setDir(java.io.File dir) |
void |
setFile(java.io.File file) |
void |
setFileHistorySize(int fileHistorySize) |
void |
setLogFormat(java.lang.String logFormat) |
void |
setOddjob(Oddjob oddjob)
Setter for Oddjob.
|
void |
setOddjobServices(OddjobServices oddjobServices)
Capture services from the containing Oddjob.
|
void |
setPollingInterval(long pollingInterval) |
void |
show() |
fireDestroyedState, force, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onReset, run, sleep, softReset, stateHandler, stop
configure, getName, logger, logger, loggerName, save, setName, toString
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addStateListener, lastStateEvent, removeStateListener
public static final java.lang.String ODDJOB_PROPERTY
public static final java.lang.String DEFAULT_TITLE
protected transient java.beans.VetoableChangeSupport vetoableChangeSupport
public OddjobExplorer()
public OddjobExplorer(MultiViewController controller, ScreenPresence screen, FileHistory sharedFileHistory)
controller
- screen
- sharedFileHistory
- protected ExplorerComponent getExplorerComponent()
@Inject public void setOddjobServices(OddjobServices oddjobServices)
oddjobServices
- public void setArooaSession(ArooaSession session)
BaseComponent
setArooaSession
in interface ArooaSessionAware
setArooaSession
in class BaseComponent
session
- The Arooa Session. Never null.public void setOddjob(Oddjob oddjob) throws java.beans.PropertyVetoException
oddjob
- The new Oddjob or null to just close.java.beans.PropertyVetoException
- If the exsiting Oddjob can't be
closed.public Oddjob getOddjob()
public void setDir(java.io.File dir)
public java.io.File getDir()
public java.lang.String getTitle()
Property: title
Description: The Explorer frame's title.
public void show()
protected int execute() throws java.lang.Exception
SimpleJob
public void onStop() throws FailedToStopException
SimpleJob
onStop
in class SimpleJob
FailedToStopException
public long getPollingInterval()
public void setPollingInterval(long pollingInterval)
pollingInterval
- The pollingInterval to set.public int getFileHistorySize()
public void setFileHistorySize(int fileHistorySize)
Property:
Description: How many lines to keep in file history.
Required: No.
public ScreenPresence getScreen()
public java.lang.String getLogFormat()
public void setLogFormat(java.lang.String logFormat)
public java.io.File getFile()
public void setFile(java.io.File file)