public abstract class DiskAwareRunnable extends WrappedRunnable
Constructor and Description |
---|
DiskAwareRunnable() |
Modifier and Type | Method and Description |
---|---|
protected abstract Directories |
getDirectories()
Get sstable directories for the CF.
|
abstract long |
getExpectedWriteSize()
Get expected write size to determine which disk to use for this task.
|
boolean |
reduceScopeForLimitedSpace()
Called if no disk is available with free space for the full write size.
|
protected void |
runMayThrow()
Run this task after selecting the optimal disk for it
|
protected abstract void |
runWith(java.io.File sstableDirectory)
Executes this task on given
sstableDirectory . |
run
protected void runMayThrow() throws java.lang.Exception
runMayThrow
in class WrappedRunnable
java.lang.Exception
protected abstract Directories getDirectories()
protected abstract void runWith(java.io.File sstableDirectory) throws java.lang.Exception
sstableDirectory
.sstableDirectory
- sstable directory to work onjava.lang.Exception
public abstract long getExpectedWriteSize()
public boolean reduceScopeForLimitedSpace()
Copyright © 2013 The Apache Software Foundation