Enum SteeringPolicyRule.RuleType

  • All Implemented Interfaces:
    BmcEnum, Serializable, Comparable<SteeringPolicyRule.RuleType>
    Enclosing class:
    SteeringPolicyRule

    public static enum SteeringPolicyRule.RuleType
    extends Enum<SteeringPolicyRule.RuleType>
    implements BmcEnum
    The type of a rule determines its sorting/filtering behavior.
    • FILTER - Filters the list of answers based on their defined boolean data. Answers remain only if their shouldKeep value is true.

    * HEALTH - Removes answers from the list if their rdata matches a target in the health check monitor referenced by the steering policy and the target is reported down.

    * WEIGHTED - Uses a number between 0 and 255 to determine how often an answer will be served in relation to other answers. Anwers with a higher weight will be served more frequently.

    * PRIORITY - Uses a defined rank value of answers to determine which answer to serve, moving those with the lowest values to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.

    * LIMIT - Filters answers that are too far down the list. Parameter defaultCount specifies how many answers to keep. **Example:** If defaultCount has a value of 2 and there are five answers left, when the LIMIT rule is processed, only the first two answers will remain in the list.

    • Method Detail

      • values

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

        public static SteeringPolicyRule.RuleType 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