Enum Class IP2LocationAdminConfig.RecoveryMode
java.lang.Object
java.lang.Enum<IP2LocationAdminConfig.RecoveryMode>
com.iizix.server.geo.ip2location.IP2LocationAdminConfig.RecoveryMode
- All Implemented Interfaces:
Serializable, Comparable<IP2LocationAdminConfig.RecoveryMode>, Constable
- Enclosing class:
IP2LocationAdminConfig
public static enum IP2LocationAdminConfig.RecoveryMode extends Enum<IP2LocationAdminConfig.RecoveryMode>
The recovery action when the error thresholds are exceeded, the three radio buttons of the Recovery Settings dialog; one to one with
RecoveryConfig.RecoveryAction.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAutomatic: the service clears its databases and downloads fresh copies, bounded by the maximum attempts and the cooldown.Disable the service until an administrator intervenes.Notify only: the recovery is recommended to the administrator, nothing is done.Method Summary
Modifier and TypeMethodDescriptionGets the mode of a name, leniently.Returns the enum constant of this class with the specified name.static IP2LocationAdminConfig.RecoveryMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
NOTIFY_ONLY
Notify only: the recovery is recommended to the administrator, nothing is done.AUTOMATIC
Automatic: the service clears its databases and downloads fresh copies, bounded by the maximum attempts and the cooldown.DISABLE_SERVICE
Disable the service until an administrator intervenes.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
fromName
Gets the mode of a name, leniently.- Parameters:
name- The enum name, or null.- Returns:
- The mode,
NOTIFY_ONLYfor null, an empty or an unknown name.