Class OddjobExplorer

All Implemented Interfaces:
Serializable, Runnable, ArooaContextAware, ArooaSessionAware, Forceable, PropertyChangeNotifier, Iconic, LogEnabled, Resettable, Stateful, Stoppable

public class OddjobExplorer extends SerializableJob implements 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 Details

  • 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

      protected OddjobExplorer(FileHistory fileHistory, ScreenPresence screen)
      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

      protected ExplorerComponent getExplorerComponent()
    • setOddjobServices

      @Inject public void setOddjobServices(OddjobServices oddjobServices)
      Capture services from the containing Oddjob.
      Parameters:
      oddjobServices -
    • setArooaSession

      public void setArooaSession(ArooaSession session)
      Description copied from class: BaseComponent
      Here for the tests...
      Specified by:
      setArooaSession in interface ArooaSessionAware
      Overrides:
      setArooaSession in class BaseComponent
      Parameters:
      session -
    • setOddjob

      public void setOddjob(Oddjob oddjob) throws PropertyVetoException
      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

      public Oddjob getOddjob()
    • setDir

      public void setDir(File dir)
    • getDir

      public File getDir()
    • getTitle

      public String getTitle()
      Returns:
      The title.
      Reference Property:
      title

      Description

      The Explorer frame's 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)
      Reference Property:

      Description

      How many lines to keep in file history.
      Required:
      No.
    • getLogFormat

      public String getLogFormat()
    • setLogFormat

      public void setLogFormat(String logFormat)
    • getFile

      public File getFile()
    • setFile

      public void setFile(File file)