public enum StandbyState extends Enum<StandbyState> implements Enumeration
Enum Constant and Description |
---|
ColdStandby
The resource is to back up another resource, but it willnot be immediately able
to take over the role of aresource to be backed up and will require
someinitialization activity.
|
HotStandby
The resource is not providing service, but it will beimmediately able to take
over the role of the resource tobe backed up, without the need for
initializationactivity, and will contain the same information as theresource to
be backed up.
|
ProvidingService
The resource is providing service.
|
Unknown
The resource is unable to report standby state.
|
Modifier and Type | Method and Description |
---|---|
static Optional<StandbyState> |
forName(String name)
Return the enumeration member whose
getName() matches specified value. |
static StandbyState |
forValue(int intValue)
Return the enumeration member whose
getIntValue() matches specified value. |
int |
getIntValue()
Returns the assigned value of the enumeration item as it is specified in the input YANG.
|
String |
getName()
Returns the assigned name of the enumeration item as it is specified in the input YANG.
|
static StandbyState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandbyState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandbyState Unknown
public static final StandbyState HotStandby
public static final StandbyState ColdStandby
public static final StandbyState ProvidingService
public static StandbyState[] values()
for (StandbyState c : StandbyState.values()) System.out.println(c);
public static StandbyState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
Enumeration
getName
in interface Enumeration
public int getIntValue()
Enumeration
getIntValue
in interface Enumeration
public static Optional<StandbyState> forName(String name)
getName()
matches specified value.name
- YANG assigned nameNullPointerException
- if name is nullpublic static StandbyState forValue(int intValue)
getIntValue()
matches specified value.intValue
- integer valueCopyright © 2019 OpenDaylight. All rights reserved.