@InterfaceAudience.Private public class ReplicationZKNodeCleaner extends Object
Constructor and Description |
---|
ReplicationZKNodeCleaner(org.apache.hadoop.conf.Configuration conf,
ZooKeeperWatcher zkw,
Abortable abortable) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getUnDeletedHFileRefsQueues() |
Map<String,List<String>> |
getUnDeletedQueues() |
void |
removeHFileRefsQueues(Set<String> undeletedHFileRefsQueues)
Remove the undeleted hfile-refs queue's zk node for removed peers.
|
void |
removeQueues(Map<String,List<String>> undeletedQueues)
Remove the undeleted replication queue's zk node for removed peers.
|
public ReplicationZKNodeCleaner(org.apache.hadoop.conf.Configuration conf, ZooKeeperWatcher zkw, Abortable abortable) throws IOException
IOException
public Map<String,List<String>> getUnDeletedQueues() throws IOException
IOException
public Set<String> getUnDeletedHFileRefsQueues() throws IOException
IOException
public void removeQueues(Map<String,List<String>> undeletedQueues) throws IOException
undeletedQueues
- replicator with its queueIds for removed peersIOException
public void removeHFileRefsQueues(Set<String> undeletedHFileRefsQueues) throws IOException
undeletedHFileRefsQueues
- replicator with its undeleted queueIds for removed peers in
hfile-refs queueIOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.