|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SrvMonAppStoreBindingRole>
com.neeve.server.mon.SrvMonAppStoreBindingRole
@Generated(value="com.neeve.adm.AdmEnumeration", date="Wed Mar 28 10:54:31 EDT 2018") public enum SrvMonAppStoreBindingRole
Enumerates possible store roles.
The store enabled HA for an application. By association, the store's HA role dictates and application's HA role.
Enum Constant Summary | |
---|---|
Backup
Indicates that the store (and by extension the application) is operating as a backup to a cluster leader. |
|
Primary
Indicates that the store (and by extension the application) is the current cluster leader. |
|
Unknown
Indicates that the store role is unkown or invalid. |
Field Summary | |
---|---|
static SrvMonAppStoreBindingRole[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays. |
int |
val
|
static List<SrvMonAppStoreBindingRole> |
VALUES
A zero garbage alternative to values() . |
Method Summary | |
---|---|
static SrvMonAppStoreBindingRole |
fromCode(int code)
Gets the value corresponding to the provided int 'code' value. |
static SrvMonAppStoreBindingRole |
fromCodeString(String value)
Gets the value corresponding to the provided 'code' value in its String form. |
static SrvMonAppStoreBindingRole |
fromValue(int val)
Gets the value corresponding to the provided 'constant' value. |
String |
getCodeString()
Gets the code value for this enumeration as a String. |
static Class<?> |
getCodeType()
Gets the code type with which this enumeration was generated. |
static boolean |
hasValue(int val)
Tests if the passed in value represents a 'constant' in this enumeration. |
static SrvMonAppStoreBindingRole |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SrvMonAppStoreBindingRole[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SrvMonAppStoreBindingRole Primary
public static final SrvMonAppStoreBindingRole Backup
public static final SrvMonAppStoreBindingRole Unknown
Field Detail |
---|
public static final List<SrvMonAppStoreBindingRole> VALUES
values()
.
public static final SrvMonAppStoreBindingRole[] EMPTY_ARRAY
public final int val
Method Detail |
---|
public static SrvMonAppStoreBindingRole[] values()
for (SrvMonAppStoreBindingRole c : SrvMonAppStoreBindingRole.values()) System.out.println(c);
public static SrvMonAppStoreBindingRole valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static final boolean hasValue(int val)
val
- The value to test for.
public static final SrvMonAppStoreBindingRole fromValue(int val)
val
- The 'constant' value to look up.
IllegalArgumentException
- if the provided code is not a valid code for this enumpublic static final SrvMonAppStoreBindingRole fromCode(int code)
code
- The int 'code' value to look up.
IllegalArgumentException
- if the provided code is not a valid code for this enumpublic static final SrvMonAppStoreBindingRole fromCodeString(String value)
value
- The String 'code' value to look up.
IllegalArgumentException
- if the provided code is not a valid code for this enumpublic static final Class<?> getCodeType()
public final String getCodeString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |