public abstract class GoogleCloudStorageOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GoogleCloudStorageOptions.Builder
Mutable builder for the
GoogleCloudStorageOptions class. |
static class |
GoogleCloudStorageOptions.MetricsSink |
| Modifier and Type | Field and Description |
|---|---|
static Class<? extends AuthorizationHandler> |
AUTHORIZATION_HANDLER_IMPL_CLASS_DEFAULT
Default setting for authorization handler.
|
static Map<String,String> |
AUTHORIZATION_HANDLER_PROPERTIES_DEFAULT
Default properties for authorization handler.
|
static boolean |
AUTO_REPAIR_IMPLICIT_DIRECTORIES_DEFAULT
Default setting for enabling auto-repair of implicit directories.
|
static int |
BATCH_THREADS_DEFAULT
Default setting for number of threads to execute GCS batch requests.
|
static boolean |
COPY_WITH_REWRITE_DEFAULT
Default setting for whether or not to use rewrite request for copy operation.
|
static GoogleCloudStorageOptions |
DEFAULT |
static boolean |
DIRECT_PATH_PREFERRED_DEFAULT
Default setting to prefer DirectPath for gRPC.
|
static boolean |
ENABLE_GRPC_DEFAULT
Default setting for enabling use of GCS gRPC API.
|
static boolean |
ENABLE_TRAFFIC_DIRECTOR_DEFAULT
Default setting for enabling use of the Traffic Director for GCS gRPC API.
|
static long |
GRPC_MESSAGE_TIMEOUT_CHECK_INTERVAL
Default setting for grpc message timeout check interval (in milliseconds)
|
static boolean |
GRPC_WRITE_DEFAULT |
static int |
HTTP_REQUEST_CONNECT_TIMEOUT
Default setting for connect timeout (in millisecond) of GCS HTTP request.
|
static com.google.common.collect.ImmutableMap<String,String> |
HTTP_REQUEST_HEADERS_DEFAULT
Default setting for GCS HTTP request headers.
|
static int |
HTTP_REQUEST_READ_TIMEOUT
Default setting for read timeout (in millisecond) of GCS HTTP request.
|
static int |
MAX_BYTES_REWRITTEN_PER_CALL_DEFAULT
Default setting for max number of bytes rewritten per rewrite request/call.
|
static int |
MAX_HTTP_REQUEST_RETRIES
Default setting for maximum number of GCS HTTP request retires.
|
static long |
MAX_LIST_ITEMS_PER_CALL_DEFAULT
Default number of items to return per call to the list* GCS RPCs.
|
static long |
MAX_REQUESTS_PER_BATCH_DEFAULT
Default setting for maximum number of requests per GCS batch.
|
static int |
MAX_WAIT_MILLIS_FOR_EMPTY_OBJECT_CREATION
Default setting for the length of time to wait for empty objects to appear if we believe we are
in a race with multiple workers.
|
static String |
STORAGE_ROOT_URL_DEFAULT
Default root URL for Cloud Storage API endpoint.
|
static String |
STORAGE_SERVICE_PATH_DEFAULT
Default service Path for Cloud Storage API endpoint.
|
| Constructor and Description |
|---|
GoogleCloudStorageOptions() |
public static final boolean ENABLE_GRPC_DEFAULT
public static final boolean ENABLE_TRAFFIC_DIRECTOR_DEFAULT
public static final boolean DIRECT_PATH_PREFERRED_DEFAULT
public static final String STORAGE_ROOT_URL_DEFAULT
public static final String STORAGE_SERVICE_PATH_DEFAULT
public static final boolean AUTO_REPAIR_IMPLICIT_DIRECTORIES_DEFAULT
public static final int MAX_WAIT_MILLIS_FOR_EMPTY_OBJECT_CREATION
public static final long MAX_LIST_ITEMS_PER_CALL_DEFAULT
public static final long MAX_REQUESTS_PER_BATCH_DEFAULT
public static final int BATCH_THREADS_DEFAULT
public static final int MAX_HTTP_REQUEST_RETRIES
public static final int HTTP_REQUEST_CONNECT_TIMEOUT
public static final int HTTP_REQUEST_READ_TIMEOUT
public static final boolean COPY_WITH_REWRITE_DEFAULT
public static final boolean GRPC_WRITE_DEFAULT
public static final int MAX_BYTES_REWRITTEN_PER_CALL_DEFAULT
public static final long GRPC_MESSAGE_TIMEOUT_CHECK_INTERVAL
public static final com.google.common.collect.ImmutableMap<String,String> HTTP_REQUEST_HEADERS_DEFAULT
public static final Class<? extends AuthorizationHandler> AUTHORIZATION_HANDLER_IMPL_CLASS_DEFAULT
public static final Map<String,String> AUTHORIZATION_HANDLER_PROPERTIES_DEFAULT
public static final GoogleCloudStorageOptions DEFAULT
public static GoogleCloudStorageOptions.Builder builder()
public abstract GoogleCloudStorageOptions.Builder toBuilder()
public abstract boolean isGrpcEnabled()
public abstract boolean isHnBucketRenameEnabled()
public abstract boolean isTrafficDirectorEnabled()
public abstract boolean isDirectPathPreferred()
public abstract String getStorageRootUrl()
public abstract String getStorageServicePath()
public abstract boolean isGrpcWriteEnabled()
public abstract boolean isAutoRepairImplicitDirectoriesEnabled()
public abstract int getMaxWaitMillisForEmptyObjectCreation()
public abstract long getMaxListItemsPerCall()
public abstract long getMaxRequestsPerBatch()
public abstract int getBatchThreads()
public abstract int getMaxHttpRequestRetries()
public abstract int getHttpRequestConnectTimeout()
public abstract int getHttpRequestReadTimeout()
public abstract HttpTransportFactory.HttpTransportType getTransportType()
@Nullable public abstract RedactedString getProxyUsername()
@Nullable public abstract RedactedString getProxyPassword()
public abstract boolean isCopyWithRewriteEnabled()
public abstract long getMaxBytesRewrittenPerCall()
public abstract GoogleCloudStorageReadOptions getReadChannelOptions()
public abstract AsyncWriteChannelOptions getWriteChannelOptions()
public abstract RequesterPaysOptions getRequesterPaysOptions()
public abstract CooperativeLockingOptions getCooperativeLockingOptions()
public abstract com.google.common.collect.ImmutableMap<String,String> getHttpRequestHeaders()
@Nullable public abstract RedactedString getEncryptionKey()
@Nullable public abstract RedactedString getEncryptionKeyHash()
public abstract long getGrpcMessageTimeoutCheckInterval()
public abstract GoogleCloudStorageOptions.MetricsSink getMetricsSink()
public abstract boolean isTraceLogEnabled()
public abstract boolean isOperationTraceLogEnabled()
public abstract long getTraceLogTimeThreshold()
public abstract com.google.common.collect.ImmutableSet<String> getTraceLogExcludeProperties()
public RetryHttpInitializerOptions toRetryHttpInitializerOptions()
@Nullable public abstract Class<? extends AuthorizationHandler> getAuthorizationHandlerImplClass()
public abstract Map<String,String> getAuthorizationHandlerProperties()
public void throwIfNotValid()
Copyright © 2024. All rights reserved.