public class AllocateRandom extends AllocateStrategyBase
Constructor and Description |
---|
AllocateRandom() |
Modifier and Type | Method and Description |
---|---|
StorageDir |
getStorageDir(StorageDir[] storageDirs,
long userId,
long requestBytes)
Allocate space on StorageDirs.
|
fitInPossible
public StorageDir getStorageDir(StorageDir[] storageDirs, long userId, long requestBytes)
AllocateStrategy
storageDirs
- candidates of StorageDirs that space will be allocated inuserId
- id of userrequestBytes
- size to request in bytesCopyright © 2015. All Rights Reserved.