Class DependsJob

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

@Deprecated public class DependsJob extends SimpleJob implements Stoppable, StateListener
Deprecated.
Use RunJob instead.
Author:
Rob Gordon

Description

This job is deprecated, use RunJob instead.

A job which depends on another job.

  • If the other job is in a READY state, this job will run the other job.
  • If the other job is in an EXECUTING state, this job will wait.
  • If the other job has finished this job will reflect the completion state.
This job was intended to simulate Ant's dependency like functionality but the run job is better.
  • Constructor Details

    • DependsJob

      public DependsJob()
      Deprecated.
  • Method Details

    • setJob

      public void setJob(Stateful node)
      Deprecated.
      Set the stop node directly.
      Parameters:
      node - The node to stop.
    • getJob

      public Stateful getJob()
      Deprecated.
      Get the node to stop.
      Returns:
      The node.
    • execute

      protected int execute() throws Throwable
      Deprecated.
      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:
      Throwable
    • jobStateChange

      public void jobStateChange(StateEvent event)
      Deprecated.
      Description copied from interface: StateListener
      Triggered when the job state changes.
      Specified by:
      jobStateChange in interface StateListener
      Parameters:
      event - The job state event.