Skip navigation links
A B C D E F G H I J L M N P Q R S T U V W 

A

AbstractGoogleAsyncWriteChannel<T extends com.google.api.client.googleapis.services.AbstractGoogleClientRequest<S>,S> - Class in com.google.cloud.hadoop.util
 
AbstractGoogleAsyncWriteChannel(ExecutorService, AsyncWriteChannelOptions) - Constructor for class com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel
Construct a new channel using the given ExecutorService to run background uploads.
ACCESS_NOT_CONFIGURED_REASON - Static variable in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
accessDenied(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the given exception indicates 'access denied'.
accessDeniedNonRecoverable(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the exception is a non-recoverable access denied code (such as account closed or marked for deletion).
ACCOUNT_DISABLED_REASON - Static variable in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
ApiErrorExtractor - Class in com.google.cloud.hadoop.util
Translates exceptions from API calls into higher-level meaning, while allowing injectability for testing how API errors are handled.
ApiErrorExtractor() - Constructor for class com.google.cloud.hadoop.util.ApiErrorExtractor
Deprecated.
AsyncWriteChannelOptions - Class in com.google.cloud.hadoop.util
AsyncWriteChannelOptions() - Constructor for class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
 
AsyncWriteChannelOptions.Builder - Class in com.google.cloud.hadoop.util
Mutable builder for the GoogleCloudStorageWriteChannelOptions class.
AsyncWriteChannelOptions.PipeType - Enum in com.google.cloud.hadoop.util
Pipe used for output stream.
awaitTermination(long, TimeUnit) - Method in class com.google.cloud.hadoop.util.LazyExecutorService
 

B

badRequest(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the given exception indicates bad request.
BaseAbstractGoogleAsyncWriteChannel<T> - Class in com.google.cloud.hadoop.util
Skeletal implementation of a WritableByteChannel that executes an asynchronous upload operation and optionally handles the result.
BaseAbstractGoogleAsyncWriteChannel(ExecutorService, AsyncWriteChannelOptions) - Constructor for class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Construct a new channel using the given ExecutorService to run background uploads.
BUFFER_SIZE_DEFAULT - Static variable in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
Default upload buffer size.
build() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions.Builder
 
build() - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
build() - Method in class com.google.cloud.hadoop.util.RequesterPaysOptions.Builder
 
builder() - Static method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
 
Builder() - Constructor for class com.google.cloud.hadoop.util.AsyncWriteChannelOptions.Builder
 
builder() - Static method in class com.google.cloud.hadoop.util.CredentialOptions
 
Builder() - Constructor for class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
builder() - Static method in class com.google.cloud.hadoop.util.RequesterPaysOptions
 
Builder() - Constructor for class com.google.cloud.hadoop.util.RequesterPaysOptions.Builder
 

C

call() - Method in interface com.google.cloud.hadoop.util.ResilientOperation.CheckedCallable
 
ChainingHttpRequestInitializer - Class in com.google.cloud.hadoop.util
HttpRequestInitializer that composes handlers and interceptors supplied by component handlers.
ChainingHttpRequestInitializer(HttpRequestInitializer...) - Constructor for class com.google.cloud.hadoop.util.ChainingHttpRequestInitializer
 
clientError(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the exception is a client error.
ClientRequestHelper<S> - Class in com.google.cloud.hadoop.util
ClientRequestHelper provides wrapper methods around final methods of AbstractGoogleClientRequest to allow overriding them if necessary.
ClientRequestHelper() - Constructor for class com.google.cloud.hadoop.util.ClientRequestHelper
 
close() - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Closes this channel.
com.google.cloud.hadoop.util - package com.google.cloud.hadoop.util
 
com.google.cloud.hadoop.util.testing - package com.google.cloud.hadoop.util.testing
 
ComputeCredentialWithRetry(ComputeCredential.Builder) - Constructor for class com.google.cloud.hadoop.util.CredentialFactory.ComputeCredentialWithRetry
 
contentType - Variable in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
 
create(String) - Static method in class com.google.cloud.hadoop.util.RedactedString
 
createApacheHttpTransport(URI, Credentials) - Static method in class com.google.cloud.hadoop.util.HttpTransportFactory
Create an ApacheHttpTransport for calling Google APIs with an optional HTTP proxy.
createHttpTransport(HttpTransportFactory.HttpTransportType) - Static method in class com.google.cloud.hadoop.util.HttpTransportFactory
Create an HttpTransport based on an type class.
createHttpTransport(HttpTransportFactory.HttpTransportType, String, RedactedString, RedactedString) - Static method in class com.google.cloud.hadoop.util.HttpTransportFactory
Create an HttpTransport based on an type class and an optional HTTP proxy.
createNetHttpTransport(URI, PasswordAuthentication) - Static method in class com.google.cloud.hadoop.util.HttpTransportFactory
Create an NetHttpTransport for calling Google APIs with an optional HTTP proxy.
createRateLimitedRetryDeterminer(ApiErrorExtractor) - Static method in class com.google.cloud.hadoop.util.RetryDeterminer
A RetryDeterminer that retries on rate limited errors as determined by the provided ApiErrorExtractor.
createRequest(InputStreamContent) - Method in class com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel
Create an API request to upload the given InputStreamContent.
createResponseFromException(IOException) - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Derived classes may optionally intercept an IOException thrown from the execute() method of a prepared request that came from #createRequest, and return a reconstituted "response" object if the IOException can be handled as a success; for example, if the caller already has an identifier for an object, and the response is used solely for obtaining the same identifier, and the IOException is a handled "409 Already Exists" type of exception, then the derived class may override this method to return the expected "identifier" response.
CredentialFactory - Class in com.google.cloud.hadoop.util
Miscellaneous helper methods for getting a Credential from various sources.
CredentialFactory(CredentialOptions) - Constructor for class com.google.cloud.hadoop.util.CredentialFactory
 
CredentialFactory.ComputeCredentialWithRetry - Class in com.google.cloud.hadoop.util
A subclass of ComputeCredential that properly sets request initializers.
CredentialFactory.CredentialHttpRetryInitializer - Class in com.google.cloud.hadoop.util
Simple HttpRequestInitializer that retries requests that result in 5XX response codes and IO Exceptions with an exponential backoff.
CredentialFactory.GoogleCredentialWithRetry - Class in com.google.cloud.hadoop.util
A subclass of GoogleCredential that properly wires specified HttpRequestInitializer through the @{link Credential#executeRefreshToken} override.
CredentialHttpRetryInitializer() - Constructor for class com.google.cloud.hadoop.util.CredentialFactory.CredentialHttpRetryInitializer
 
CredentialHttpRetryInitializer(Credential) - Constructor for class com.google.cloud.hadoop.util.CredentialFactory.CredentialHttpRetryInitializer
 
CredentialOptions - Class in com.google.cloud.hadoop.util
Configuration for how components should obtain Credentials.
CredentialOptions() - Constructor for class com.google.cloud.hadoop.util.CredentialOptions
 
CredentialOptions.Builder - Class in com.google.cloud.hadoop.util
Builder for CredentialOptions

D

dataRangeResponse(byte[], long, long) - Static method in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 
dataResponse(byte[]) - Static method in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 
dataResponse(Map<String, Object>, byte[]) - Static method in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 
DEFAULT - Static variable in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
 
DEFAULT - Static variable in class com.google.cloud.hadoop.util.RequesterPaysOptions
 
DEFAULT - Static variable in class com.google.cloud.hadoop.util.RetryDeterminer
Retries when either SOCKET_ERRORS or SERVER_ERRORS would retry.
DEFAULT_TRANSPORT_TYPE - Static variable in class com.google.cloud.hadoop.util.HttpTransportFactory
 
DIRECT_UPLOAD_ENABLED_DEFAULT - Static variable in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
Default of whether to use direct upload.

E

emptyResponse(int) - Static method in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 
execute(Runnable) - Method in class com.google.cloud.hadoop.util.LazyExecutorService
Always throws a RejectedExecutionException because using this method does not make sense from either a lazy execution perspective or a cached result perspective.
executeRefreshToken() - Method in class com.google.cloud.hadoop.util.CredentialFactory.ComputeCredentialWithRetry
 
executeRefreshToken() - Method in class com.google.cloud.hadoop.util.CredentialFactory.GoogleCredentialWithRetry
 
executeRefreshToken() - Method in class com.google.cloud.hadoop.util.GoogleCredentialWithIamAccessToken
 

F

fakeResponse(String, Object, InputStream) - Static method in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 
fakeResponse(Map<String, Object>, InputStream) - Static method in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 
FIELD_SIZE_TOO_LARGE_REASON - Static variable in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
fieldSizeTooLarge(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the given exception indicates 'field size too large'.

G

GCS_SCOPES - Static variable in class com.google.cloud.hadoop.util.CredentialFactory
 
GCS_UPLOAD_GRANULARITY - Static variable in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
 
getBuckets() - Method in class com.google.cloud.hadoop.util.RequesterPaysOptions
 
getBufferSize() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
 
getClientId() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getClientSecret() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getCredential(List<String>) - Method in class com.google.cloud.hadoop.util.CredentialFactory
Get the credential as configured.
getCredentialFromFileCredentialStoreForInstalledApp(RedactedString, RedactedString, String, List<String>, HttpTransport, String) - Static method in class com.google.cloud.hadoop.util.CredentialFactory
Deprecated.
Use properly configured with CredentialFactory#getCredential(List)
getCredentialFromMetadataServiceAccount() - Static method in class com.google.cloud.hadoop.util.CredentialFactory
Deprecated.
Use properly configured with CredentialFactory#getCredential(List)
getCredentialFromPrivateKeyServiceAccount(String, String, List<String>, HttpTransport, String) - Static method in class com.google.cloud.hadoop.util.CredentialFactory
Deprecated.
Use properly configured with CredentialFactory#getCredential(List)
getDebugInfo(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
getErrorCode() - Method in enum com.google.cloud.hadoop.util.testing.MockHttpTransportHelper.ErrorResponses
 
getErrorDomain() - Method in enum com.google.cloud.hadoop.util.testing.MockHttpTransportHelper.ErrorResponses
 
getErrorInfo(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Get the first ErrorInfo from an IOException if it is an instance of GoogleJsonResponseException, otherwise return null.
getErrorMessage(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Extracts the error message.
getErrorMessage() - Method in enum com.google.cloud.hadoop.util.testing.MockHttpTransportHelper.ErrorResponses
 
getErrorReason() - Method in enum com.google.cloud.hadoop.util.testing.MockHttpTransportHelper.ErrorResponses
 
getGoogleRequestCallable(AbstractGoogleClientRequest<V>) - Static method in class com.google.cloud.hadoop.util.ResilientOperation
Returns a ResilientOperation.CheckedCallable that encompasses a AbstractGoogleClientRequest and can be used to retry the execution for an AbstractGoogleClientRequest.
getHttpStatusCode(GoogleJsonResponseException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Returns HTTP status code from the given exception.
getJsonError(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
If the exception is a GoogleJsonResponseException, get the error details, else return null.
getJsonResponseException(Throwable) - Static method in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
getMode() - Method in class com.google.cloud.hadoop.util.RequesterPaysOptions
 
getOAuthCredentialFile() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getPipeBufferSize() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
 
getPipeType() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
 
getProjectId() - Method in class com.google.cloud.hadoop.util.RequesterPaysOptions
 
getPropertyOrDefault(Class<?>, String, String, String) - Static method in class com.google.cloud.hadoop.util.PropertyUtil
Get the value of a property or a default value if there's an error retrieving the property key.
getProxyAddress() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getProxyPassword() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getProxyUsername() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getRequestHeaders(AbstractGoogleClientRequest<S>) - Method in class com.google.cloud.hadoop.util.ClientRequestHelper
Wraps AbstractGoogleClientRequest.getRequestHeaders().
getResourceString() - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
 
getResponseCode() - Method in enum com.google.cloud.hadoop.util.testing.MockHttpTransportHelper.ErrorResponses
 
getServiceAccountEmail() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getServiceAccountJsonKeyFile() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getServiceAccountKeyFile() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getServiceAccountPrivateKey() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getServiceAccountPrivateKeyId() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getTokenServerUrl() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getTransportType() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
getUploadCacheSize() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
 
getUploadChunkSize() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
 
GLOBAL_DOMAIN - Static variable in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
GoogleCredentialWithIamAccessToken - Class in com.google.cloud.hadoop.util
A Credential to generate or refresh IAM access token.
GoogleCredentialWithIamAccessToken(HttpTransport, HttpRequestInitializer, String, ImmutableList<String>) - Constructor for class com.google.cloud.hadoop.util.GoogleCredentialWithIamAccessToken
 
GoogleCredentialWithIamAccessToken(HttpTransport, HttpRequestInitializer, String, ImmutableList<String>, Clock) - Constructor for class com.google.cloud.hadoop.util.GoogleCredentialWithIamAccessToken
 
GRPC_CHECKSUMS_ENABLED_DEFAULT - Static variable in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
Default of whether to enabled checksums for gRPC.

H

handleResponse(T) - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Handle the API response.
HttpTransportFactory - Class in com.google.cloud.hadoop.util
Factory for creating HttpTransport types.
HttpTransportFactory() - Constructor for class com.google.cloud.hadoop.util.HttpTransportFactory
 
HttpTransportFactory.HttpTransportType - Enum in com.google.cloud.hadoop.util
Types of HttpTransports the factory can create.

I

initialize() - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Initialize this channel object for writing.
initialize(HttpRequest) - Method in class com.google.cloud.hadoop.util.ChainingHttpRequestInitializer
 
initialize(HttpRequest) - Method in class com.google.cloud.hadoop.util.CredentialFactory.CredentialHttpRetryInitializer
 
initialize(HttpRequest) - Method in class com.google.cloud.hadoop.util.RetryHttpInitializer
 
inputStreamResponse(String, Object, InputStream) - Static method in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 
inputStreamResponse(Map<String, Object>, InputStream) - Static method in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 
INSTANCE - Static variable in class com.google.cloud.hadoop.util.ApiErrorExtractor
Singleton instance of the ApiErrorExtractor.
internalServerError(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the exception is an internal server error.
invokeAll(Collection<? extends Callable<T>>) - Method in class com.google.cloud.hadoop.util.LazyExecutorService
ExecutorService requires that this method should not return until all tasks are completed, which precludes lazy execution.
invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.google.cloud.hadoop.util.LazyExecutorService
ExecutorService requires that this method should not return until all tasks are completed or the timeout expires, which precludes lazy execution.
invokeAny(Collection<? extends Callable<T>>) - Method in class com.google.cloud.hadoop.util.LazyExecutorService
Always throws a RejectedExecutionException because using this method does not make sense from either a lazy execution perspective or a cached result perspective.
invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.google.cloud.hadoop.util.LazyExecutorService
Always throws a RejectedExecutionException because using this method does not make sense from either a lazy execution perspective or a cached result perspective.
ioError(Throwable) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if a given Throwable is caused by an IO error.
isClientError(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
isDirectUploadEnabled() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
 
isDirectUploadEnabled() - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Returns true if direct media uploads are enabled.
isGrpcChecksumsEnabled() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
 
isNullCredentialEnabled() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
isOpen() - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Tells whether this channel is open.
isServiceAccountEnabled() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
isShutdown() - Method in class com.google.cloud.hadoop.util.LazyExecutorService
 
isTerminated() - Method in class com.google.cloud.hadoop.util.LazyExecutorService
 
itemAlreadyExists(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the given exception indicates 'item already exists'.
itemNotFound(GoogleJsonError) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Deprecated.
use ApiErrorExtractor.itemNotFound(IOException) or e.getCode() == HttpStatusCodes.STATUS_CODE_NOT_FOUND instead
itemNotFound(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the given exception indicates 'item not found'.

J

JSON_FACTORY - Static variable in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 
jsonDataResponse(Object) - Static method in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 
jsonErrorResponse(MockHttpTransportHelper.ErrorResponses) - Static method in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 

L

LazyExecutorService - Class in com.google.cloud.hadoop.util
Defers execution to the time that a method that expresses interest in the result (get or isDone) is called on the Future.
LazyExecutorService() - Constructor for class com.google.cloud.hadoop.util.LazyExecutorService
Creates an instance using a MoreExecutors.newDirectExecutorService() for the backing service.
LazyExecutorService(ExecutorService) - Constructor for class com.google.cloud.hadoop.util.LazyExecutorService
Creates an instance using the given ExecutorService as the backing service.
logger - Static variable in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
 
LoggingMediaHttpUploaderProgressListener - Class in com.google.cloud.hadoop.util
Logs the status of uploads.
LoggingMediaHttpUploaderProgressListener(String, long) - Constructor for class com.google.cloud.hadoop.util.LoggingMediaHttpUploaderProgressListener
Creates a upload progress listener that emits relevant statistics about the progress of the upload.

M

mockBatchTransport(int, LowLevelHttpResponse...) - Static method in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 
MockHttpTransportHelper - Class in com.google.cloud.hadoop.util.testing
Utility methods for testing with MockHttpTransport
MockHttpTransportHelper.ErrorResponses - Enum in com.google.cloud.hadoop.util.testing
HTTP JSON API error responses
mockTransport(LowLevelHttpResponse...) - Static method in class com.google.cloud.hadoop.util.testing.MockHttpTransportHelper
 

N

newBuilder() - Static method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
nextBackOffMillis() - Method in class com.google.cloud.hadoop.util.RetryBoundedBackOff
 

P

PIPE_BUFFER_SIZE_DEFAULT - Static variable in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
Default pipe buffer size.
PIPE_TYPE_DEFAULT - Static variable in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
 
preconditionNotMet(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the given IOException indicates 'precondition not met' Recursively checks getCause() if outer exception isn't an instance of the correct class.
progressChanged(MediaHttpUploader) - Method in class com.google.cloud.hadoop.util.LoggingMediaHttpUploaderProgressListener
 
PropertyUtil - Class in com.google.cloud.hadoop.util
Helpers for interacting with properties files
PropertyUtil() - Constructor for class com.google.cloud.hadoop.util.PropertyUtil
 

Q

QUOTA_EXCEEDED_REASON - Static variable in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
quotaExceeded(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if a given Throwable is caused by Quota Exceeded.

R

rangeNotSatisfiable(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the given exception indicates 'range not satisfiable'.
RATE_LIMIT_ERRORS - Static variable in class com.google.cloud.hadoop.util.RetryDeterminer
A rate limited determiner that uses a generic ApiErrorExtractor.
RATE_LIMITED_REASON - Static variable in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
rateLimited(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if a given Throwable is caused by a rate limit being applied.
readTimedOut(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
True if the exception is a "read timed out".
recursiveCheckForCode(IOException, int) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Recursively checks getCause() if outer exception isn't an instance of the correct class.
RedactedString - Class in com.google.cloud.hadoop.util
Holder class for string values that should not be logged and displayed when toString method called.
RedactedString() - Constructor for class com.google.cloud.hadoop.util.RedactedString
 
REQUESTER_PAYS_BUCKETS_DEFAULT - Static variable in class com.google.cloud.hadoop.util.RequesterPaysOptions
REQUESTER_PAYS_MODE_DEFAULT - Static variable in class com.google.cloud.hadoop.util.RequesterPaysOptions
RequesterPaysOptions - Class in com.google.cloud.hadoop.util
Options for the GCS Requester Pays feature.
RequesterPaysOptions() - Constructor for class com.google.cloud.hadoop.util.RequesterPaysOptions
 
RequesterPaysOptions.Builder - Class in com.google.cloud.hadoop.util
RequesterPaysOptions.RequesterPaysMode - Enum in com.google.cloud.hadoop.util
Operational modes of GCS Requester Pays feature.
requestFailure(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the given exception indicates intermittent request failure or failure caused by user error.
reset() - Method in class com.google.cloud.hadoop.util.RetryBoundedBackOff
 
ResilientOperation - Class in com.google.cloud.hadoop.util
A class which defines static functions to be called to make a user-provided function more resilient by attempting retries.
ResilientOperation() - Constructor for class com.google.cloud.hadoop.util.ResilientOperation
 
ResilientOperation.CheckedCallable<T,X extends Exception> - Interface in com.google.cloud.hadoop.util
Interface that allows a call that can throw an exception X.
RESOURCE_NOT_READY_REASON - Static variable in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
resourceNotReady(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the given exception indicates 'resource not ready'.
retry(ResilientOperation.CheckedCallable<T, X>, BackOff, RetryDeterminer<? super X>, Class<X>, Sleeper) - Static method in class com.google.cloud.hadoop.util.ResilientOperation
Retries the given executable function in the case of transient errors defined by the RetryDeterminer.
retry(ResilientOperation.CheckedCallable<T, X>, BackOff, RetryDeterminer<? super X>, Class<X>) - Static method in class com.google.cloud.hadoop.util.ResilientOperation
Retries the given executable function in the case of transient errors defined by the RetryDeterminer and uses default sleeper.
RetryBoundedBackOff - Class in com.google.cloud.hadoop.util
An implementation of BackOff that limits the number of calls on another BackOff.
RetryBoundedBackOff(int, BackOff) - Constructor for class com.google.cloud.hadoop.util.RetryBoundedBackOff
RetryBoundedBackOff takes a BackOff and limits the retries.
RetryDeterminer<X extends Exception> - Class in com.google.cloud.hadoop.util
This abstract class is designed to tell if an exception is transient and should result in a retry or not, and should result in a returned exception to the caller.
RetryDeterminer() - Constructor for class com.google.cloud.hadoop.util.RetryDeterminer
 
RetryHttpInitializer - Class in com.google.cloud.hadoop.util
 
RetryHttpInitializer(Credential, String, int, int, int, Map<String, String>) - Constructor for class com.google.cloud.hadoop.util.RetryHttpInitializer
 
RetryHttpInitializer(Credential, String) - Constructor for class com.google.cloud.hadoop.util.RetryHttpInitializer

S

SERVER_ERRORS - Static variable in class com.google.cloud.hadoop.util.RetryDeterminer
Server errors RetryDeterminer decides to retry on HttpResponseExceptions that return a 500.
setBuckets(Collection<String>) - Method in class com.google.cloud.hadoop.util.RequesterPaysOptions.Builder
 
setBuckets(String...) - Method in class com.google.cloud.hadoop.util.RequesterPaysOptions.Builder
 
setBufferSize(int) - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions.Builder
 
setChunkSize(AbstractGoogleClientRequest<S>, int) - Method in class com.google.cloud.hadoop.util.ClientRequestHelper
Wraps AbstractGoogleClientRequest.getMediaHttpUploader().
setClientId(RedactedString) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setClientRequestHelper(ClientRequestHelper<S>) - Method in class com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel
Sets the ClientRequestHelper to be used instead of calling final methods in client requests.
setClientSecret(RedactedString) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setContentType(String) - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Sets the contentType.
setDirectUploadEnabled(boolean) - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions.Builder
 
setDirectUploadEnabled(boolean) - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Enables or disables direct uploads.
setDirectUploadEnabled(AbstractGoogleClientRequest<S>, boolean) - Method in class com.google.cloud.hadoop.util.ClientRequestHelper
Configures the clientRequest to enable/disable direct (single-request) uploads according to enable.
setGrpcChecksumsEnabled(boolean) - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions.Builder
Enable gRPC checksumming.
setMode(RequesterPaysOptions.RequesterPaysMode) - Method in class com.google.cloud.hadoop.util.RequesterPaysOptions.Builder
 
setNullCredentialEnabled(boolean) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setOAuthCredentialFile(String) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setPipeBufferSize(int) - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions.Builder
 
setPipeType(AsyncWriteChannelOptions.PipeType) - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions.Builder
 
setProjectId(String) - Method in class com.google.cloud.hadoop.util.RequesterPaysOptions.Builder
 
setProxyAddress(String) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setProxyPassword(RedactedString) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setProxyUsername(RedactedString) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setServiceAccountEmail(String) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setServiceAccountEnabled(boolean) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setServiceAccountJsonKeyFile(String) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setServiceAccountKeyFile(String) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setServiceAccountPrivateKey(RedactedString) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setServiceAccountPrivateKeyId(RedactedString) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setTokenServerUrl(String) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setTransportType(HttpTransportFactory.HttpTransportType) - Method in class com.google.cloud.hadoop.util.CredentialOptions.Builder
 
setUploadBufferSize(int) - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Deprecated.
setUploadCacheSize(int) - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions.Builder
 
setUploadChunkSize(int) - Method in class com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel
Sets size of upload buffer used.
setUploadChunkSize(int) - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions.Builder
 
setUploadChunkSize(int) - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Sets size of upload buffer used.
shouldRetry(X) - Method in class com.google.cloud.hadoop.util.RetryDeterminer
Determines if we should attempt a retry depending on the caught exception.
shutdown() - Method in class com.google.cloud.hadoop.util.LazyExecutorService
Shuts this service down, but leaves the backing service untouched.
shutdownNow() - Method in class com.google.cloud.hadoop.util.LazyExecutorService
Trying to interpret the assumptions about the contract of this method in the light of this implementation, it seems most reasonable to take the view that all tasks are running, even if the processing has not actually started.
SOCKET_ERRORS - Static variable in class com.google.cloud.hadoop.util.RetryDeterminer
Socket errors retry determiner retries on socket exceptions.
socketError(Throwable) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if a given Throwable is caused by a socket error.
startUpload(InputStream) - Method in class com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel
 
startUpload(InputStream) - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Create a new thread which handles the upload.
STATUS_CODE_RANGE_NOT_SATISFIABLE - Static variable in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
submit(Callable<T>) - Method in class com.google.cloud.hadoop.util.LazyExecutorService
 
submit(Runnable, T) - Method in class com.google.cloud.hadoop.util.LazyExecutorService
 
submit(Runnable) - Method in class com.google.cloud.hadoop.util.LazyExecutorService
 

T

threadPool - Variable in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
 
toBuilder() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
 
toBuilder() - Method in class com.google.cloud.hadoop.util.CredentialOptions
 
toBuilder() - Method in class com.google.cloud.hadoop.util.RequesterPaysOptions
 
toString() - Method in class com.google.cloud.hadoop.util.RedactedString
 
toUserPresentableException(IOException, String) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Converts the exception to a user-presentable error message.
toUserPresentableMessage(IOException, String) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Converts the exception to a user-presentable error message.
toUserPresentableMessage(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor

U

unauthorized(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the given exception indicates the request was unauthenticated.
UPLOAD_CACHE_SIZE_DEFAULT - Static variable in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
Default upload cache size.
UPLOAD_CHUNK_SIZE_DEFAULT - Static variable in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
Default upload chunk size.
UPLOAD_CHUNK_SIZE_DEFAULT - Static variable in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
 
UPLOAD_PIPE_BUFFER_SIZE_DEFAULT - Static variable in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Deprecated.
uploadChunkSize - Variable in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
 
uploadOperation - Variable in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
 
USAGE_LIMITS_DOMAIN - Static variable in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
USER_PROJECT_MISSING_MESSAGE - Static variable in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
USER_RATE_LIMITED_REASON - Static variable in class com.google.cloud.hadoop.util.ApiErrorExtractor
 
userProjectMissing(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
Determines if the given exception indicates that 'userProject' is missing in request.

V

value() - Method in class com.google.cloud.hadoop.util.RedactedString
 
valueOf(String) - Static method in enum com.google.cloud.hadoop.util.AsyncWriteChannelOptions.PipeType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.cloud.hadoop.util.HttpTransportFactory.HttpTransportType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.cloud.hadoop.util.RequesterPaysOptions.RequesterPaysMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.cloud.hadoop.util.testing.MockHttpTransportHelper.ErrorResponses
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.google.cloud.hadoop.util.AsyncWriteChannelOptions.PipeType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.cloud.hadoop.util.HttpTransportFactory.HttpTransportType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.cloud.hadoop.util.RequesterPaysOptions.RequesterPaysMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.cloud.hadoop.util.testing.MockHttpTransportHelper.ErrorResponses
Returns an array containing the constants of this enum type, in the order they are declared.

W

write(ByteBuffer) - Method in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
Writes contents of the given buffer to this channel.
A B C D E F G H I J L M N P Q R S T U V W 
Skip navigation links

Copyright © 2022. All rights reserved.