Class S3NioSpiConfiguration
- java.lang.Object
-
- software.amazon.nio.spi.s3.config.S3NioSpiConfiguration
-
public class S3NioSpiConfiguration extends java.lang.ObjectObject to hold configuration of the S3 NIO SPI
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringS3_SPI_READ_MAX_FRAGMENT_NUMBER_DEFAULTThe default value of the maximum fragment size propertystatic java.lang.StringS3_SPI_READ_MAX_FRAGMENT_NUMBER_PROPERTYThe name of the maximum fragment number propertystatic java.lang.StringS3_SPI_READ_MAX_FRAGMENT_SIZE_DEFAULTThe default value of the maximum fragment size propertystatic java.lang.StringS3_SPI_READ_MAX_FRAGMENT_SIZE_PROPERTYThe name of the maximum fragment size property
-
Constructor Summary
Constructors Modifier Constructor Description S3NioSpiConfiguration()Create a new, empty configurationprotectedS3NioSpiConfiguration(java.util.Properties overrides)Create a new configuration with overrides
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringconvertPropertyNameToEnvVar(java.lang.String propertyName)Generates an environment variable name from a property name.intgetMaxFragmentNumber()Get the value of the Maximum Fragment NumberintgetMaxFragmentSize()Get the value of the Maximum Fragment Size
-
-
-
Field Detail
-
S3_SPI_READ_MAX_FRAGMENT_SIZE_PROPERTY
public static final java.lang.String S3_SPI_READ_MAX_FRAGMENT_SIZE_PROPERTY
The name of the maximum fragment size property- See Also:
- Constant Field Values
-
S3_SPI_READ_MAX_FRAGMENT_SIZE_DEFAULT
public static final java.lang.String S3_SPI_READ_MAX_FRAGMENT_SIZE_DEFAULT
The default value of the maximum fragment size property- See Also:
- Constant Field Values
-
S3_SPI_READ_MAX_FRAGMENT_NUMBER_PROPERTY
public static final java.lang.String S3_SPI_READ_MAX_FRAGMENT_NUMBER_PROPERTY
The name of the maximum fragment number property- See Also:
- Constant Field Values
-
S3_SPI_READ_MAX_FRAGMENT_NUMBER_DEFAULT
public static final java.lang.String S3_SPI_READ_MAX_FRAGMENT_NUMBER_DEFAULT
The default value of the maximum fragment size property- See Also:
- Constant Field Values
-
-
Method Detail
-
getMaxFragmentSize
public int getMaxFragmentSize()
Get the value of the Maximum Fragment Size- Returns:
- the configured value or the default if not overridden
-
getMaxFragmentNumber
public int getMaxFragmentNumber()
Get the value of the Maximum Fragment Number- Returns:
- the configured value or the default if not overridden
-
convertPropertyNameToEnvVar
protected java.lang.String convertPropertyNameToEnvVar(java.lang.String propertyName)
Generates an environment variable name from a property name. E.g 'some.property' becomes 'SOME_PROPERTY'- Parameters:
propertyName- the name to convert- Returns:
- the converted name
-
-