Enum SingletonManager.Mode
- java.lang.Object
-
- java.lang.Enum<SingletonManager.Mode>
-
- org.apache.accumulo.core.singletons.SingletonManager.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<SingletonManager.Mode>
- Enclosing class:
- SingletonManager
public static enum SingletonManager.Mode extends Enum<SingletonManager.Mode>
These enums determine the behavior of the SingletonManager.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT
In this mode singletons are disabled when the number of active client reservations goes to zero.CLOSED
In this mode singletons are permanently disabled and entering this mode prevents transitioning to other modes.SERVER
In this mode singletons are never disabled, unless the CLOSED mode is entered.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SingletonManager.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static SingletonManager.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLIENT
public static final SingletonManager.Mode CLIENT
In this mode singletons are disabled when the number of active client reservations goes to zero.
-
SERVER
public static final SingletonManager.Mode SERVER
In this mode singletons are never disabled, unless the CLOSED mode is entered.
-
CLOSED
public static final SingletonManager.Mode CLOSED
In this mode singletons are permanently disabled and entering this mode prevents transitioning to other modes.
-
-
Method Detail
-
values
public static SingletonManager.Mode[] 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 (SingletonManager.Mode c : SingletonManager.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SingletonManager.Mode 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 nameNullPointerException
- if the argument is null
-
-