@InterfaceAudience.Private @InterfaceStability.Evolving public class AbfsConfiguration extends Object
Constructor and Description |
---|
AbfsConfiguration(org.apache.hadoop.conf.Configuration rawConfig,
String accountName) |
Modifier and Type | Method and Description |
---|---|
String |
accountConf(String key)
Appends an account name to a configuration key yielding the
account-specific form.
|
boolean |
enableAbfsListIterator() |
String |
get(String key)
Returns the account-specific value if it exists, then looks for an
account-agnostic value.
|
<U> Class<? extends U> |
getAccountAgnosticClass(String name,
Class<? extends U> defaultValue,
Class<U> xface)
Returns account-agnostic Class if it exists, else returns the default value.
|
<T extends Enum<T>> |
getAccountAgnosticEnum(String name,
T defaultValue)
Returns the account-agnostic enum value if it exists, else
return default.
|
String |
getAccountName()
Gets the Azure Storage account name corresponding to this instance of configuration.
|
<U> Class<? extends U> |
getAccountSpecificClass(String name,
Class<? extends U> defaultValue,
Class<U> xface)
Returns the account-specific class if it exists, else returns default value.
|
String |
getAppendBlobDirs() |
AuthType |
getAuthType(String accountName) |
String |
getAzureAtomicRenameDirs() |
String |
getAzureBlockLocationHost() |
long |
getAzureBlockSize() |
String |
getAzureInfiniteLeaseDirs() |
int |
getBackoffIntervalMilliseconds() |
boolean |
getBoolean(String key,
boolean defaultValue)
Returns the account-specific value if it exists, then looks for an
account-agnostic value, and finally tries the default value.
|
String |
getClientProvidedEncryptionKey() |
String |
getClusterName() |
String |
getClusterType() |
boolean |
getCreateRemoteFileSystemDuringInitialization() |
int |
getCustomTokenFetchRetryCount() |
String |
getCustomUserAgentPrefix() |
AbfsDelegationTokenManager |
getDelegationTokenManager() |
<T extends Enum<T>> |
getEnum(String name,
T defaultValue)
Returns the account-specific enum value if it exists, then
looks for an account-agnostic value.
|
Trilean |
getIsNamespaceEnabledAccount() |
int |
getListMaxResults() |
long |
getLong(String key,
long defaultValue)
Returns the account-specific value if it exists, then looks for an
account-agnostic value, and finally tries the default value.
|
int |
getMaxBackoffIntervalMilliseconds() |
int |
getMaxConcurrentReadThreads() |
int |
getMaxConcurrentWriteThreads() |
int |
getMaxIoRetries() |
int |
getMaxWriteRequestsToQueue() |
int |
getMinBackoffIntervalMilliseconds() |
int |
getNumLeaseThreads() |
ExponentialRetryPolicy |
getOauthTokenFetchRetryPolicy() |
String |
getPasswordString(String key)
Returns the account-specific password in string form if it exists, then
looks for an account-agnostic value.
|
org.apache.hadoop.security.ssl.DelegatingSSLSocketFactory.SSLChannelMode |
getPreferredSSLFactoryOption() |
org.apache.hadoop.conf.Configuration |
getRawConfiguration() |
int |
getReadAheadBlockSize() |
int |
getReadAheadQueueDepth() |
int |
getReadBufferSize() |
SASTokenProvider |
getSASTokenProvider() |
long |
getSasTokenRenewPeriodForStreamsInSeconds() |
boolean |
getSkipUserGroupMetadataDuringInitialization() |
String |
getStorageAccountKey() |
String |
getString(String key,
String defaultValue)
Returns the account-specific value if it exists, then looks for an
account-agnostic value.
|
AccessTokenProvider |
getTokenProvider() |
<U> Class<? extends U> |
getTokenProviderClass(AuthType authType,
String name,
Class<? extends U> defaultValue,
Class<U> xface)
Returns account-specific token provider class if it exists, else checks if
an account-agnostic setting is present for token provider class if AuthType
matches with authType passed.
|
boolean |
getTolerateOobAppends() |
int |
getWriteBufferSize() |
int |
getWriteMaxConcurrentRequestCount() |
boolean |
isAutoThrottlingEnabled() |
boolean |
isCheckAccessEnabled() |
boolean |
isConditionalCreateOverwriteEnabled() |
boolean |
isDelegationTokenManagerEnabled() |
boolean |
isEnabledMkdirOverwrite() |
boolean |
isFlushEnabled() |
boolean |
isHttpsAlwaysUsed() |
boolean |
isOutputStreamFlushDisabled() |
boolean |
isSecureMode() |
boolean |
isSmallWriteOptimizationEnabled() |
boolean |
isUpnUsed() |
boolean |
optimizeFooterRead() |
boolean |
readSmallFilesCompletely() |
void |
set(String key,
String value)
Sets String in the underlying Configuration object.
|
void |
setBoolean(String key,
boolean value)
Sets boolean in the underlying Configuration object.
|
void |
setEnableAbfsListIterator(boolean enableAbfsListIterator) |
void |
setMaxIoRetries(int maxIoRetries) |
void |
setOptimizeFooterRead(boolean optimizeFooterRead) |
void |
setReadSmallFilesCompletely(boolean readSmallFilesCompletely) |
boolean |
shouldReadBufferSizeAlways() |
boolean |
shouldTrackLatency()
Whether
AbfsClient should track and send latency info back to storage servers. |
void |
unset(String key)
Unsets parameter in the underlying Configuration object.
|
public AbfsConfiguration(org.apache.hadoop.conf.Configuration rawConfig, String accountName) throws IllegalAccessException, InvalidConfigurationValueException, IOException
public Trilean getIsNamespaceEnabledAccount()
public String getAccountName()
public String accountConf(String key)
key
- Account-agnostic configuration keypublic String get(String key)
key
- Account-agnostic configuration keypublic String getString(String key, String defaultValue)
key
- Account-agnostic configuration keypublic boolean getBoolean(String key, boolean defaultValue)
key
- Account-agnostic configuration keydefaultValue
- Value returned if none is configuredpublic long getLong(String key, long defaultValue)
key
- Account-agnostic configuration keydefaultValue
- Value returned if none is configuredpublic String getPasswordString(String key) throws IOException
key
- Account-agnostic configuration keyIOException
public <U> Class<? extends U> getTokenProviderClass(AuthType authType, String name, Class<? extends U> defaultValue, Class<U> xface)
U
- Interface class typeauthType
- AuthType effective on the accountname
- Account-agnostic configuration keydefaultValue
- Class returned if none is configuredxface
- Interface shared by all possible valuespublic <U> Class<? extends U> getAccountSpecificClass(String name, Class<? extends U> defaultValue, Class<U> xface)
U
- Interface class typename
- Account-agnostic configuration keydefaultValue
- Class returned if none is configuredxface
- Interface shared by all possible valuespublic <U> Class<? extends U> getAccountAgnosticClass(String name, Class<? extends U> defaultValue, Class<U> xface)
U
- Interface class typename
- Account-agnostic configuration keydefaultValue
- Class returned if none is configuredxface
- Interface shared by all possible valuespublic <T extends Enum<T>> T getEnum(String name, T defaultValue)
T
- Enum typename
- Account-agnostic configuration keydefaultValue
- Value returned if none is configuredpublic <T extends Enum<T>> T getAccountAgnosticEnum(String name, T defaultValue)
T
- Enum typename
- Account-agnostic configuration keydefaultValue
- Value returned if none is configuredpublic void unset(String key)
key
- Configuration keypublic void set(String key, String value)
key
- Configuration keyvalue
- Configuration valuepublic void setBoolean(String key, boolean value)
key
- Configuration keyvalue
- Configuration valuepublic boolean isSecureMode()
public String getStorageAccountKey() throws AzureBlobFileSystemException
AzureBlobFileSystemException
public org.apache.hadoop.conf.Configuration getRawConfiguration()
public int getWriteBufferSize()
public boolean isSmallWriteOptimizationEnabled()
public boolean readSmallFilesCompletely()
public boolean optimizeFooterRead()
public int getReadBufferSize()
public int getMinBackoffIntervalMilliseconds()
public int getMaxBackoffIntervalMilliseconds()
public int getBackoffIntervalMilliseconds()
public int getMaxIoRetries()
public int getCustomTokenFetchRetryCount()
public long getAzureBlockSize()
public boolean isCheckAccessEnabled()
public long getSasTokenRenewPeriodForStreamsInSeconds()
public String getAzureBlockLocationHost()
public int getMaxConcurrentWriteThreads()
public int getMaxConcurrentReadThreads()
public int getListMaxResults()
public boolean getTolerateOobAppends()
public String getAzureAtomicRenameDirs()
public boolean isConditionalCreateOverwriteEnabled()
public boolean isEnabledMkdirOverwrite()
public String getAppendBlobDirs()
public String getAzureInfiniteLeaseDirs()
public int getNumLeaseThreads()
public boolean getCreateRemoteFileSystemDuringInitialization()
public boolean getSkipUserGroupMetadataDuringInitialization()
public int getReadAheadQueueDepth()
public int getReadAheadBlockSize()
public boolean shouldReadBufferSizeAlways()
public boolean isFlushEnabled()
public boolean isOutputStreamFlushDisabled()
public boolean isAutoThrottlingEnabled()
public String getCustomUserAgentPrefix()
public String getClusterName()
public String getClusterType()
public org.apache.hadoop.security.ssl.DelegatingSSLSocketFactory.SSLChannelMode getPreferredSSLFactoryOption()
public boolean isDelegationTokenManagerEnabled()
public AbfsDelegationTokenManager getDelegationTokenManager() throws IOException
IOException
public boolean isHttpsAlwaysUsed()
public boolean isUpnUsed()
public boolean shouldTrackLatency()
AbfsClient
should track and send latency info back to storage servers.public AccessTokenProvider getTokenProvider() throws TokenAccessProviderException
TokenAccessProviderException
public SASTokenProvider getSASTokenProvider() throws AzureBlobFileSystemException
AzureBlobFileSystemException
public ExponentialRetryPolicy getOauthTokenFetchRetryPolicy()
public int getWriteMaxConcurrentRequestCount()
public int getMaxWriteRequestsToQueue()
public boolean enableAbfsListIterator()
public String getClientProvidedEncryptionKey()
public void setMaxIoRetries(int maxIoRetries)
public void setReadSmallFilesCompletely(boolean readSmallFilesCompletely)
public void setOptimizeFooterRead(boolean optimizeFooterRead)
public void setEnableAbfsListIterator(boolean enableAbfsListIterator)
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.