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 com.google.common.collect.ImmutableList<Class<? extends Exception>> |
reopenableExceptions()
Returns the set of exceptions for which we'll try a channel reopen if maxChannelReopens is
positive.
|
abstract com.google.common.collect.ImmutableList<Integer> |
retryableHttpCodes()
Returns the set of HTTP error codes that will be retried, in addition to the normally retryable
ones.
|
abstract boolean |
stripPrefixSlash()
Returns
true if '/' prefix on absolute object names should be removed before I/O. |
abstract boolean |
usePseudoDirectories()
Returns
true if directories and paths with a trailing slash should be treated as fake
directories. |
abstract String |
userProject()
Returns the project to be billed when accessing buckets.
|
abstract boolean |
useUserProjectOnlyForRequesterPaysBuckets()
Returns whether userProject will be cleared for non-requester-pays buckets.
|
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 directories and paths with a trailing slash should be treated as fake
directories.
With this feature, if file "foo/bar.txt" exists then both "foo" and "foo/" will be treated as if they were existing directories.
public abstract int blockSize()
public abstract int maxChannelReopens()
@Nullable public abstract String userProject()
public abstract boolean useUserProjectOnlyForRequesterPaysBuckets()
Setting this will cause the bucket to be accessed when the CloudStorageFileSystem object is created.
public abstract com.google.common.collect.ImmutableList<Integer> retryableHttpCodes()
public abstract com.google.common.collect.ImmutableList<Class<? extends Exception>> reopenableExceptions()
public static CloudStorageConfiguration.Builder builder()
a//b
will throw an error.
Copyright © 2019 Google LLC. All rights reserved.