Enum ActivityState.State

  • All Implemented Interfaces:
    Serializable, Comparable<ActivityState.State>
    Enclosing class:
    ActivityState

    public static enum ActivityState.State
    extends Enum<ActivityState.State>
    An enumeration for the state of the component of an activity. This is just a simple enumeration, in state RUNNING there may also be a signal which can be obtained from an ActivityState.
    Author:
    Ulrich Kreher
    • Enum Constant Detail

      • REGISTERED

        public static final ActivityState.State REGISTERED
        The activity is registered for execution but the corresponding component is not initialised yet.
      • INITIALISING

        public static final ActivityState.State INITIALISING
        The component for the activity is currently initialising.
      • RUNNING

        public static final ActivityState.State RUNNING
        The component for the activity is currently executing.
      • TERMINATING

        public static final ActivityState.State TERMINATING
        The component for the activity has finished executing and is currently terminating.
      • TERMINATED

        public static final ActivityState.State TERMINATED
        The component for the activity has finished executing and has terminated. This is only relevant in case the component has just terminated or some information need to be kept in the runtime manager, for instance a URL for notifying the resume of the activity.
      • TERMINATED_PENDING

        public static final ActivityState.State TERMINATED_PENDING
        The component for the activity has finished executing and has terminated but activity termination could not be signalled to the execution manager. The termination signal is pending. This is only relevant in case of a persisting activity termination.
    • Method Detail

      • values

        public static ActivityState.State[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ActivityState.State c : ActivityState.State.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ActivityState.State valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null