- 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
-
- 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
-
- 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
-
- 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
-