@InterfaceAudience.Private public class ReplicationZKNodeCleaner extends Object
Modifier and Type | Class and Description |
---|---|
private class |
ReplicationZKNodeCleaner.ReplicationQueueDeletor |
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private ReplicationZKNodeCleaner.ReplicationQueueDeletor |
queueDeletor |
private ReplicationQueuesClient |
queuesClient |
private ReplicationPeers |
replicationPeers |
private ZKWatcher |
zkw |
Constructor and Description |
---|
ReplicationZKNodeCleaner(org.apache.hadoop.conf.Configuration conf,
ZKWatcher 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.
|
private static final org.slf4j.Logger LOG
private final ReplicationQueuesClient queuesClient
private final ReplicationPeers replicationPeers
private final ReplicationZKNodeCleaner.ReplicationQueueDeletor queueDeletor
public ReplicationZKNodeCleaner(org.apache.hadoop.conf.Configuration conf, ZKWatcher 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.