public abstract class CloudStorageConfiguration extends Object
CloudStorageFileSystem
instances.Modifier and Type | Class and Description |
---|---|
static class |
CloudStorageConfiguration.Builder
Builder for
CloudStorageConfiguration . |
Modifier and Type | Field and Description |
---|---|
static CloudStorageConfiguration |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
abstract int |
blockSize()
Returns block size (in bytes) used when talking to the Google Cloud Storage HTTP server.
|
static CloudStorageConfiguration.Builder |
builder()
Creates a new builder, initialized with the following settings:
Performing I/O on paths with extra slashes, e.g.
|
abstract int |
maxChannelReopens()
Returns the number of times we try re-opening a channel if it's closed unexpectedly
while reading.
|
abstract boolean |
permitEmptyPathComponents()
Returns
true if we shouldn't throw an exception when encountering object names
containing superfluous slashes, e.g. |
abstract boolean |
stripPrefixSlash()
Returns
true if '/' prefix on absolute object names should be removed before I/O. |
abstract boolean |
usePseudoDirectories()
Returns
true if paths with a trailing slash should be treated as fake directories. |
abstract String |
workingDirectory()
Returns path of current working directory.
|
public static final CloudStorageConfiguration DEFAULT
public abstract String workingDirectory()
public abstract boolean permitEmptyPathComponents()
true
if we shouldn't throw an exception when encountering object names
containing superfluous slashes, e.g. a//b
.public abstract boolean stripPrefixSlash()
true
if '/' prefix on absolute object names should be removed before I/O.
If you disable this feature, please take into consideration that all paths created from a URI will have the leading slash.
public abstract boolean usePseudoDirectories()
true
if paths with a trailing slash should be treated as fake directories.public abstract int blockSize()
public abstract int maxChannelReopens()
public static CloudStorageConfiguration.Builder builder()
a//b
will throw an error.
Copyright © 2017 Google. All rights reserved.