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. |
runprotected void runMayThrow()
throws java.lang.Exception
runMayThrow in class WrappedRunnablejava.lang.Exceptionprotected abstract Directories getDirectories()
protected abstract void runWith(java.io.File sstableDirectory)
throws java.lang.Exception
sstableDirectory.sstableDirectory - sstable directory to work onjava.lang.Exceptionpublic abstract long getExpectedWriteSize()
public boolean reduceScopeForLimitedSpace()
Copyright © 2014 The Apache Software Foundation