com.hazelcast.config

## Enum HotRestartClusterDataRecoveryPolicy

- java.lang.Object
- - java.lang.Enum<HotRestartClusterDataRecoveryPolicy>
  - - com.hazelcast.config.HotRestartClusterDataRecoveryPolicy

- All Implemented Interfaces:
    Serializable, Comparable<HotRestartClusterDataRecoveryPolicy>

      public enum HotRestartClusterDataRecoveryPolicy
      extends Enum<HotRestartClusterDataRecoveryPolicy>

  Specifies the policy that will be respected during hot restart cluster start

- - ### Enum Constant Summary

    Enum Constants
    Enum Constant and Description
    `FULL_RECOVERY_ONLY` Starts the cluster only when all expected nodes are present and correct.
    `PARTIAL_RECOVERY_MOST_COMPLETE` Starts the cluster with the largest group of members which have the same partition table version and successfully restored their data.
    `PARTIAL_RECOVERY_MOST_RECENT` Starts the cluster with the members which have most up-to-date partition table and successfully restored their data.

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static HotRestartClusterDataRecoveryPolicy` | `valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static HotRestartClusterDataRecoveryPolicy[]` | `values()` Returns an array containing the constants of this enum type, in the order they are declared.

    - ### Methods inherited from class java.lang.Enum

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Enum Constant Detail

    - #### FULL_RECOVERY_ONLY

          public static final HotRestartClusterDataRecoveryPolicy FULL_RECOVERY_ONLY

      Starts the cluster only when all expected nodes are present and correct. Otherwise, it fails.

    - #### PARTIAL_RECOVERY_MOST_RECENT

          public static final HotRestartClusterDataRecoveryPolicy PARTIAL_RECOVERY_MOST_RECENT

      Starts the cluster with the members which have most up-to-date partition table and successfully restored their data. All other members will leave the cluster and force-start themselves. If no member restores its data successfully, cluster start fails.

    - #### PARTIAL_RECOVERY_MOST_COMPLETE

          public static final HotRestartClusterDataRecoveryPolicy PARTIAL_RECOVERY_MOST_COMPLETE

      Starts the cluster with the largest group of members which have the same partition table version and successfully restored their data. All other members will leave the cluster and force-start themselves. If no member restores its data successfully, cluster start fails.

  - ### Method Detail

    - #### values

          public static HotRestartClusterDataRecoveryPolicy[] 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 (HotRestartClusterDataRecoveryPolicy c : HotRestartClusterDataRecoveryPolicy.values())
              System.out.println(c);

      Returns:
        an array containing the constants of this enum type, in the order they are declared

    - #### valueOf

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

Copyright © 2018. All rights reserved.