Enum Class ModuleState

java.lang.Object
java.lang.Enum<ModuleState>
com.bc.ceres.core.runtime.ModuleState
All Implemented Interfaces:
Serializable, Comparable<ModuleState>, Constable

public enum ModuleState extends Enum<ModuleState>
A module's state.
  • Enum Constant Details

    • INSTALLED

      public static final ModuleState INSTALLED
      The 'installed' state.
    • RESOLVED

      public static final ModuleState RESOLVED
      The 'resolved' state. Implies 'installed'.
    • STARTING

      public static final ModuleState STARTING
      The 'starting' state. Implies 'resolved'.
    • ACTIVE

      public static final ModuleState ACTIVE
      The 'active' state. Implies 'resolved'.
    • STOPPING

      public static final ModuleState STOPPING
      The 'stopping' state. Implies 'resolved'.
    • UNINSTALLED

      public static final ModuleState UNINSTALLED
      The 'uninstalled' state. Implies 'active' because modules cannot be uninstalled while the runtime is still up and running.
    • NULL

      public static final ModuleState NULL
      The 'null' state, which means that the state has not been set. Clients will never observe this state.
  • Method Details

    • values

      public static ModuleState[] 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 ModuleState 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
    • getValue

      public int getValue()
    • is

      public boolean is(ModuleState state)
    • isOneOf

      public boolean isOneOf(ModuleState state0, ModuleState... states)