Enum SupervisorStateManager.BasicState

    • Method Detail

      • values

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

        public static SupervisorStateManager.BasicState 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
      • isFirstRunOnly

        public boolean isFirstRunOnly()
        Description copied from interface: SupervisorStateManager.State
        It may be helpful to provide more detailed state information (e.g. CONNECTING_TO_STREAM, CREATING_TASKS, etc.) during the first run of the supervisor so that if the supervisor is unable to complete the run, we have information about what stage it was in when it failed. Once the supervisor is stable, we may not be as concerned about all the stages it cycles through, and just want to know if it's healthy or unhealthy. This flag indicates if the state should only be accepted prior to having completed a successful run.
        Specified by:
        isFirstRunOnly in interface SupervisorStateManager.State