Enum Class Operation

java.lang.Object
java.lang.Enum<Operation>
org.codice.ddf.admin.application.service.util.Operation
All Implemented Interfaces:
Serializable, Comparable<Operation>, Constable

public enum Operation extends Enum<Operation>
A list of operations that can be performed on features or bundles.

Note: The order defined here is important and represents the order tasks will be executed. When it comes to bundles, it is important to have the bundles started in the right order as such we have to give priority to installation. We will then uninstall and stop everything else and finish off with starting. This will make sure that we will not have 2 bundles that might provide the same implementation for an API started at the same time.

The update operation is a special operation used by features where, for example, feature requirements needs to be added or removed to mark the feature as required or not so it will match the state it was on the original system. By Karaf's design, a required feature can be uninstalled whereas as a non-required cannot. Since the goal of the profile migratable is to reset the system in the exact same state it was at the time of export, updating this particular state for features is also important. We therefore will do so using a final step using the UPDATE operation.

  • Enum Constant Details

    • INSTALL

      public static final Operation INSTALL
    • UNINSTALL

      public static final Operation UNINSTALL
    • STOP

      public static final Operation STOP
    • START

      public static final Operation START
    • UPDATE

      public static final Operation UPDATE
  • Method Details

    • values

      public static Operation[] 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 Operation 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
    • getOperatingName

      public String getOperatingName()
      Gets an operating name for this operation (e.g. Starting).
      Returns:
      an operating name for this operation