public static enum LedgerMetadata.State extends java.lang.Enum<LedgerMetadata.State>
Enum Constant and Description |
---|
CLOSED
The ledger is closed.
|
IN_RECOVERY
A reader has tried to, or may be trying to recover the ledger.
|
OPEN
The ledger is open.
|
Modifier and Type | Method and Description |
---|---|
static LedgerMetadata.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LedgerMetadata.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LedgerMetadata.State OPEN
public static final LedgerMetadata.State IN_RECOVERY
public static final LedgerMetadata.State CLOSED
public static LedgerMetadata.State[] values()
for (LedgerMetadata.State c : LedgerMetadata.State.values()) System.out.println(c);
public static LedgerMetadata.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.