com.amazonaws.services.storagegateway.AWSStorageGatewayAsyncClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-storagegateway Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.storagegateway;
import static java.util.concurrent.Executors.newFixedThreadPool;
import javax.annotation.Generated;
import com.amazonaws.services.storagegateway.model.*;
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import java.util.concurrent.ExecutorService;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;
/**
* Client for accessing AWS Storage Gateway asynchronously. Each asynchronous method will return a Java Future object
* representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
* notification when an asynchronous operation completes.
*
* Storage Gateway Service
*
* Storage Gateway is the service that connects an on-premises software appliance with cloud-based storage to provide
* seamless and secure integration between an organization's on-premises IT environment and the Amazon Web Services
* storage infrastructure. The service enables you to securely upload data to the Amazon Web Services Cloud for cost
* effective backup and rapid disaster recovery.
*
*
* Use the following links to get started using the Storage Gateway Service API Reference:
*
*
* -
*
* Storage Gateway required request headers: Describes the required headers that you must send with every POST
* request to Storage Gateway.
*
*
* -
*
* Signing requests: Storage Gateway requires that you authenticate every request you send; this topic describes
* how sign such a request.
*
*
* -
*
*
* Error responses: Provides reference information about Storage Gateway errors.
*
*
* -
*
* Operations in Storage
* Gateway: Contains detailed descriptions of all Storage Gateway operations, their request parameters, response
* elements, possible errors, and examples of requests and responses.
*
*
* -
*
* Storage Gateway endpoints and quotas: Provides a
* list of each Amazon Web Services Region and the endpoints available for use with Storage Gateway.
*
*
*
*
*
* Storage Gateway resource IDs are in uppercase. When you use these resource IDs with the Amazon EC2 API, EC2 expects
* resource IDs in lowercase. You must change your resource ID to lowercase to use it with the EC2 API. For example, in
* Storage Gateway the ID for a volume might be vol-AA22BB012345DAF670
. When you use this ID with the EC2
* API, you must change it to vol-aa22bb012345daf670
. Otherwise, the EC2 API might not behave as expected.
*
*
*
* IDs for Storage Gateway volumes and Amazon EBS snapshots created from gateway volumes are changing to a longer
* format. Starting in December 2016, all new volumes and snapshots will be created with a 17-character string. Starting
* in April 2016, you will be able to use these longer IDs so you can test your systems with the new format. For more
* information, see Longer EC2 and EBS resource IDs.
*
*
* For example, a volume Amazon Resource Name (ARN) with the longer volume ID format looks like the following:
*
*
* arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG
.
*
*
* A snapshot ID with the longer ID format looks like the following: snap-78e226633445566ee
.
*
*
* For more information, see Announcement: Heads-up – Longer
* Storage Gateway volume and snapshot IDs coming in 2016.
*
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AWSStorageGatewayAsyncClient extends AWSStorageGatewayClient implements AWSStorageGatewayAsync {
private static final int DEFAULT_THREAD_POOL_SIZE = 50;
private final java.util.concurrent.ExecutorService executorService;
/**
* Constructs a new asynchronous client to invoke service methods on AWS Storage Gateway. A credentials provider
* chain will be used that searches for credentials in this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSStorageGatewayAsyncClientBuilder#defaultClient()}
*/
@Deprecated
public AWSStorageGatewayAsyncClient() {
this(DefaultAWSCredentialsProviderChain.getInstance());
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Storage Gateway. A credentials provider
* chain will be used that searches for credentials in this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param clientConfiguration
* The client configuration options controlling how this client connects to AWS Storage Gateway (ex: proxy
* settings, retry counts, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSStorageGatewayAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSStorageGatewayAsyncClient(ClientConfiguration clientConfiguration) {
this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Storage Gateway using the specified AWS
* account credentials.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSStorageGatewayAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AWSStorageGatewayAsyncClient(AWSCredentials awsCredentials) {
this(awsCredentials, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Storage Gateway using the specified AWS
* account credentials and executor service. Default client settings will be used.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSStorageGatewayAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSStorageGatewayAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSStorageGatewayAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) {
this(awsCredentials, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Storage Gateway using the specified AWS
* account credentials, executor service, and client configuration options.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSStorageGatewayAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSStorageGatewayAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AWSStorageGatewayAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSStorageGatewayAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentials, clientConfiguration);
this.executorService = executorService;
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Storage Gateway using the specified AWS
* account credentials provider. Default client settings will be used.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default
* maximum number of concurrent connections to the service).
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSStorageGatewayAsyncClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AWSStorageGatewayAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Storage Gateway using the provided AWS
* account credentials provider and client configuration options.
*
* Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
* maximum number of concurrent connections configured via {@code ClientConfiguration.getMaxConnections()}.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
*
* @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain
* @see java.util.concurrent.Executors#newFixedThreadPool(int)
* @deprecated use {@link AWSStorageGatewayAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSStorageGatewayAsyncClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSStorageGatewayAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, newFixedThreadPool(clientConfiguration.getMaxConnections()));
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Storage Gateway using the specified AWS
* account credentials provider and executor service. Default client settings will be used.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSStorageGatewayAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSStorageGatewayAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSStorageGatewayAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) {
this(awsCredentialsProvider, configFactory.getConfig(), executorService);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Storage Gateway using the specified AWS
* account credentials provider, executor service, and client configuration options.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* Client configuration options (ex: max retry limit, proxy settings, etc).
* @param executorService
* The executor service by which all asynchronous requests will be executed.
* @deprecated use {@link AWSStorageGatewayAsyncClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSStorageGatewayAsyncClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AWSStorageGatewayAsyncClientBuilder#withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)}
*/
@Deprecated
public AWSStorageGatewayAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) {
super(awsCredentialsProvider, clientConfiguration);
this.executorService = executorService;
}
public static AWSStorageGatewayAsyncClientBuilder asyncBuilder() {
return AWSStorageGatewayAsyncClientBuilder.standard();
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Storage Gateway using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
*/
AWSStorageGatewayAsyncClient(AwsAsyncClientParams asyncClientParams) {
this(asyncClientParams, false);
}
/**
* Constructs a new asynchronous client to invoke service methods on AWS Storage Gateway using the specified
* parameters.
*
* @param asyncClientParams
* Object providing client parameters.
* @param endpointDiscoveryEnabled
* true will enable endpoint discovery if the service supports it.
*/
AWSStorageGatewayAsyncClient(AwsAsyncClientParams asyncClientParams, boolean endpointDiscoveryEnabled) {
super(asyncClientParams, endpointDiscoveryEnabled);
this.executorService = asyncClientParams.getExecutor();
}
/**
* Returns the executor service used by this client to execute async requests.
*
* @return The executor service used by this client to execute async requests.
*/
public ExecutorService getExecutorService() {
return executorService;
}
@Override
public java.util.concurrent.Future activateGatewayAsync(ActivateGatewayRequest request) {
return activateGatewayAsync(request, null);
}
@Override
public java.util.concurrent.Future activateGatewayAsync(final ActivateGatewayRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ActivateGatewayRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ActivateGatewayResult call() throws Exception {
ActivateGatewayResult result = null;
try {
result = executeActivateGateway(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future addCacheAsync(AddCacheRequest request) {
return addCacheAsync(request, null);
}
@Override
public java.util.concurrent.Future addCacheAsync(final AddCacheRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AddCacheRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AddCacheResult call() throws Exception {
AddCacheResult result = null;
try {
result = executeAddCache(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future addTagsToResourceAsync(AddTagsToResourceRequest request) {
return addTagsToResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future addTagsToResourceAsync(final AddTagsToResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AddTagsToResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AddTagsToResourceResult call() throws Exception {
AddTagsToResourceResult result = null;
try {
result = executeAddTagsToResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future addUploadBufferAsync(AddUploadBufferRequest request) {
return addUploadBufferAsync(request, null);
}
@Override
public java.util.concurrent.Future addUploadBufferAsync(final AddUploadBufferRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AddUploadBufferRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AddUploadBufferResult call() throws Exception {
AddUploadBufferResult result = null;
try {
result = executeAddUploadBuffer(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future addWorkingStorageAsync(AddWorkingStorageRequest request) {
return addWorkingStorageAsync(request, null);
}
@Override
public java.util.concurrent.Future addWorkingStorageAsync(final AddWorkingStorageRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AddWorkingStorageRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AddWorkingStorageResult call() throws Exception {
AddWorkingStorageResult result = null;
try {
result = executeAddWorkingStorage(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future assignTapePoolAsync(AssignTapePoolRequest request) {
return assignTapePoolAsync(request, null);
}
@Override
public java.util.concurrent.Future assignTapePoolAsync(final AssignTapePoolRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AssignTapePoolRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AssignTapePoolResult call() throws Exception {
AssignTapePoolResult result = null;
try {
result = executeAssignTapePool(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future associateFileSystemAsync(AssociateFileSystemRequest request) {
return associateFileSystemAsync(request, null);
}
@Override
public java.util.concurrent.Future associateFileSystemAsync(final AssociateFileSystemRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AssociateFileSystemRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AssociateFileSystemResult call() throws Exception {
AssociateFileSystemResult result = null;
try {
result = executeAssociateFileSystem(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future attachVolumeAsync(AttachVolumeRequest request) {
return attachVolumeAsync(request, null);
}
@Override
public java.util.concurrent.Future attachVolumeAsync(final AttachVolumeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final AttachVolumeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public AttachVolumeResult call() throws Exception {
AttachVolumeResult result = null;
try {
result = executeAttachVolume(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future cancelArchivalAsync(CancelArchivalRequest request) {
return cancelArchivalAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelArchivalAsync(final CancelArchivalRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelArchivalRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelArchivalResult call() throws Exception {
CancelArchivalResult result = null;
try {
result = executeCancelArchival(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future cancelRetrievalAsync(CancelRetrievalRequest request) {
return cancelRetrievalAsync(request, null);
}
@Override
public java.util.concurrent.Future cancelRetrievalAsync(final CancelRetrievalRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CancelRetrievalRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CancelRetrievalResult call() throws Exception {
CancelRetrievalResult result = null;
try {
result = executeCancelRetrieval(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createCachediSCSIVolumeAsync(CreateCachediSCSIVolumeRequest request) {
return createCachediSCSIVolumeAsync(request, null);
}
@Override
public java.util.concurrent.Future createCachediSCSIVolumeAsync(final CreateCachediSCSIVolumeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateCachediSCSIVolumeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateCachediSCSIVolumeResult call() throws Exception {
CreateCachediSCSIVolumeResult result = null;
try {
result = executeCreateCachediSCSIVolume(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createNFSFileShareAsync(CreateNFSFileShareRequest request) {
return createNFSFileShareAsync(request, null);
}
@Override
public java.util.concurrent.Future createNFSFileShareAsync(final CreateNFSFileShareRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateNFSFileShareRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateNFSFileShareResult call() throws Exception {
CreateNFSFileShareResult result = null;
try {
result = executeCreateNFSFileShare(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createSMBFileShareAsync(CreateSMBFileShareRequest request) {
return createSMBFileShareAsync(request, null);
}
@Override
public java.util.concurrent.Future createSMBFileShareAsync(final CreateSMBFileShareRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateSMBFileShareRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateSMBFileShareResult call() throws Exception {
CreateSMBFileShareResult result = null;
try {
result = executeCreateSMBFileShare(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createSnapshotAsync(CreateSnapshotRequest request) {
return createSnapshotAsync(request, null);
}
@Override
public java.util.concurrent.Future createSnapshotAsync(final CreateSnapshotRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateSnapshotRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateSnapshotResult call() throws Exception {
CreateSnapshotResult result = null;
try {
result = executeCreateSnapshot(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createSnapshotFromVolumeRecoveryPointAsync(
CreateSnapshotFromVolumeRecoveryPointRequest request) {
return createSnapshotFromVolumeRecoveryPointAsync(request, null);
}
@Override
public java.util.concurrent.Future createSnapshotFromVolumeRecoveryPointAsync(
final CreateSnapshotFromVolumeRecoveryPointRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateSnapshotFromVolumeRecoveryPointRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateSnapshotFromVolumeRecoveryPointResult call() throws Exception {
CreateSnapshotFromVolumeRecoveryPointResult result = null;
try {
result = executeCreateSnapshotFromVolumeRecoveryPoint(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createStorediSCSIVolumeAsync(CreateStorediSCSIVolumeRequest request) {
return createStorediSCSIVolumeAsync(request, null);
}
@Override
public java.util.concurrent.Future createStorediSCSIVolumeAsync(final CreateStorediSCSIVolumeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateStorediSCSIVolumeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateStorediSCSIVolumeResult call() throws Exception {
CreateStorediSCSIVolumeResult result = null;
try {
result = executeCreateStorediSCSIVolume(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createTapePoolAsync(CreateTapePoolRequest request) {
return createTapePoolAsync(request, null);
}
@Override
public java.util.concurrent.Future createTapePoolAsync(final CreateTapePoolRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateTapePoolRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateTapePoolResult call() throws Exception {
CreateTapePoolResult result = null;
try {
result = executeCreateTapePool(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createTapeWithBarcodeAsync(CreateTapeWithBarcodeRequest request) {
return createTapeWithBarcodeAsync(request, null);
}
@Override
public java.util.concurrent.Future createTapeWithBarcodeAsync(final CreateTapeWithBarcodeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateTapeWithBarcodeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateTapeWithBarcodeResult call() throws Exception {
CreateTapeWithBarcodeResult result = null;
try {
result = executeCreateTapeWithBarcode(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future createTapesAsync(CreateTapesRequest request) {
return createTapesAsync(request, null);
}
@Override
public java.util.concurrent.Future createTapesAsync(final CreateTapesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final CreateTapesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public CreateTapesResult call() throws Exception {
CreateTapesResult result = null;
try {
result = executeCreateTapes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteAutomaticTapeCreationPolicyAsync(
DeleteAutomaticTapeCreationPolicyRequest request) {
return deleteAutomaticTapeCreationPolicyAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteAutomaticTapeCreationPolicyAsync(
final DeleteAutomaticTapeCreationPolicyRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteAutomaticTapeCreationPolicyRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteAutomaticTapeCreationPolicyResult call() throws Exception {
DeleteAutomaticTapeCreationPolicyResult result = null;
try {
result = executeDeleteAutomaticTapeCreationPolicy(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteBandwidthRateLimitAsync(DeleteBandwidthRateLimitRequest request) {
return deleteBandwidthRateLimitAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteBandwidthRateLimitAsync(final DeleteBandwidthRateLimitRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteBandwidthRateLimitRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteBandwidthRateLimitResult call() throws Exception {
DeleteBandwidthRateLimitResult result = null;
try {
result = executeDeleteBandwidthRateLimit(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteChapCredentialsAsync(DeleteChapCredentialsRequest request) {
return deleteChapCredentialsAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteChapCredentialsAsync(final DeleteChapCredentialsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteChapCredentialsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteChapCredentialsResult call() throws Exception {
DeleteChapCredentialsResult result = null;
try {
result = executeDeleteChapCredentials(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteFileShareAsync(DeleteFileShareRequest request) {
return deleteFileShareAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteFileShareAsync(final DeleteFileShareRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteFileShareRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteFileShareResult call() throws Exception {
DeleteFileShareResult result = null;
try {
result = executeDeleteFileShare(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteGatewayAsync(DeleteGatewayRequest request) {
return deleteGatewayAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteGatewayAsync(final DeleteGatewayRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteGatewayRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteGatewayResult call() throws Exception {
DeleteGatewayResult result = null;
try {
result = executeDeleteGateway(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteSnapshotScheduleAsync(DeleteSnapshotScheduleRequest request) {
return deleteSnapshotScheduleAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteSnapshotScheduleAsync(final DeleteSnapshotScheduleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteSnapshotScheduleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteSnapshotScheduleResult call() throws Exception {
DeleteSnapshotScheduleResult result = null;
try {
result = executeDeleteSnapshotSchedule(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteTapeAsync(DeleteTapeRequest request) {
return deleteTapeAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteTapeAsync(final DeleteTapeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteTapeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteTapeResult call() throws Exception {
DeleteTapeResult result = null;
try {
result = executeDeleteTape(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteTapeArchiveAsync(DeleteTapeArchiveRequest request) {
return deleteTapeArchiveAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteTapeArchiveAsync(final DeleteTapeArchiveRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteTapeArchiveRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteTapeArchiveResult call() throws Exception {
DeleteTapeArchiveResult result = null;
try {
result = executeDeleteTapeArchive(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteTapePoolAsync(DeleteTapePoolRequest request) {
return deleteTapePoolAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteTapePoolAsync(final DeleteTapePoolRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteTapePoolRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteTapePoolResult call() throws Exception {
DeleteTapePoolResult result = null;
try {
result = executeDeleteTapePool(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future deleteVolumeAsync(DeleteVolumeRequest request) {
return deleteVolumeAsync(request, null);
}
@Override
public java.util.concurrent.Future deleteVolumeAsync(final DeleteVolumeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DeleteVolumeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DeleteVolumeResult call() throws Exception {
DeleteVolumeResult result = null;
try {
result = executeDeleteVolume(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeAvailabilityMonitorTestAsync(
DescribeAvailabilityMonitorTestRequest request) {
return describeAvailabilityMonitorTestAsync(request, null);
}
@Override
public java.util.concurrent.Future describeAvailabilityMonitorTestAsync(
final DescribeAvailabilityMonitorTestRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeAvailabilityMonitorTestRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeAvailabilityMonitorTestResult call() throws Exception {
DescribeAvailabilityMonitorTestResult result = null;
try {
result = executeDescribeAvailabilityMonitorTest(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeBandwidthRateLimitAsync(DescribeBandwidthRateLimitRequest request) {
return describeBandwidthRateLimitAsync(request, null);
}
@Override
public java.util.concurrent.Future describeBandwidthRateLimitAsync(final DescribeBandwidthRateLimitRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeBandwidthRateLimitRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeBandwidthRateLimitResult call() throws Exception {
DescribeBandwidthRateLimitResult result = null;
try {
result = executeDescribeBandwidthRateLimit(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeBandwidthRateLimitScheduleAsync(
DescribeBandwidthRateLimitScheduleRequest request) {
return describeBandwidthRateLimitScheduleAsync(request, null);
}
@Override
public java.util.concurrent.Future describeBandwidthRateLimitScheduleAsync(
final DescribeBandwidthRateLimitScheduleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeBandwidthRateLimitScheduleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeBandwidthRateLimitScheduleResult call() throws Exception {
DescribeBandwidthRateLimitScheduleResult result = null;
try {
result = executeDescribeBandwidthRateLimitSchedule(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeCacheAsync(DescribeCacheRequest request) {
return describeCacheAsync(request, null);
}
@Override
public java.util.concurrent.Future describeCacheAsync(final DescribeCacheRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeCacheRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeCacheResult call() throws Exception {
DescribeCacheResult result = null;
try {
result = executeDescribeCache(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeCachediSCSIVolumesAsync(DescribeCachediSCSIVolumesRequest request) {
return describeCachediSCSIVolumesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeCachediSCSIVolumesAsync(final DescribeCachediSCSIVolumesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeCachediSCSIVolumesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeCachediSCSIVolumesResult call() throws Exception {
DescribeCachediSCSIVolumesResult result = null;
try {
result = executeDescribeCachediSCSIVolumes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeChapCredentialsAsync(DescribeChapCredentialsRequest request) {
return describeChapCredentialsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeChapCredentialsAsync(final DescribeChapCredentialsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeChapCredentialsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeChapCredentialsResult call() throws Exception {
DescribeChapCredentialsResult result = null;
try {
result = executeDescribeChapCredentials(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeFileSystemAssociationsAsync(DescribeFileSystemAssociationsRequest request) {
return describeFileSystemAssociationsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeFileSystemAssociationsAsync(
final DescribeFileSystemAssociationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeFileSystemAssociationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeFileSystemAssociationsResult call() throws Exception {
DescribeFileSystemAssociationsResult result = null;
try {
result = executeDescribeFileSystemAssociations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeGatewayInformationAsync(DescribeGatewayInformationRequest request) {
return describeGatewayInformationAsync(request, null);
}
@Override
public java.util.concurrent.Future describeGatewayInformationAsync(final DescribeGatewayInformationRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeGatewayInformationRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeGatewayInformationResult call() throws Exception {
DescribeGatewayInformationResult result = null;
try {
result = executeDescribeGatewayInformation(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeMaintenanceStartTimeAsync(DescribeMaintenanceStartTimeRequest request) {
return describeMaintenanceStartTimeAsync(request, null);
}
@Override
public java.util.concurrent.Future describeMaintenanceStartTimeAsync(final DescribeMaintenanceStartTimeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeMaintenanceStartTimeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeMaintenanceStartTimeResult call() throws Exception {
DescribeMaintenanceStartTimeResult result = null;
try {
result = executeDescribeMaintenanceStartTime(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeNFSFileSharesAsync(DescribeNFSFileSharesRequest request) {
return describeNFSFileSharesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeNFSFileSharesAsync(final DescribeNFSFileSharesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeNFSFileSharesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeNFSFileSharesResult call() throws Exception {
DescribeNFSFileSharesResult result = null;
try {
result = executeDescribeNFSFileShares(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeSMBFileSharesAsync(DescribeSMBFileSharesRequest request) {
return describeSMBFileSharesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeSMBFileSharesAsync(final DescribeSMBFileSharesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeSMBFileSharesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeSMBFileSharesResult call() throws Exception {
DescribeSMBFileSharesResult result = null;
try {
result = executeDescribeSMBFileShares(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeSMBSettingsAsync(DescribeSMBSettingsRequest request) {
return describeSMBSettingsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeSMBSettingsAsync(final DescribeSMBSettingsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeSMBSettingsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeSMBSettingsResult call() throws Exception {
DescribeSMBSettingsResult result = null;
try {
result = executeDescribeSMBSettings(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeSnapshotScheduleAsync(DescribeSnapshotScheduleRequest request) {
return describeSnapshotScheduleAsync(request, null);
}
@Override
public java.util.concurrent.Future describeSnapshotScheduleAsync(final DescribeSnapshotScheduleRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeSnapshotScheduleRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeSnapshotScheduleResult call() throws Exception {
DescribeSnapshotScheduleResult result = null;
try {
result = executeDescribeSnapshotSchedule(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeStorediSCSIVolumesAsync(DescribeStorediSCSIVolumesRequest request) {
return describeStorediSCSIVolumesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeStorediSCSIVolumesAsync(final DescribeStorediSCSIVolumesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeStorediSCSIVolumesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeStorediSCSIVolumesResult call() throws Exception {
DescribeStorediSCSIVolumesResult result = null;
try {
result = executeDescribeStorediSCSIVolumes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeTapeArchivesAsync(DescribeTapeArchivesRequest request) {
return describeTapeArchivesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeTapeArchivesAsync(final DescribeTapeArchivesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeTapeArchivesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeTapeArchivesResult call() throws Exception {
DescribeTapeArchivesResult result = null;
try {
result = executeDescribeTapeArchives(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the DescribeTapeArchives operation.
*
* @see #describeTapeArchivesAsync(DescribeTapeArchivesRequest)
*/
@Override
public java.util.concurrent.Future describeTapeArchivesAsync() {
return describeTapeArchivesAsync(new DescribeTapeArchivesRequest());
}
/**
* Simplified method form for invoking the DescribeTapeArchives operation with an AsyncHandler.
*
* @see #describeTapeArchivesAsync(DescribeTapeArchivesRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future describeTapeArchivesAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return describeTapeArchivesAsync(new DescribeTapeArchivesRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future describeTapeRecoveryPointsAsync(DescribeTapeRecoveryPointsRequest request) {
return describeTapeRecoveryPointsAsync(request, null);
}
@Override
public java.util.concurrent.Future describeTapeRecoveryPointsAsync(final DescribeTapeRecoveryPointsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeTapeRecoveryPointsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeTapeRecoveryPointsResult call() throws Exception {
DescribeTapeRecoveryPointsResult result = null;
try {
result = executeDescribeTapeRecoveryPoints(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeTapesAsync(DescribeTapesRequest request) {
return describeTapesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeTapesAsync(final DescribeTapesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeTapesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeTapesResult call() throws Exception {
DescribeTapesResult result = null;
try {
result = executeDescribeTapes(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeUploadBufferAsync(DescribeUploadBufferRequest request) {
return describeUploadBufferAsync(request, null);
}
@Override
public java.util.concurrent.Future describeUploadBufferAsync(final DescribeUploadBufferRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeUploadBufferRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeUploadBufferResult call() throws Exception {
DescribeUploadBufferResult result = null;
try {
result = executeDescribeUploadBuffer(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeVTLDevicesAsync(DescribeVTLDevicesRequest request) {
return describeVTLDevicesAsync(request, null);
}
@Override
public java.util.concurrent.Future describeVTLDevicesAsync(final DescribeVTLDevicesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeVTLDevicesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeVTLDevicesResult call() throws Exception {
DescribeVTLDevicesResult result = null;
try {
result = executeDescribeVTLDevices(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future describeWorkingStorageAsync(DescribeWorkingStorageRequest request) {
return describeWorkingStorageAsync(request, null);
}
@Override
public java.util.concurrent.Future describeWorkingStorageAsync(final DescribeWorkingStorageRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DescribeWorkingStorageRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DescribeWorkingStorageResult call() throws Exception {
DescribeWorkingStorageResult result = null;
try {
result = executeDescribeWorkingStorage(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future detachVolumeAsync(DetachVolumeRequest request) {
return detachVolumeAsync(request, null);
}
@Override
public java.util.concurrent.Future detachVolumeAsync(final DetachVolumeRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DetachVolumeRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DetachVolumeResult call() throws Exception {
DetachVolumeResult result = null;
try {
result = executeDetachVolume(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future disableGatewayAsync(DisableGatewayRequest request) {
return disableGatewayAsync(request, null);
}
@Override
public java.util.concurrent.Future disableGatewayAsync(final DisableGatewayRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DisableGatewayRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DisableGatewayResult call() throws Exception {
DisableGatewayResult result = null;
try {
result = executeDisableGateway(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future disassociateFileSystemAsync(DisassociateFileSystemRequest request) {
return disassociateFileSystemAsync(request, null);
}
@Override
public java.util.concurrent.Future disassociateFileSystemAsync(final DisassociateFileSystemRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final DisassociateFileSystemRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public DisassociateFileSystemResult call() throws Exception {
DisassociateFileSystemResult result = null;
try {
result = executeDisassociateFileSystem(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future joinDomainAsync(JoinDomainRequest request) {
return joinDomainAsync(request, null);
}
@Override
public java.util.concurrent.Future joinDomainAsync(final JoinDomainRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final JoinDomainRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public JoinDomainResult call() throws Exception {
JoinDomainResult result = null;
try {
result = executeJoinDomain(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listAutomaticTapeCreationPoliciesAsync(
ListAutomaticTapeCreationPoliciesRequest request) {
return listAutomaticTapeCreationPoliciesAsync(request, null);
}
@Override
public java.util.concurrent.Future listAutomaticTapeCreationPoliciesAsync(
final ListAutomaticTapeCreationPoliciesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListAutomaticTapeCreationPoliciesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListAutomaticTapeCreationPoliciesResult call() throws Exception {
ListAutomaticTapeCreationPoliciesResult result = null;
try {
result = executeListAutomaticTapeCreationPolicies(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listFileSharesAsync(ListFileSharesRequest request) {
return listFileSharesAsync(request, null);
}
@Override
public java.util.concurrent.Future listFileSharesAsync(final ListFileSharesRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListFileSharesRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListFileSharesResult call() throws Exception {
ListFileSharesResult result = null;
try {
result = executeListFileShares(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listFileSystemAssociationsAsync(ListFileSystemAssociationsRequest request) {
return listFileSystemAssociationsAsync(request, null);
}
@Override
public java.util.concurrent.Future listFileSystemAssociationsAsync(final ListFileSystemAssociationsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListFileSystemAssociationsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListFileSystemAssociationsResult call() throws Exception {
ListFileSystemAssociationsResult result = null;
try {
result = executeListFileSystemAssociations(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listGatewaysAsync(ListGatewaysRequest request) {
return listGatewaysAsync(request, null);
}
@Override
public java.util.concurrent.Future listGatewaysAsync(final ListGatewaysRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListGatewaysRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListGatewaysResult call() throws Exception {
ListGatewaysResult result = null;
try {
result = executeListGateways(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the ListGateways operation.
*
* @see #listGatewaysAsync(ListGatewaysRequest)
*/
@Override
public java.util.concurrent.Future listGatewaysAsync() {
return listGatewaysAsync(new ListGatewaysRequest());
}
/**
* Simplified method form for invoking the ListGateways operation with an AsyncHandler.
*
* @see #listGatewaysAsync(ListGatewaysRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future listGatewaysAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return listGatewaysAsync(new ListGatewaysRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future listLocalDisksAsync(ListLocalDisksRequest request) {
return listLocalDisksAsync(request, null);
}
@Override
public java.util.concurrent.Future listLocalDisksAsync(final ListLocalDisksRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListLocalDisksRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListLocalDisksResult call() throws Exception {
ListLocalDisksResult result = null;
try {
result = executeListLocalDisks(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest request) {
return listTagsForResourceAsync(request, null);
}
@Override
public java.util.concurrent.Future listTagsForResourceAsync(final ListTagsForResourceRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTagsForResourceRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTagsForResourceResult call() throws Exception {
ListTagsForResourceResult result = null;
try {
result = executeListTagsForResource(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
/**
* Simplified method form for invoking the ListTagsForResource operation.
*
* @see #listTagsForResourceAsync(ListTagsForResourceRequest)
*/
@Override
public java.util.concurrent.Future listTagsForResourceAsync() {
return listTagsForResourceAsync(new ListTagsForResourceRequest());
}
/**
* Simplified method form for invoking the ListTagsForResource operation with an AsyncHandler.
*
* @see #listTagsForResourceAsync(ListTagsForResourceRequest, com.amazonaws.handlers.AsyncHandler)
*/
@Override
public java.util.concurrent.Future listTagsForResourceAsync(
com.amazonaws.handlers.AsyncHandler asyncHandler) {
return listTagsForResourceAsync(new ListTagsForResourceRequest(), asyncHandler);
}
@Override
public java.util.concurrent.Future listTapePoolsAsync(ListTapePoolsRequest request) {
return listTapePoolsAsync(request, null);
}
@Override
public java.util.concurrent.Future listTapePoolsAsync(final ListTapePoolsRequest request,
final com.amazonaws.handlers.AsyncHandler asyncHandler) {
final ListTapePoolsRequest finalRequest = beforeClientExecution(request);
return executorService.submit(new java.util.concurrent.Callable() {
@Override
public ListTapePoolsResult call() throws Exception {
ListTapePoolsResult result = null;
try {
result = executeListTapePools(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}
if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}
@Override
public java.util.concurrent.Future