public abstract class AllocateStrategyBase extends Object implements AllocateStrategy
Constructor and Description |
---|
AllocateStrategyBase() |
Modifier and Type | Method and Description |
---|---|
boolean |
fitInPossible(StorageDir[] storageDirs,
long requestSizeBytes)
Check whether it is possible to get enough space by evicting some blocks
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStorageDir
public boolean fitInPossible(StorageDir[] storageDirs, long requestSizeBytes)
AllocateStrategy
fitInPossible
in interface AllocateStrategy
storageDirs
- candidates of StorageDirs which space will be allocated inrequestSizeBytes
- requested space in bytesCopyright © 2015. All Rights Reserved.