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
Modifier and TypeClassDescriptionstatic interface
static final class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ZKReplicationQueueStorageForMigration.MigrationIterator
private final String
The name of the znode that contains queues of hfile references to be replicatedprivate final String
The name of the znode that contains all replication queuesprivate final String
static final String
static final String
static final String
static final String
Fields inherited from class org.apache.hadoop.hbase.replication.ZKReplicationStorageBase
conf, REPLICATION_ZNODE, REPLICATION_ZNODE_DEFAULT, replicationZNode, zookeeper
-
Constructor Summary
ConstructorDescriptionZKReplicationQueueStorageForMigration
(ZKWatcher zookeeper, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private String
getFileNode
(String queueNode, String fileName) private String
getFileNode
(ServerName serverName, String queueId, String fileName) private String
getHFileRefsPeerNode
(String peerId) (package private) String
private String
getQueueNode
(ServerName serverName, String queueId) (package private) String
(package private) String
private String
getRsNode
(ServerName serverName) boolean
hasData()
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
-
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
-
-
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
-