Package org.apache.cassandra.io.util
Class FileStoreUtils
java.lang.Object
org.apache.cassandra.io.util.FileStoreUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic longtryGetSpace(FileStore filestore, PathUtils.IOToLongFunction<FileStore> getSpace) Try and get the total space of the given filestorestatic longtryGetSpace(FileStore filestore, PathUtils.IOToLongFunction<FileStore> getSpace, Consumer<IOException> orElse)
-
Method Details
-
tryGetSpace
Try and get the total space of the given filestore- Returns:
- long value of available space if no errors Long.MAX_VALUE if on a large file system that overflows 0 on exception during IOToLongFunction
-
tryGetSpace
public static long tryGetSpace(FileStore filestore, PathUtils.IOToLongFunction<FileStore> getSpace, Consumer<IOException> orElse)
-