public class LedgerMetadata extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CURRENT_METADATA_FORMAT_VERSION |
static int |
IN_RECOVERY |
static int |
LOWEST_COMPAT_METADATA_FORMAT_VERSION |
static int |
NOTCLOSED |
static String |
VERSION_KEY |
Constructor and Description |
---|
LedgerMetadata(int ensembleSize,
int quorumSize) |
Modifier and Type | Method and Description |
---|---|
SortedMap<Long,ArrayList<InetSocketAddress>> |
getEnsembles()
Get the Map of bookie ensembles for the various ledger fragments
that make up the ledger.
|
int |
getZnodeVersion()
Returns the last znode version.
|
byte[] |
serialize()
Generates a byte array of this object
|
void |
updateZnodeStatus(org.apache.zookeeper.data.Stat stat)
Updates the status of this metadata in ZooKeeper.
|
public static final int NOTCLOSED
public static final int IN_RECOVERY
public static final int LOWEST_COMPAT_METADATA_FORMAT_VERSION
public static final int CURRENT_METADATA_FORMAT_VERSION
public static final String VERSION_KEY
public SortedMap<Long,ArrayList<InetSocketAddress>> getEnsembles()
public byte[] serialize()
public void updateZnodeStatus(org.apache.zookeeper.data.Stat stat)
stat
- public int getZnodeVersion()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.