public static enum ClusterBackup.State extends Enum<ClusterBackup.State>
| Enum Constant and Description |
|---|
BACKING_UP
Back up live log and track progress until next query deadline is reached.
|
BACKUP_QUERY
Query leader for current status for backup.
|
CLOSED
The backup is complete and closed.
|
LIVE_LOG_RECORD
Setup recording for live log.
|
LIVE_LOG_REPLAY
Replay the current live log since snapshot and join it.
|
RESET_BACKUP
On error or progress stall the backup is reset and started over again.
|
SNAPSHOT_RETRIEVE
Retrieve a copy of the latest snapshot from the leader.
|
UPDATE_RECORDING_LOG
Update the local
RecordingLog for recovery. |
| Modifier and Type | Method and Description |
|---|---|
int |
code()
Code which represents the
ClusterBackup.State as an int. |
static ClusterBackup.State |
get(AtomicCounter counter)
Get the
ClusterBackup.State encoded in an AtomicCounter. |
static ClusterBackup.State |
get(long code)
Get the
ClusterBackup.State with matching code(). |
static ClusterBackup.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClusterBackup.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusterBackup.State BACKUP_QUERY
public static final ClusterBackup.State SNAPSHOT_RETRIEVE
public static final ClusterBackup.State LIVE_LOG_RECORD
public static final ClusterBackup.State LIVE_LOG_REPLAY
public static final ClusterBackup.State UPDATE_RECORDING_LOG
RecordingLog for recovery.public static final ClusterBackup.State BACKING_UP
public static final ClusterBackup.State RESET_BACKUP
public static final ClusterBackup.State CLOSED
public static ClusterBackup.State[] values()
for (ClusterBackup.State c : ClusterBackup.State.values()) System.out.println(c);
public static ClusterBackup.State 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 int code()
ClusterBackup.State as an int.ClusterBackup.State as an int.public static ClusterBackup.State get(AtomicCounter counter)
ClusterBackup.State encoded in an AtomicCounter.counter - to get the current state for.ClusterBackup.ClusterException - if the counter is not one of the valid values.public static ClusterBackup.State get(long code)
ClusterBackup.State with matching code().code - to lookup.ClusterBackup.State matching code().Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.