Class ZKReplicationQueueStorageForMigration
java.lang.Object
org.apache.hadoop.hbase.replication.ZKReplicationStorageBase
org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration
Just retain a small set of the methods for the old zookeeper based replication queue storage, for
migrating.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ZKReplicationQueueStorageForMigration.MigrationIteratorprivate final StringThe name of the znode that contains queues of hfile references to be replicatedprivate static final org.slf4j.Loggerprivate final StringThe name of the znode that contains all replication queues(package private) static final Stringprivate final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.hadoop.hbase.replication.ZKReplicationStorageBase
conf, REPLICATION_ZNODE, REPLICATION_ZNODE_DEFAULT, replicationZNode, zookeeper -
Constructor Summary
ConstructorsConstructorDescriptionZKReplicationQueueStorageForMigration(ZKWatcher zookeeper, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate StringgetFileNode(String queueNode, String fileName) private StringgetFileNode(ServerName serverName, String queueId, String fileName) private StringgetHFileRefsPeerNode(String peerId) (package private) Stringprivate StringgetQueueNode(ServerName serverName, String queueId) (package private) String(package private) Stringprivate StringgetRsNode(ServerName serverName) booleanhasData()Pair<PeerId, List<HFileRefs>>ZKReplicationQueueStorageForMigration.MigrationIterator<List<ZKReplicationQueueStorageForMigration.ZkLastPushedSeqId>>ZKReplicationQueueStorageForMigration.MigrationIterator<Pair<ServerName,List<ZKReplicationQueueStorageForMigration.ZkReplicationQueueData>>> Methods inherited from class org.apache.hadoop.hbase.replication.ZKReplicationStorageBase
toByteArray
-
Field Details
-
LOG
-
ZOOKEEPER_ZNODE_REPLICATION_HFILE_REFS_KEY
- See Also:
-
ZOOKEEPER_ZNODE_REPLICATION_HFILE_REFS_DEFAULT
- See Also:
-
ZOOKEEPER_ZNODE_REPLICATION_REGIONS_KEY
- See Also:
-
ZOOKEEPER_ZNODE_REPLICATION_REGIONS_DEFAULT
- See Also:
-
queuesZNode
The name of the znode that contains all replication queues -
hfileRefsZNode
The name of the znode that contains queues of hfile references to be replicated -
regionsZNode
-
EMPTY_ITER
-
REGION_REPLICA_REPLICATION_PEER
- See Also:
-
-
Constructor Details
-
ZKReplicationQueueStorageForMigration
public ZKReplicationQueueStorageForMigration(ZKWatcher zookeeper, org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
getRsNode
-
getQueueNode
-
getFileNode
-
getFileNode
-
listAllQueues
public ZKReplicationQueueStorageForMigration.MigrationIterator<Pair<ServerName,List<ZKReplicationQueueStorageForMigration.ZkReplicationQueueData>>> listAllQueues() throws org.apache.zookeeper.KeeperException- Throws:
org.apache.zookeeper.KeeperException
-
listAllLastPushedSeqIds
public ZKReplicationQueueStorageForMigration.MigrationIterator<List<ZKReplicationQueueStorageForMigration.ZkLastPushedSeqId>> listAllLastPushedSeqIds() throws org.apache.zookeeper.KeeperException- Throws:
org.apache.zookeeper.KeeperException
-
getHFileRefsPeerNode
-
listAllHFileRefs
public ZKReplicationQueueStorageForMigration.MigrationIterator<Pair<String,List<String>>> listAllHFileRefs() throws org.apache.zookeeper.KeeperExceptionPair<PeerId, List<HFileRefs>>- Throws:
org.apache.zookeeper.KeeperException
-
hasData
- Throws:
org.apache.zookeeper.KeeperException
-
deleteAllData
- Throws:
org.apache.zookeeper.KeeperException
-
getQueuesZNode
-
getHfileRefsZNode
-
getRegionsZNode
-