Package com.oracle.bmc.goldengate.model
Enum SwitchoverDeploymentPeerDetails.Mode
- java.lang.Object
-
- java.lang.Enum<SwitchoverDeploymentPeerDetails.Mode>
-
- com.oracle.bmc.goldengate.model.SwitchoverDeploymentPeerDetails.Mode
-
- All Implemented Interfaces:
BmcEnum,Serializable,Comparable<SwitchoverDeploymentPeerDetails.Mode>
- Enclosing class:
- SwitchoverDeploymentPeerDetails
public static enum SwitchoverDeploymentPeerDetails.Mode extends Enum<SwitchoverDeploymentPeerDetails.Mode> implements BmcEnum
Specifies the switchover mode.SWITCHOVER performs a planned role transition to the standby; FAILOVER performs a forced promotion when the primary is not available.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FailoverSwitchover
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SwitchoverDeploymentPeerDetails.Modecreate(String key)StringgetValue()static SwitchoverDeploymentPeerDetails.ModevalueOf(String name)Returns the enum constant of this type with the specified name.static SwitchoverDeploymentPeerDetails.Mode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Switchover
public static final SwitchoverDeploymentPeerDetails.Mode Switchover
-
Failover
public static final SwitchoverDeploymentPeerDetails.Mode Failover
-
-
Method Detail
-
values
public static SwitchoverDeploymentPeerDetails.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 (SwitchoverDeploymentPeerDetails.Mode c : SwitchoverDeploymentPeerDetails.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 SwitchoverDeploymentPeerDetails.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
-
create
public static SwitchoverDeploymentPeerDetails.Mode create(String key)
-
-