public class SSTableDeletingTask
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
SSTableDeletingTask(Descriptor realDescriptor,
java.util.Set<Component> components,
com.codahale.metrics.Counter totalDiskSpaceUsed,
long bytesOnDisk)
realDescriptor is the actual descriptor for the sstable, the descriptor inside
referent can be 'faked' as FINAL for early opened files.
|
Modifier and Type | Method and Description |
---|---|
static void |
pauseDeletions(boolean stop) |
static void |
rescheduleFailedTasks()
Retry all deletions that failed the first time around (presumably b/c the sstable was still mmap'd.)
Useful because there are times when we know GC has been invoked; also exposed as an mbean.
|
void |
run() |
static void |
waitForDeletions()
for tests
|
public SSTableDeletingTask(Descriptor realDescriptor, java.util.Set<Component> components, com.codahale.metrics.Counter totalDiskSpaceUsed, long bytesOnDisk)
public void run()
run
in interface java.lang.Runnable
public static void rescheduleFailedTasks()
public static void waitForDeletions()
public static void pauseDeletions(boolean stop)
Copyright © 2018 The Apache Software Foundation