Enum SimpleStrategyMBean.HAStatus

    • Enum Constant Detail

      • ORPHANED

        public static final SimpleStrategyMBean.HAStatus ORPHANED
        A partition is orphaned when there are no storage-enabled member of the service that holds a primary copy of that partition. A PartitionedService that has one or more orphaned partitions is in an orphaned HA state.
      • ENDANGERED

        public static final SimpleStrategyMBean.HAStatus ENDANGERED
        Loss of a cluster node that runs a PartitionedService may cause data loss.
      • MACHINE_SAFE

        public static final SimpleStrategyMBean.HAStatus MACHINE_SAFE
        The cluster nodes running on a machine can be stopped simultaneously without any data loss.
      • RACK_SAFE

        public static final SimpleStrategyMBean.HAStatus RACK_SAFE
        The cluster nodes running on a rack can be stopped simultaneously without any data loss.
      • SITE_SAFE

        public static final SimpleStrategyMBean.HAStatus SITE_SAFE
        The cluster nodes running at a site can be stopped simultaneously without any data loss.
    • Method Detail

      • values

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

        public static SimpleStrategyMBean.HAStatus 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
      • getCode

        public int getCode()
        Return the integer representation of the HAStatus.
        Returns:
        an integer representation of the HAStatus