@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.
|
String |
get(String key)
Returns the account-specific value if it exists, then looks for an
account-agnostic value.
|
AbfsAuthorizer |
getAbfsAuthorizer() |
String |
getAbfsExternalAuthorizationClass() |
AuthType |
getAuthType(String accountName) |
String |
getAzureAtomicRenameDirs() |
String |
getAzureBlockLocationHost() |
long |
getAzureBlockSize() |
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.
|
<U> Class<? extends U> |
getClass(String name,
Class<? extends U> defaultValue,
Class<U> xface)
Returns the account-specific Class if it exists, then looks for an
account-agnostic value, and finally tries the default value.
|
boolean |
getCreateRemoteFileSystemDuringInitialization() |
String |
getCustomUserAgentPrefix() |
AbfsDelegationTokenManager |
getDelegationTokenManager() |
<T extends Enum<T>> |
getEnum(String name,
T defaultValue)
Returns the account-specific password in string form if it exists, then
looks for an account-agnostic value.
|
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 |
getMinBackoffIntervalMilliseconds() |
String |
getPasswordString(String key)
Returns the account-specific password in string form if it exists, then
looks for an account-agnostic value.
|
SSLSocketFactoryEx.SSLChannelMode |
getPreferredSSLFactoryOption() |
org.apache.hadoop.conf.Configuration |
getRawConfiguration() |
int |
getReadAheadQueueDepth() |
int |
getReadBufferSize() |
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() |
boolean |
getTolerateOobAppends() |
int |
getWriteBufferSize() |
boolean |
isAutoThrottlingEnabled() |
boolean |
isDelegationTokenManagerEnabled() |
boolean |
isFlushEnabled() |
boolean |
isHttpsAlwaysUsed() |
boolean |
isSecureMode() |
boolean |
isUpnUsed() |
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 |
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 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 keyIOExceptionpublic <U> Class<? extends U> getClass(String name, Class<? extends U> defaultValue, Class<U> xface)
name - 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)
name - 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
AzureBlobFileSystemExceptionpublic org.apache.hadoop.conf.Configuration getRawConfiguration()
public int getWriteBufferSize()
public int getReadBufferSize()
public int getMinBackoffIntervalMilliseconds()
public int getMaxBackoffIntervalMilliseconds()
public int getBackoffIntervalMilliseconds()
public int getMaxIoRetries()
public long getAzureBlockSize()
public String getAzureBlockLocationHost()
public int getMaxConcurrentWriteThreads()
public int getMaxConcurrentReadThreads()
public boolean getTolerateOobAppends()
public String getAzureAtomicRenameDirs()
public boolean getCreateRemoteFileSystemDuringInitialization()
public boolean getSkipUserGroupMetadataDuringInitialization()
public int getReadAheadQueueDepth()
public boolean isFlushEnabled()
public boolean isAutoThrottlingEnabled()
public String getCustomUserAgentPrefix()
public SSLSocketFactoryEx.SSLChannelMode getPreferredSSLFactoryOption()
public boolean isDelegationTokenManagerEnabled()
public AbfsDelegationTokenManager getDelegationTokenManager() throws IOException
IOExceptionpublic boolean isHttpsAlwaysUsed()
public boolean isUpnUsed()
public AccessTokenProvider getTokenProvider() throws TokenAccessProviderException
TokenAccessProviderExceptionpublic String getAbfsExternalAuthorizationClass()
public AbfsAuthorizer getAbfsAuthorizer() throws IOException
IOExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.