Class RandomOnDiskUsableSpaceStrategy
- java.lang.Object
-
- org.apache.iotdb.db.conf.directories.strategy.DirectoryStrategy
-
- org.apache.iotdb.db.conf.directories.strategy.RandomOnDiskUsableSpaceStrategy
-
public class RandomOnDiskUsableSpaceStrategy extends DirectoryStrategy
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.conf.directories.strategy.DirectoryStrategy
logger
-
-
Constructor Summary
Constructors Constructor Description RandomOnDiskUsableSpaceStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Long>getFolderUsableSpaceList()get space list of all folders.intnextFolderIndex()Choose a folder to allocate.-
Methods inherited from class org.apache.iotdb.db.conf.directories.strategy.DirectoryStrategy
setFolders
-
-
-
-
Method Detail
-
nextFolderIndex
public int nextFolderIndex() throws DiskSpaceInsufficientExceptionDescription copied from class:DirectoryStrategyChoose a folder to allocate. The user should implement this method to define his own strategy.- Specified by:
nextFolderIndexin classDirectoryStrategy- Returns:
- the index of folder that will be allocated
- Throws:
DiskSpaceInsufficientException
-
getFolderUsableSpaceList
public java.util.List<java.lang.Long> getFolderUsableSpaceList()
get space list of all folders.
-
-