Enum EnsemblePlacementPolicy.PlacementPolicyAdherence

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EnsemblePlacementPolicy.PlacementPolicyAdherence>
    Enclosing interface:
    EnsemblePlacementPolicy

    public static enum EnsemblePlacementPolicy.PlacementPolicyAdherence
    extends java.lang.Enum<EnsemblePlacementPolicy.PlacementPolicyAdherence>
    enum for PlacementPolicyAdherence. Currently we are supporting tri-value enum for PlacementPolicyAdherence. If placement policy is met strictly then it is MEETS_STRICT, if it doesn't adhere to placement policy then it is FAIL. But there are certain placement policies, like ZoneAwareEnsemblePlacementPolicy which has definition of soft adherence level to support zone down scenarios.
    • Method Detail

      • values

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

        public static EnsemblePlacementPolicy.PlacementPolicyAdherence valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getNumVal

        public int getNumVal()