- 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
-
- channelOptions - Variable in class com.google.cloud.hadoop.util.BaseAbstractGoogleAsyncWriteChannel
-
- CheckedFunction<T,R,E extends Throwable> - Interface in com.google.cloud.hadoop.util
-
Represents a function that accepts one argument and produces a result that can throw checked
exception.
- 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.interceptors - package com.google.cloud.hadoop.util.interceptors
-
- com.google.cloud.hadoop.util.testing - package com.google.cloud.hadoop.util.testing
-
- compose(Function<? super V, ? extends T>) - Method in interface com.google.cloud.hadoop.util.CheckedFunction
-
Returns a composed function that first applies the before
function to its input, and
then applies this function to the result.
- ComputeCredentialWithRetry(ComputeCredential.Builder) - Constructor for class com.google.cloud.hadoop.util.CredentialFactory.ComputeCredentialWithRetry
-
- create(String, String, AccessBoundary.Action) - Static method in class com.google.cloud.hadoop.util.AccessBoundary
-
- 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
with socketKeepAlive true
- createHttpTransport(HttpTransportFactory.HttpTransportType, String, RedactedString, RedactedString) - Static method in class com.google.cloud.hadoop.util.HttpTransportFactory
-
Create an HttpTransport
based on a type class and an optional HTTP proxy.
- createHttpTransport(HttpTransportFactory.HttpTransportType, String, RedactedString, RedactedString, Duration) - Static method in class com.google.cloud.hadoop.util.HttpTransportFactory
-
Create an HttpTransport
based on a type class, optional HTTP proxy and optional socket
read timeout.
- createNetHttpTransport(URI, PasswordAuthentication, Duration) - Static method in class com.google.cloud.hadoop.util.HttpTransportFactory
-
Create an NetHttpTransport
for calling Google APIs with an optional HTTP proxy.
- 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.
- CredentialAdapter - Class in com.google.cloud.hadoop.util
-
A wrapper for using Credential
with the Google API Client Libraries for Java.
- CredentialAdapter(Credential) - Constructor for class com.google.cloud.hadoop.util.CredentialAdapter
-
- 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
-
- GCCL_INVOCATION_ID_PREFIX - Static variable in class com.google.cloud.hadoop.util.interceptors.InvocationIdInterceptor
-
- getAuthClientId() - Method in class com.google.cloud.hadoop.util.CredentialOptions
-
- getAuthClientSecret() - Method in class com.google.cloud.hadoop.util.CredentialOptions
-
- getAuthRefreshToken() - Method in class com.google.cloud.hadoop.util.CredentialOptions
-
- getBuckets() - Method in class com.google.cloud.hadoop.util.RequesterPaysOptions
-
- getBufferSize() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
-
- getConnectTimeout() - Method in class com.google.cloud.hadoop.util.RetryHttpInitializerOptions
-
A connection timeout - maximum time to wait until connection will be established.
- getContentType() - Method in class com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel
-
- getCredential(List<String>) - Method in class com.google.cloud.hadoop.util.CredentialFactory
-
Get the credential as configured.
- getCredential() - Method in class com.google.cloud.hadoop.util.RetryHttpInitializer
-
- getCredentialFromMetadataServiceAccount() - Static method in class com.google.cloud.hadoop.util.CredentialFactory
-
Initializes OAuth2 credential using preconfigured ServiceAccount settings on the local GCE VM.
- getCredentialFromPrivateKeyServiceAccount(List<String>, HttpTransport) - Method in class com.google.cloud.hadoop.util.CredentialFactory
-
- getDebugInfo(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
-
- getDefaultUserAgent() - Method in class com.google.cloud.hadoop.util.RetryHttpInitializerOptions
-
A String to set as the user-agent when initializing an HTTP request if it doesn't already have
a "User-Agent" header.
- 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
-
- getErrorType(Exception) - Method in interface com.google.cloud.hadoop.util.ErrorTypeExtractor
-
- getErrorType(Exception) - Method in class com.google.cloud.hadoop.util.GrpcErrorTypeExtractor
-
- getGrpcWriteMessageTimeoutMillis() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
-
- getGrpcWriteTimeout() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
-
- getHttpHeaders() - Method in class com.google.cloud.hadoop.util.RetryHttpInitializerOptions
-
An additional HTTP headers to set in an HTTP request.
- 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
-
- getMaxRequestRetries() - Method in class com.google.cloud.hadoop.util.RetryHttpInitializerOptions
-
A max number of retries for an HTTP request.
- getMode() - Method in class com.google.cloud.hadoop.util.RequesterPaysOptions
-
- getNumberOfBufferedRequests() - Method in class com.google.cloud.hadoop.util.AsyncWriteChannelOptions
-
- 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
-
- getReadTimeout() - Method in class com.google.cloud.hadoop.util.RetryHttpInitializerOptions
-
A read timeout from an established connection - maximum time to wait for a read form an
established connection to finish.
- 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
-
- GOOG_API_CLIENT - Static variable in class com.google.cloud.hadoop.util.interceptors.InvocationIdInterceptor
-
- 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.
- GrpcErrorTypeExtractor - Class in com.google.cloud.hadoop.util
-
- identity() - Static method in interface com.google.cloud.hadoop.util.CheckedFunction
-
Returns a function that always returns its input argument.
- 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.
- INSTANCE - Static variable in class com.google.cloud.hadoop.util.GrpcErrorTypeExtractor
-
- intercept(HttpRequest) - Method in class com.google.cloud.hadoop.util.interceptors.InvocationIdInterceptor
-
- internalServerError(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
-
Determines if the exception is an internal server error.
- InvocationIdInterceptor - Class in com.google.cloud.hadoop.util.interceptors
-
HTTP request interceptor to attach unique identifier i.e.
- InvocationIdInterceptor(HttpExecuteInterceptor) - Constructor for class com.google.cloud.hadoop.util.interceptors.InvocationIdInterceptor
-
- 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.
- IoExceptionHelper - 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.
- 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
-
- isIoError(Throwable) - Static method in class com.google.cloud.hadoop.util.IoExceptionHelper
-
Determines if a given
Throwable
is caused by an IO error.
- 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.
- isReadTimedOut(IOException) - Static method in class com.google.cloud.hadoop.util.IoExceptionHelper
-
Determines if a given
IOException
is caused by a timed out read.
- isServiceAccountEnabled() - Method in class com.google.cloud.hadoop.util.CredentialOptions
-
- isShutdown() - Method in class com.google.cloud.hadoop.util.LazyExecutorService
-
- isSocketError(Throwable) - Static method in class com.google.cloud.hadoop.util.IoExceptionHelper
-
Determines if a given
Throwable
is caused by a socket error.
- 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(IOException) - Method in class com.google.cloud.hadoop.util.ApiErrorExtractor
-
Determines if the given exception indicates 'item not found'.
- 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 interface com.google.cloud.hadoop.util.RetryDeterminer
-
- 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.
- 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
-
- refreshAccessToken() - Method in class com.google.cloud.hadoop.util.CredentialAdapter
-
- 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
-
- 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(Callable<T>, 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(Callable<T>, 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(BackOff, int) - Constructor for class com.google.cloud.hadoop.util.RetryBoundedBackOff
-
RetryBoundedBackOff takes a BackOff
and limits the retries.
- RetryDeterminer<X extends Exception> - Interface 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.
- RetryHttpInitializer - Class in com.google.cloud.hadoop.util
-
- RetryHttpInitializer(Credential, String) - Constructor for class com.google.cloud.hadoop.util.RetryHttpInitializer
-
- RetryHttpInitializer(Credential, RetryHttpInitializerOptions) - Constructor for class com.google.cloud.hadoop.util.RetryHttpInitializer
-
- RetryHttpInitializerOptions - Class in com.google.cloud.hadoop.util
-
- RetryHttpInitializerOptions() - Constructor for class com.google.cloud.hadoop.util.RetryHttpInitializerOptions
-
- RetryHttpInitializerOptions.Builder - Class in com.google.cloud.hadoop.util
-
- value() - Method in class com.google.cloud.hadoop.util.RedactedString
-
- valueOf(String) - Static method in enum com.google.cloud.hadoop.util.AccessBoundary.Action
-
Returns the enum constant of this type with the specified name.
- 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.ErrorTypeExtractor.ErrorType
-
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.AccessBoundary.Action
-
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.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.ErrorTypeExtractor.ErrorType
-
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.