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 String |
DEFAULT_TITLE |
static String |
ODDJOB_PROPERTY |
protected 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.
|
File |
getDir() |
protected ExplorerComponent |
getExplorerComponent() |
File |
getFile() |
int |
getFileHistorySize() |
String |
getLogFormat() |
Oddjob |
getOddjob() |
long |
getPollingInterval() |
ScreenPresence |
getScreen() |
String |
getTitle() |
void |
onStop()
Allow sub classes to do something on stop.
|
void |
setArooaSession(ArooaSession session)
Here for the tests...
|
void |
setDir(File dir) |
void |
setFile(File file) |
void |
setFileHistorySize(int fileHistorySize) |
void |
setLogFormat(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 String ODDJOB_PROPERTY
public static final String DEFAULT_TITLE
protected transient 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
public void setOddjob(Oddjob oddjob) throws PropertyVetoException
oddjob
- The new Oddjob or null to just close.PropertyVetoException
- If the exsiting Oddjob can't be
closed.public Oddjob getOddjob()
public void setDir(File dir)
public File getDir()
public String getTitle()
Property: title
Description: The Explorer frame's title.
public void show()
protected int execute() throws 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 String getLogFormat()
public void setLogFormat(String logFormat)
public File getFile()
public void setFile(File file)