@InterfaceAudience.Public public enum SyncReplicationState extends Enum<SyncReplicationState>
ACTIVE,
DOWNGRADE_ACTIVE or STANDBY.
For asynchronous replication, the state is NONE.
| Enum Constant and Description |
|---|
ACTIVE |
DOWNGRADE_ACTIVE |
NONE |
STANDBY |
| Modifier and Type | Method and Description |
|---|---|
static SyncReplicationState |
parseFrom(byte[] bytes) |
static Pair<SyncReplicationState,SyncReplicationState> |
parseStateAndNewStateFrom(byte[] bytes) |
static byte[] |
toByteArray(SyncReplicationState state) |
static byte[] |
toByteArray(SyncReplicationState state,
SyncReplicationState newState) |
int |
value() |
static SyncReplicationState |
valueOf(int value) |
static SyncReplicationState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SyncReplicationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SyncReplicationState NONE
public static final SyncReplicationState ACTIVE
public static final SyncReplicationState DOWNGRADE_ACTIVE
public static final SyncReplicationState STANDBY
public static SyncReplicationState[] values()
for (SyncReplicationState c : SyncReplicationState.values()) System.out.println(c);
public static SyncReplicationState 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 static SyncReplicationState valueOf(int value)
public int value()
public static byte[] toByteArray(SyncReplicationState state)
public static SyncReplicationState parseFrom(byte[] bytes) throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException
org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferExceptionpublic static byte[] toByteArray(SyncReplicationState state, SyncReplicationState newState)
public static Pair<SyncReplicationState,SyncReplicationState> parseStateAndNewStateFrom(byte[] bytes) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.