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 |
| Modifier | Constructor and Description |
|---|---|
|
OddjobExplorer()
Constructor to be used to create a single instance of this explorer.
|
protected |
OddjobExplorer(FileHistory fileHistory,
ScreenPresence screen)
Used by custom deserialization.
|
|
OddjobExplorer(MultiViewController controller,
java.util.concurrent.atomic.AtomicReference<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() |
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, stopconfigure, getName, logger, logger, loggerName, save, setName, toStringaddIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddStateListener, lastStateEvent, removeStateListenerpublic static final java.lang.String ODDJOB_PROPERTY
public static final java.lang.String DEFAULT_TITLE
protected transient java.beans.VetoableChangeSupport vetoableChangeSupport
public OddjobExplorer()
protected OddjobExplorer(FileHistory fileHistory, ScreenPresence screen)
public OddjobExplorer(MultiViewController controller, java.util.concurrent.atomic.AtomicReference<ScreenPresence> screen, FileHistory sharedFileHistory)
controller - screen - sharedFileHistory - protected ExplorerComponent getExplorerComponent()
@Inject public void setOddjobServices(OddjobServices oddjobServices)
oddjobServices - public void setArooaSession(ArooaSession session)
BaseComponentsetArooaSession in interface ArooaSessionAwaresetArooaSession in class BaseComponentsession - 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
SimpleJobpublic void onStop()
throws FailedToStopException
SimpleJobonStop in class SimpleJobFailedToStopExceptionpublic 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 java.lang.String getLogFormat()
public void setLogFormat(java.lang.String logFormat)
public java.io.File getFile()
public void setFile(java.io.File file)