Enum WorkerLifecycleStatus

    • Enum Constant Detail

      • REQUESTED

        public static final WorkerLifecycleStatus REQUESTED
        WorkerOrchestrator sets this status right after the user increased the number of workers. REQUESTED workers have no queue table, stream and task created yet.
      • UP_FOR_DELETION

        public static final WorkerLifecycleStatus UP_FOR_DELETION
        WorkerOrchestrator sets this status right after the user decreased the number of workers. UP_FOR_DELETION workers still have queue table, stream and task existing, however no new work would be assigned to them anymore.

        If the worker is currently processing, it won't be deleted until it stops.

      • DELETED

        public static final WorkerLifecycleStatus DELETED
        Worker is deleted. No queue table, stream nor task exist for a worker and it cannot get any work assigned.
    • Method Detail

      • values

        public static WorkerLifecycleStatus[] 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 (WorkerLifecycleStatus c : WorkerLifecycleStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WorkerLifecycleStatus 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