org.apache.accumulo.gc
public class GarbageCollectWriteAheadLogs extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
collect(GCStatus status)
Removes all the WAL files that are no longer used.
|
protected boolean |
timeToDelete(com.google.common.net.HostAndPort address,
long wait)
Determine if TServer has been dead long enough to remove associated WALs.
|
public void collect(GCStatus status)
This method is not Threadsafe. SimpleGarbageCollector#run does not invoke collect in a concurrent manner.
status - GCStatus objectprotected boolean timeToDelete(com.google.common.net.HostAndPort address,
long wait)
Uses a map where the key is the address and the value is the time first seen dead. If the address is not in the map, it is added with the current system nanoTime. When the passed in wait time has elapsed, this method returns true and removes the key and value from the map.
address - HostAndPort of dead tserverwait - long value of elapsed millis to waitCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.