Enum Class DefaultPipelineController.PipelineState

java.lang.Object
java.lang.Enum<DefaultPipelineController.PipelineState>
io.aleph0.yap.core.pipeline.DefaultPipelineController.PipelineState
All Implemented Interfaces:
Serializable, Comparable<DefaultPipelineController.PipelineState>, Constable
Enclosing class:
DefaultPipelineController

public static enum DefaultPipelineController.PipelineState extends Enum<DefaultPipelineController.PipelineState>
The internal state of a pipeline. The pipeline starts in the DefaultTaskController.TaskState.READY state. The controller then moves the pipeline through states according to the various events that occur, where events are modeled as methods in this class.
  • Enum Constant Details

  • Method Details

    • values

      public static DefaultPipelineController.PipelineState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DefaultPipelineController.PipelineState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • to

      Validate the transition from this state to the target state. The controller will call this method to validate the transition before moving to the target state. If the transition is valid, the method will return the target state. If the transition is invalid, the method will throw an IllegalStateException.
      Parameters:
      target - the target state
      Returns:
      the target state, if the transition is valid
      Throws:
      IllegalStateException - if the transition is invalid