|
||||||||||
| 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 | |
|---|---|
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 dataDirectory)
Executes this task on given dataDirectory. |
| 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 WrappedRunnablejava.lang.Exception
protected abstract void runWith(java.io.File dataDirectory)
throws java.lang.Exception
dataDirectory.
dataDirectory - data directory to work on
java.lang.Exceptionpublic abstract long getExpectedWriteSize()
public boolean reduceScopeForLimitedSpace()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||