public abstract class FileSystemConfigBuilder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
FileSystemConfigBuilder()
Constructs builder with default prefix.
|
protected |
FileSystemConfigBuilder(String component)
Constructs builder with specified component name.
|
| Modifier and Type | Method and Description |
|---|---|
protected Boolean |
getBoolean(FileSystemOptions fileSystemOptions,
String name)
Gets a named option as a Boolean.
|
protected boolean |
getBoolean(FileSystemOptions fileSystemOptions,
String name,
boolean defaultValue)
Gets a named option as a Boolean.
|
protected Boolean |
getBoolean(FileSystemOptions fileSystemOptions,
String name,
Boolean defaultValue)
Gets a named option as a Boolean.
|
protected Byte |
getByte(FileSystemOptions fileSystemOptions,
String name)
Gets a named option as a Byte.
|
protected byte |
getByte(FileSystemOptions fileSystemOptions,
String name,
byte defaultValue)
Gets a named option as a Byte.
|
protected Byte |
getByte(FileSystemOptions fileSystemOptions,
String name,
Byte defaultValue)
Gets a named option as a Byte.
|
protected Character |
getCharacter(FileSystemOptions fileSystemOptions,
String name)
Gets a named option as a Character.
|
protected char |
getCharacter(FileSystemOptions fileSystemOptions,
String name,
char defaultValue)
Gets a named option as a Character.
|
protected Character |
getCharacter(FileSystemOptions fileSystemOptions,
String name,
Character defaultValue)
Gets a named option as a Character.
|
protected abstract Class<? extends FileSystem> |
getConfigClass()
Gets the target of this configuration.
|
protected Double |
getDouble(FileSystemOptions fileSystemOptions,
String name)
Gets a named option as a Double.
|
protected double |
getDouble(FileSystemOptions fileSystemOptions,
String name,
double defaultValue)
Gets a named option as a Double.
|
protected Double |
getDouble(FileSystemOptions fileSystemOptions,
String name,
Double defaultValue)
Gets a named option as a Double.
|
protected Duration |
getDuration(FileSystemOptions fileSystemOptions,
String name)
Gets a named option as a Duration.
|
protected Duration |
getDuration(FileSystemOptions fileSystemOptions,
String name,
Duration defaultValue)
Gets a named option as a Duration.
|
protected Integer |
getDurationInteger(FileSystemOptions fileSystemOptions,
String name)
Gets a named option as a Duration bound to the integer range.
|
protected Integer |
getDurationInteger(FileSystemOptions fileSystemOptions,
String name,
Duration defaultValue)
Gets a named option as a Duration bound to the integer range.
|
protected <E extends Enum<E>> |
getEnum(Class<E> enumClass,
FileSystemOptions fileSystemOptions,
String name)
Gets a named option as a Double.
|
protected <E extends Enum<E>> |
getEnum(Class<E> enumClass,
FileSystemOptions fileSystemOptions,
String name,
E defaultValue)
Gets a named option as an Enum.
|
protected Float |
getFloat(FileSystemOptions fileSystemOptions,
String name)
Gets a named option as a Float.
|
protected float |
getFloat(FileSystemOptions fileSystemOptions,
String name,
float defaultValue)
Gets a named option as a Float.
|
protected Float |
getFloat(FileSystemOptions fileSystemOptions,
String name,
Float defaultValue)
Gets a named option as a Float.
|
protected Integer |
getInteger(FileSystemOptions fileSystemOptions,
String name)
Gets a named option as an Integer.
|
protected int |
getInteger(FileSystemOptions fileSystemOptions,
String name,
int defaultValue)
Gets a named option as an Integer.
|
protected Integer |
getInteger(FileSystemOptions fileSystemOptions,
String name,
Integer defaultValue)
Gets a named option as an Integer.
|
protected Long |
getLong(FileSystemOptions fileSystemOptions,
String name)
Gets a named option as a Long.
|
protected long |
getLong(FileSystemOptions fileSystemOptions,
String name,
long defaultValue)
Gets a named option as a Long.
|
protected Long |
getLong(FileSystemOptions fileSystemOptions,
String name,
Long defaultValue)
Gets a named option as a Long.
|
protected <T> T |
getParam(FileSystemOptions fileSystemOptions,
String name)
Gets a named parameter.
|
String |
getRootURI(FileSystemOptions fileSystemOptions)
Gets the root URI of the file system.
|
protected Short |
getShort(FileSystemOptions fileSystemOptions,
String name)
Gets a named option as a Short.
|
protected short |
getShort(FileSystemOptions fileSystemOptions,
String name,
short defaultValue)
Gets a named option as a Short.
|
protected Short |
getShort(FileSystemOptions fileSystemOptions,
String name,
Short defaultValue)
Gets a named option as a Short.
|
protected String |
getString(FileSystemOptions fileSystemOptions,
String name)
Gets a named option as a String.
|
protected String |
getString(FileSystemOptions fileSystemOptions,
String name,
String defaultValue)
Gets a named option as a String.
|
protected boolean |
hasObject(FileSystemOptions fileSystemOptions,
String name)
Checks the named setting specified.
|
protected boolean |
hasParam(FileSystemOptions fileSystemOptions,
String name)
Checks if option exists.
|
protected void |
setParam(FileSystemOptions fileSystemOptions,
String name,
boolean value)
Sets the named parameter.
|
protected void |
setParam(FileSystemOptions fileSystemOptions,
String name,
Object value)
Sets the named parameter.
|
void |
setRootURI(FileSystemOptions fileSystemOptions,
String rootURI)
Sets the root URI of the file system.
|
protected Boolean |
toBooleanObject(boolean value)
Converts the given primitive boolean to a Boolean object.
|
protected FileSystemConfigBuilder()
protected FileSystemConfigBuilder(String component)
component - component name to be used in prefixprotected Boolean getBoolean(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the option nameopts or system properties, otherwise nullgetBoolean(FileSystemOptions, String, Boolean)protected boolean getBoolean(FileSystemOptions fileSystemOptions, String name, boolean defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValuegetBoolean(FileSystemOptions, String, Boolean)protected Boolean getBoolean(FileSystemOptions fileSystemOptions, String name, Boolean defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValuegetBoolean(FileSystemOptions, String, Boolean)protected Byte getByte(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the option nameopts or system properties, otherwise nullgetByte(FileSystemOptions, String, Byte)protected byte getByte(FileSystemOptions fileSystemOptions, String name, byte defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValuegetByte(FileSystemOptions, String, Byte)protected Byte getByte(FileSystemOptions fileSystemOptions, String name, Byte defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueprotected Character getCharacter(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the option nameopts or system properties, otherwise nullgetCharacter(FileSystemOptions, String, Character)protected char getCharacter(FileSystemOptions fileSystemOptions, String name, char defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValuegetCharacter(FileSystemOptions, String, Character)protected Character getCharacter(FileSystemOptions fileSystemOptions, String name, Character defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueprotected abstract Class<? extends FileSystem> getConfigClass()
protected Double getDouble(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the option nameopts or system properties, otherwise nullgetDouble(FileSystemOptions, String, Double)protected double getDouble(FileSystemOptions fileSystemOptions, String name, double defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValuegetDouble(FileSystemOptions, String, Double)protected Double getDouble(FileSystemOptions fileSystemOptions, String name, Double defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueprotected Duration getDuration(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the option nameopts or system properties, otherwise nullgetLong(FileSystemOptions, String, Long)protected Duration getDuration(FileSystemOptions fileSystemOptions, String name, Duration defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueprotected Integer getDurationInteger(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the option nameopts or system properties, otherwise nullgetLong(FileSystemOptions, String, Long)protected Integer getDurationInteger(FileSystemOptions fileSystemOptions, String name, Duration defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueprotected <E extends Enum<E>> E getEnum(Class<E> enumClass, FileSystemOptions fileSystemOptions, String name)
E - enumeration typeenumClass - class of enumeration typefileSystemOptions - file system options to query, may be null.name - the option name *opts or system properties, otherwise nullIllegalArgumentException - if option value is not a known enumeration.getEnum(Class, FileSystemOptions, String, Enum)protected <E extends Enum<E>> E getEnum(Class<E> enumClass, FileSystemOptions fileSystemOptions, String name, E defaultValue)
E - enumeration typeenumClass - class of enumeration typefileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueIllegalArgumentException - if option value is not a known enumeration.getEnum(Class, FileSystemOptions, String, Enum)protected Float getFloat(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the option nameopts or system properties, otherwise nullNumberFormatException - if option value is not a valid float.getFloat(FileSystemOptions, String, Float)protected float getFloat(FileSystemOptions fileSystemOptions, String name, float defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueNumberFormatException - if option value is not a valid float.getFloat(FileSystemOptions, String, Float)protected Float getFloat(FileSystemOptions fileSystemOptions, String name, Float defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueNumberFormatException - if option value is not a valid float.protected Integer getInteger(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the option nameopts or system properties, otherwise nullNumberFormatException - if option value is not a valid integer.getInteger(FileSystemOptions, String, Integer)protected int getInteger(FileSystemOptions fileSystemOptions, String name, int defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueNumberFormatException - if option value is not a valid integer.getInteger(FileSystemOptions, String, Integer)protected Integer getInteger(FileSystemOptions fileSystemOptions, String name, Integer defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueNumberFormatException - if option value is not a valid integer.protected Long getLong(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the option nameopts or system properties, otherwise nullNumberFormatException - if option value is not a valid long.getLong(FileSystemOptions, String, Long)protected long getLong(FileSystemOptions fileSystemOptions, String name, long defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueNumberFormatException - if option value is not a valid long.getLong(FileSystemOptions, String, Long)protected Long getLong(FileSystemOptions fileSystemOptions, String name, Long defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueNumberFormatException - if option value is not a valid long.protected <T> T getParam(FileSystemOptions fileSystemOptions, String name)
T - The expected return type.fileSystemOptions - file system options to query, may be null.name - get option with this namepublic String getRootURI(FileSystemOptions fileSystemOptions)
fileSystemOptions - file system options to query, may be null.protected Short getShort(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the option nameopts or system properties, otherwise nullNumberFormatException - if option value is not a valid short.getShort(FileSystemOptions, String, Short)protected short getShort(FileSystemOptions fileSystemOptions, String name, short defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueNumberFormatException - if option value is not a valid shortgetShort(FileSystemOptions, String, Short)protected Short getShort(FileSystemOptions fileSystemOptions, String name, Short defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueNumberFormatException - if option value is not a valid shortprotected String getString(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the option nameopts or system properties, otherwise nullgetString(FileSystemOptions, String, String)protected String getString(FileSystemOptions fileSystemOptions, String name, String defaultValue)
fileSystemOptions - file system options to query, may be null.name - the option namedefaultValue - value to return if option is not presentopts or system properties, otherwise defaultValueprotected boolean hasObject(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the option to check in opts or system propertiesprotected boolean hasParam(FileSystemOptions fileSystemOptions, String name)
fileSystemOptions - file system options to query, may be null.name - the name to look up in optsprotected void setParam(FileSystemOptions fileSystemOptions, String name, boolean value)
fileSystemOptions - the file system options to modifyname - set option with this namevalue - boolean value to setprotected void setParam(FileSystemOptions fileSystemOptions, String name, Object value)
fileSystemOptions - the file system options to modifyname - set option with this namevalue - object value to setpublic void setRootURI(FileSystemOptions fileSystemOptions, String rootURI)
fileSystemOptions - the file system options to modifyrootURI - The creator name to be associated with the file.protected Boolean toBooleanObject(boolean value)
value - a primitive boolean.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.