public class GarbageCollectWriteAheadLogs extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
collect(GCStatus status) |
protected Iterable<Map.Entry<Key,Value>> |
getReplicationStatusForFile(Connector conn,
String wal) |
protected boolean |
neededByReplication(Connector conn,
String wal)
Determine if the given WAL is needed for replication
|
protected int |
removeMetadataEntries(Map<String,org.apache.hadoop.fs.Path> nameToFileMap,
Map<String,org.apache.hadoop.fs.Path> sortedWALogs,
GCStatus status) |
protected int |
removeReplicationEntries(Map<String,org.apache.hadoop.fs.Path> nameToFileMap,
Map<String,org.apache.hadoop.fs.Path> sortedWALogs,
GCStatus status) |
public void collect(GCStatus status)
protected int removeMetadataEntries(Map<String,org.apache.hadoop.fs.Path> nameToFileMap, Map<String,org.apache.hadoop.fs.Path> sortedWALogs, GCStatus status) throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionprotected int removeReplicationEntries(Map<String,org.apache.hadoop.fs.Path> nameToFileMap, Map<String,org.apache.hadoop.fs.Path> sortedWALogs, GCStatus status) throws IOException, org.apache.zookeeper.KeeperException, InterruptedException
IOExceptionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionprotected boolean neededByReplication(Connector conn, String wal)
wal - The full path (URI)Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.