Class MultiExplorerLauncher

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

public class MultiExplorerLauncher extends StructuralJob<Runnable> implements Stoppable
Author:
rob
See Also:

Description

A container that allows multiple OddjobExplorers to run. This is the default job that Oddjob runs on startup.
  • Constructor Details

    • MultiExplorerLauncher

      public MultiExplorerLauncher()
      Default constructor.
    • MultiExplorerLauncher

      protected MultiExplorerLauncher(FileHistory fileHistory, ScreenPresence screen)
      Used by custom deserialization.
  • Method Details

    • getInitialStateOp

      protected StateOperator getInitialStateOp()
      Description copied from class: StructuralJob
      Subclasses must provide the StateOperator that will decide how to evaluate the children's state.
      Specified by:
      getInitialStateOp in class StructuralJob<Runnable>
      Returns:
      A State Operator. Must not be null.
    • setOddjobServices

      @Inject public void setOddjobServices(OddjobServices oddjobServices)
    • execute

      protected void execute() throws InterruptedException
      Description copied from class: StructuralJob
      Execute this job.
      Specified by:
      execute in class StructuralJob<Runnable>
      Throws:
      InterruptedException
    • startChildStateReflector

      protected void startChildStateReflector()
      Description copied from class: StructuralJob
      Start the child state reflector. Sub classes override this if they need to start the child state reflector at a different time.
      Overrides:
      startChildStateReflector in class StructuralJob<Runnable>
    • onReset

      protected void onReset()
      Description copied from class: StructuralJob
      Allow sub classes to do something on reset.
      Overrides:
      onReset in class StructuralJob<Runnable>
    • getDir

      public File getDir()
    • setDir

      public void setDir(File dir)
    • getFile

      public File getFile()
      Returns:
      the file
    • setFile

      public void setFile(File file)
    • getPollingInterval

      public long getPollingInterval()
    • setPollingInterval

      public void setPollingInterval(long pollingInterval)
    • getFileHistorySize

      public int getFileHistorySize()
    • setFileHistorySize

      public void setFileHistorySize(int fileHistorySize)
      Reference Property:
      fileHistorySize

      Description

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

      public String getLogFormat()
    • setLogFormat

      public void setLogFormat(String logFormat)