|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.utils.WrappedRunnable
org.apache.cassandra.io.util.DiskAwareRunnable
public abstract class DiskAwareRunnable
Constructor Summary | |
---|---|
DiskAwareRunnable()
|
Method Summary | |
---|---|
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 . |
Methods inherited from class org.apache.cassandra.utils.WrappedRunnable |
---|
run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiskAwareRunnable()
Method Detail |
---|
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 on
java.lang.Exception
public abstract long getExpectedWriteSize()
public boolean reduceScopeForLimitedSpace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |