Enum Class PluginState

java.lang.Object
java.lang.Enum<PluginState>
org.gcube.vremanagement.executor.plugin.PluginState
All Implemented Interfaces:
Serializable, Comparable<PluginState>, Constable

public enum PluginState extends Enum<PluginState>
Author:
Luca Frosini (ISTI - CNR)
  • Enum Constant Details

    • CREATED

      public static final PluginState CREATED
      The Task is created but not still running
    • RUNNING

      public static final PluginState RUNNING
      The Task is running
    • STOPPED

      public static final PluginState STOPPED
      The Task has been stopped
    • DONE

      public static final PluginState DONE
      The Task terminated successfully
    • FAILED

      public static final PluginState FAILED
      The Task failed the execution
    • DISCARDED

      public static final PluginState DISCARDED
      The Task has been discarded by the scheduler. This happen only for repetitive or recurrent tasks and only when the launch parameter require that the previous task must be completed.
  • Method Details

    • values

      public static PluginState[] 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 PluginState 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
    • isFinalState

      public boolean isFinalState()
      Return true when the state a is a final state and the job cannot move in any other state
      Returns:
      if is a Final State
    • toString

      public String toString()
      Overrides:
      toString in class Enum<PluginState>