Enum Class ProcessUnit.TerminationReason

java.lang.Object
java.lang.Enum<ProcessUnit.TerminationReason>
de.iip_ecosphere.platform.configuration.maven.ProcessUnit.TerminationReason
All Implemented Interfaces:
Serializable, Comparable<ProcessUnit.TerminationReason>, Constable
Enclosing class:
ProcessUnit

public static enum ProcessUnit.TerminationReason extends Enum<ProcessUnit.TerminationReason>
Denotes the reason for termination.
Author:
Holger Eichelberger, SSE
  • Enum Constant Details

  • Field Details

    • stopRequired

      private boolean stopRequired
  • Constructor Details

    • TerminationReason

      private TerminationReason(boolean stopRequired)
      Creates a constant.
      Parameters:
      stopRequired - is process stop required when this reason occurs
  • Method Details

    • values

      public static ProcessUnit.TerminationReason[] 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 ProcessUnit.TerminationReason 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
    • isStopRequired

      public boolean isStopRequired()
      Returns whether process stop required when this reason occurs.
      Returns:
      true for stop, false not required