Enum PersistTaskStage

    • Enum Constant Detail

      • PREPARE

        public static final PersistTaskStage PREPARE
        From the moment the task was created till the moment the task is marked as complete
      • TASK_WITH_METADATA_READY

        public static final PersistTaskStage TASK_WITH_METADATA_READY
        Task is complete and waiting to be executed. Should be used by tasks with associated metadata (file content, information about saved/deleted files, etc)
      • TASK_READY

        public static final PersistTaskStage TASK_READY
        Task is complete and waiting to be executed. Should be used by runnable tasks which do not have any metadata and should be executed by the node which created it
      • EXECUTING

        public static final PersistTaskStage EXECUTING
        Task is being applied to configs directory
      • RUNNING_POST_EXECUTE_ACTION

        public static final PersistTaskStage RUNNING_POST_EXECUTE_ACTION
        Task is running some post execute action (commits changes to VCS, etc)
    • Method Detail

      • values

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

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