Class ECaccessScheduler

All Implemented Interfaces:
MonitorCallback, Runnable
Direct Known Subclasses:
MBeanScheduler

public abstract class ECaccessScheduler extends WakeupThread implements MonitorCallback
The Class ECaccessScheduler.
  • Field Details

    • SCHEDULER_STATE_ONLINE

      public static final int SCHEDULER_STATE_ONLINE
      The Constant SCHEDULER_STATE_ONLINE.
      See Also:
    • SCHEDULER_STATE_OPENING

      public static final int SCHEDULER_STATE_OPENING
      The Constant SCHEDULER_STATE_OPENING.
      See Also:
    • SCHEDULER_STATE_CLOSING

      public static final int SCHEDULER_STATE_CLOSING
      The Constant SCHEDULER_STATE_CLOSING.
      See Also:
    • SCHEDULER_STATE_OFFLINE

      public static final int SCHEDULER_STATE_OFFLINE
      The Constant SCHEDULER_STATE_OFFLINE.
      See Also:
    • SCHEDULER_STATE_JAMMED

      public static final int SCHEDULER_STATE_JAMMED
      The Constant SCHEDULER_STATE_JAMMED.
      See Also:
    • SCHEDULER_STATE_ONHOLD

      public static final int SCHEDULER_STATE_ONHOLD
      The Constant SCHEDULER_STATE_ONHOLD.
      See Also:
    • NEXT_STEP_INIT

      public static final int NEXT_STEP_INIT
      The Constant NEXT_STEP_INIT.
      See Also:
    • NEXT_STEP_CONTINUE

      public static final int NEXT_STEP_CONTINUE
      The Constant NEXT_STEP_CONTINUE.
      See Also:
    • NEXT_STEP_DELAY

      public static final int NEXT_STEP_DELAY
      The Constant NEXT_STEP_DELAY.
      See Also:
    • NEXT_STEP_ABORT

      public static final int NEXT_STEP_ABORT
      The Constant NEXT_STEP_ABORT.
      See Also:
    • states

      protected static final String[] states
      The Constant states.
    • steps

      protected static final String[] steps
      The Constant steps.
  • Constructor Details

    • ECaccessScheduler

      public ECaccessScheduler()
  • Method Details

    • shutdown

      public void shutdown()
      Shutdown.
    • isInitialized

      public boolean isInitialized()
      Checks if is initialized.
      Returns:
      true, if is initialized
    • isRunning

      public boolean isRunning()
      Checks if is running.
      Returns:
      true, if is running
    • isJammed

      public boolean isJammed()
      Checks if is jammed.
      Returns:
      true, if is jammed
    • isOnHold

      public boolean isOnHold()
      Checks if is on hold. Checks if is on hold.
      Overrides:
      isOnHold in class WakeupThread
      Returns:
      true, if is on hold
    • wakeup

      public void wakeup()
      Wakeup. Wakeup.
      Overrides:
      wakeup in class WakeupThread
    • setOnhold

      public void setOnhold(boolean hold)
      Sets the onhold. Sets the onhold.
      Overrides:
      setOnhold in class WakeupThread
      Parameters:
      hold - the new onhold
    • setTimeRanges

      public void setTimeRanges(List<TimeRange> timeRanges)
      Sets the list of time ranges when it should be running.
      Parameters:
      timeRanges - the time ranges list
    • setJammedTimeout

      public void setJammedTimeout(long timeout)
      Sets the jammed timeout.
      Parameters:
      timeout - the new jammed timeout
    • getJammedTimeout

      public long getJammedTimeout()
      Gets the jammed timeout.
      Returns:
      the jammed timeout
    • getDelay

      public long getDelay()
      Gets the delay.
      Returns:
      the delay
    • getStartDate

      public Date getStartDate()
      Gets the start date.
      Returns:
      the start date
    • getMonitorName

      public String getMonitorName()
      Gets the monitor name.
      Returns:
      the monitor name
    • getSchedulerState

      public int getSchedulerState()
      Gets the scheduler state.
      Returns:
      the scheduler state
    • getStepTime

      public long getStepTime()
      Gets the step time.
      Returns:
      the step time
    • getNextStep

      public int getNextStep()
      Gets the next step.
      Returns:
      the next step
    • getLastStepTime

      public long getLastStepTime()
      Gets the last step time.
      Returns:
      the last step time
    • getActivity

      public String getActivity()
      Gets the activity.
      Returns:
      the activity
    • getMonitorManager

      public MonitorManager getMonitorManager(String name) throws MonitorException
      Gets the monitor manager. Gets the monitor manager.
      Specified by:
      getMonitorManager in interface MonitorCallback
      Parameters:
      name - the name
      Returns:
      the monitor manager
      Throws:
      MonitorException - the monitor exception
    • initialize

      public void initialize()
      Initialize.
    • onHold

      public void onHold()
      On hold.
    • setDelay

      public void setDelay(long delay)
      Sets the delay.
      Parameters:
      delay - the new delay
    • deactivateMonitor

      public void deactivateMonitor()
      Deactivate monitor.
    • start

      public void start()
      Start.
    • nextStep

      public abstract int nextStep()
      Next step.
      Returns:
      the int
    • configurableRun

      public void configurableRun()
      Configurable run. Configurable run.
      Specified by:
      configurableRun in class ThreadService.ConfigurableRunnable