public class ADLStoreOptions extends Object
ADLStoreClient
Constructor and Description |
---|
ADLStoreOptions() |
Modifier and Type | Method and Description |
---|---|
void |
alterCipherSuits(boolean alterCipherSuits)
Java 1.8 version with GCM cipher suite does not use hardware acceleration.
|
ADLStoreOptions |
enableThrowingRemoteExceptions()
Throw server-returned exception name instead of ADLExcetption.
|
ADLStoreOptions |
setDefaultTimeout(int defaultTimeoutInMillis)
sets the default timeout for calls make by methods in ADLStoreClient objects
|
void |
setEnableConditionalCreate(boolean enableConditionalCreate) |
ADLStoreOptions |
setFilePathPrefix(String prefix)
Set a prefix that will be prepended to all file paths from this client.
|
ADLStoreOptions |
setInsecureTransport()
Use http as transport for back-end calls, instead of https.
|
ADLStoreOptions |
setReadAheadQueueDepth(int queueDepth)
Sets the default Queue depth to be used for read-aheads in
ADLFileInputStream . |
void |
setSSLChannelMode(String sslChannelMode) |
ADLStoreOptions |
setUserAgentSuffix(String userAgentSuffix)
sets the user agent suffix to be added to the User-Agent header in all HTTP requests made to the server.
|
public ADLStoreOptions setUserAgentSuffix(String userAgentSuffix)
userAgentSuffix
- the suffixthis
public ADLStoreOptions setInsecureTransport()
Warning: Do not use this for talking to real Azure Data Lake service, since https is the only supported protocol on the server.
this
public ADLStoreOptions enableThrowingRemoteExceptions()
ADLStoreClient methods throw ADLException
on failure. ADLException
contains additional fields that have details on the error that occurred, like the HTTP
response code and the server request ID, etc.
However, in some cases, server returns an exception name in it's HTTP error stream.
Calling this method causes the ADLStoreClient methods to throw the exception name
returned by the server rather than ADLException
.
In general, this is not recommended, since the name of the remote exception can also
be retrieved from ADLException
. This method exists to enable usage within
Hadoop as a file system.
this
public ADLStoreOptions setFilePathPrefix(String prefix)
prefix
- String
containing the prefix to be prependedthis
public ADLStoreOptions setReadAheadQueueDepth(int queueDepth)
ADLFileInputStream
.queueDepth
- the desired queue depth, set to 0 to disable read-aheadthis
public ADLStoreOptions setDefaultTimeout(int defaultTimeoutInMillis)
defaultTimeoutInMillis
- default timeout, in Millisecondsthis
public void alterCipherSuits(boolean alterCipherSuits)
alterCipherSuits
- true if the cipher suite alteration is required.public void setSSLChannelMode(String sslChannelMode)
public void setEnableConditionalCreate(boolean enableConditionalCreate)
Copyright © 2019 Microsoft Corporation. All rights reserved.