public final class RamFileSystemConfigBuilder extends FileSystemConfigBuilder
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
MAX_SIZE_KEY
max size key.
|
private static RamFileSystemConfigBuilder |
SINGLETON
config builder SINGLETON.
|
Modifier | Constructor and Description |
---|---|
private |
RamFileSystemConfigBuilder()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Class<? extends FileSystem> |
getConfigClass()
Gets the target of this configuration.
|
static RamFileSystemConfigBuilder |
getInstance()
Gets the singleton builder.
|
long |
getLongMaxSize(FileSystemOptions opts)
Defaults to
Integer.MAX_VALUE . |
int |
getMaxSize(FileSystemOptions opts)
Defaults to
Integer.MAX_VALUE . |
void |
setMaxSize(FileSystemOptions opts,
int sizeInBytes)
Deprecated.
|
void |
setMaxSize(FileSystemOptions opts,
long sizeInBytes)
Sets the maximum size of the file system.
|
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURI
private static final java.lang.String MAX_SIZE_KEY
private static final RamFileSystemConfigBuilder SINGLETON
public static RamFileSystemConfigBuilder getInstance()
protected java.lang.Class<? extends FileSystem> getConfigClass()
getConfigClass
in class FileSystemConfigBuilder
public long getLongMaxSize(FileSystemOptions opts)
Integer.MAX_VALUE
.opts
- The FileSystem options.setMaxSize(FileSystemOptions, long)
public int getMaxSize(FileSystemOptions opts)
Integer.MAX_VALUE
.opts
- The FileSystem options.setMaxSize(FileSystemOptions, int)
@Deprecated public void setMaxSize(FileSystemOptions opts, int sizeInBytes)
setMaxSize(FileSystemOptions, long)
opts
- The FileSystem options.sizeInBytes
- The maximum file size.public void setMaxSize(FileSystemOptions opts, long sizeInBytes)
opts
- The FileSystem options.sizeInBytes
- The maximum file size.