All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.storagegateway.AWSStorageGatewayAsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Storage Gateway module holds the client classes that are used for communicating with AWS Storage Gateway Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 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 listTapesAsync(ListTapesRequest request) { return listTapesAsync(request, null); } @Override public java.util.concurrent.Future listTapesAsync(final ListTapesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListTapesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListTapesResult call() throws Exception { ListTapesResult result = null; try { result = executeListTapes(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 listVolumeInitiatorsAsync(ListVolumeInitiatorsRequest request) { return listVolumeInitiatorsAsync(request, null); } @Override public java.util.concurrent.Future listVolumeInitiatorsAsync(final ListVolumeInitiatorsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListVolumeInitiatorsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListVolumeInitiatorsResult call() throws Exception { ListVolumeInitiatorsResult result = null; try { result = executeListVolumeInitiators(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 listVolumeRecoveryPointsAsync(ListVolumeRecoveryPointsRequest request) { return listVolumeRecoveryPointsAsync(request, null); } @Override public java.util.concurrent.Future listVolumeRecoveryPointsAsync(final ListVolumeRecoveryPointsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListVolumeRecoveryPointsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListVolumeRecoveryPointsResult call() throws Exception { ListVolumeRecoveryPointsResult result = null; try { result = executeListVolumeRecoveryPoints(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 listVolumesAsync(ListVolumesRequest request) { return listVolumesAsync(request, null); } @Override public java.util.concurrent.Future listVolumesAsync(final ListVolumesRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ListVolumesRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ListVolumesResult call() throws Exception { ListVolumesResult result = null; try { result = executeListVolumes(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 notifyWhenUploadedAsync(NotifyWhenUploadedRequest request) { return notifyWhenUploadedAsync(request, null); } @Override public java.util.concurrent.Future notifyWhenUploadedAsync(final NotifyWhenUploadedRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final NotifyWhenUploadedRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public NotifyWhenUploadedResult call() throws Exception { NotifyWhenUploadedResult result = null; try { result = executeNotifyWhenUploaded(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 refreshCacheAsync(RefreshCacheRequest request) { return refreshCacheAsync(request, null); } @Override public java.util.concurrent.Future refreshCacheAsync(final RefreshCacheRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RefreshCacheRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RefreshCacheResult call() throws Exception { RefreshCacheResult result = null; try { result = executeRefreshCache(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 removeTagsFromResourceAsync(RemoveTagsFromResourceRequest request) { return removeTagsFromResourceAsync(request, null); } @Override public java.util.concurrent.Future removeTagsFromResourceAsync(final RemoveTagsFromResourceRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RemoveTagsFromResourceRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RemoveTagsFromResourceResult call() throws Exception { RemoveTagsFromResourceResult result = null; try { result = executeRemoveTagsFromResource(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 RemoveTagsFromResource operation. * * @see #removeTagsFromResourceAsync(RemoveTagsFromResourceRequest) */ @Override public java.util.concurrent.Future removeTagsFromResourceAsync() { return removeTagsFromResourceAsync(new RemoveTagsFromResourceRequest()); } /** * Simplified method form for invoking the RemoveTagsFromResource operation with an AsyncHandler. * * @see #removeTagsFromResourceAsync(RemoveTagsFromResourceRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future removeTagsFromResourceAsync( com.amazonaws.handlers.AsyncHandler asyncHandler) { return removeTagsFromResourceAsync(new RemoveTagsFromResourceRequest(), asyncHandler); } @Override public java.util.concurrent.Future resetCacheAsync(ResetCacheRequest request) { return resetCacheAsync(request, null); } @Override public java.util.concurrent.Future resetCacheAsync(final ResetCacheRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ResetCacheRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ResetCacheResult call() throws Exception { ResetCacheResult result = null; try { result = executeResetCache(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 retrieveTapeArchiveAsync(RetrieveTapeArchiveRequest request) { return retrieveTapeArchiveAsync(request, null); } @Override public java.util.concurrent.Future retrieveTapeArchiveAsync(final RetrieveTapeArchiveRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RetrieveTapeArchiveRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RetrieveTapeArchiveResult call() throws Exception { RetrieveTapeArchiveResult result = null; try { result = executeRetrieveTapeArchive(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 retrieveTapeRecoveryPointAsync(RetrieveTapeRecoveryPointRequest request) { return retrieveTapeRecoveryPointAsync(request, null); } @Override public java.util.concurrent.Future retrieveTapeRecoveryPointAsync(final RetrieveTapeRecoveryPointRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final RetrieveTapeRecoveryPointRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public RetrieveTapeRecoveryPointResult call() throws Exception { RetrieveTapeRecoveryPointResult result = null; try { result = executeRetrieveTapeRecoveryPoint(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 setLocalConsolePasswordAsync(SetLocalConsolePasswordRequest request) { return setLocalConsolePasswordAsync(request, null); } @Override public java.util.concurrent.Future setLocalConsolePasswordAsync(final SetLocalConsolePasswordRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SetLocalConsolePasswordRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SetLocalConsolePasswordResult call() throws Exception { SetLocalConsolePasswordResult result = null; try { result = executeSetLocalConsolePassword(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 setSMBGuestPasswordAsync(SetSMBGuestPasswordRequest request) { return setSMBGuestPasswordAsync(request, null); } @Override public java.util.concurrent.Future setSMBGuestPasswordAsync(final SetSMBGuestPasswordRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final SetSMBGuestPasswordRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public SetSMBGuestPasswordResult call() throws Exception { SetSMBGuestPasswordResult result = null; try { result = executeSetSMBGuestPassword(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 shutdownGatewayAsync(ShutdownGatewayRequest request) { return shutdownGatewayAsync(request, null); } @Override public java.util.concurrent.Future shutdownGatewayAsync(final ShutdownGatewayRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final ShutdownGatewayRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public ShutdownGatewayResult call() throws Exception { ShutdownGatewayResult result = null; try { result = executeShutdownGateway(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 startAvailabilityMonitorTestAsync(StartAvailabilityMonitorTestRequest request) { return startAvailabilityMonitorTestAsync(request, null); } @Override public java.util.concurrent.Future startAvailabilityMonitorTestAsync(final StartAvailabilityMonitorTestRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartAvailabilityMonitorTestRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartAvailabilityMonitorTestResult call() throws Exception { StartAvailabilityMonitorTestResult result = null; try { result = executeStartAvailabilityMonitorTest(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 startGatewayAsync(StartGatewayRequest request) { return startGatewayAsync(request, null); } @Override public java.util.concurrent.Future startGatewayAsync(final StartGatewayRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final StartGatewayRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public StartGatewayResult call() throws Exception { StartGatewayResult result = null; try { result = executeStartGateway(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 updateAutomaticTapeCreationPolicyAsync( UpdateAutomaticTapeCreationPolicyRequest request) { return updateAutomaticTapeCreationPolicyAsync(request, null); } @Override public java.util.concurrent.Future updateAutomaticTapeCreationPolicyAsync( final UpdateAutomaticTapeCreationPolicyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateAutomaticTapeCreationPolicyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateAutomaticTapeCreationPolicyResult call() throws Exception { UpdateAutomaticTapeCreationPolicyResult result = null; try { result = executeUpdateAutomaticTapeCreationPolicy(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 updateBandwidthRateLimitAsync(UpdateBandwidthRateLimitRequest request) { return updateBandwidthRateLimitAsync(request, null); } @Override public java.util.concurrent.Future updateBandwidthRateLimitAsync(final UpdateBandwidthRateLimitRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateBandwidthRateLimitRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateBandwidthRateLimitResult call() throws Exception { UpdateBandwidthRateLimitResult result = null; try { result = executeUpdateBandwidthRateLimit(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 updateBandwidthRateLimitScheduleAsync( UpdateBandwidthRateLimitScheduleRequest request) { return updateBandwidthRateLimitScheduleAsync(request, null); } @Override public java.util.concurrent.Future updateBandwidthRateLimitScheduleAsync( final UpdateBandwidthRateLimitScheduleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateBandwidthRateLimitScheduleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateBandwidthRateLimitScheduleResult call() throws Exception { UpdateBandwidthRateLimitScheduleResult result = null; try { result = executeUpdateBandwidthRateLimitSchedule(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 updateChapCredentialsAsync(UpdateChapCredentialsRequest request) { return updateChapCredentialsAsync(request, null); } @Override public java.util.concurrent.Future updateChapCredentialsAsync(final UpdateChapCredentialsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateChapCredentialsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateChapCredentialsResult call() throws Exception { UpdateChapCredentialsResult result = null; try { result = executeUpdateChapCredentials(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 updateFileSystemAssociationAsync(UpdateFileSystemAssociationRequest request) { return updateFileSystemAssociationAsync(request, null); } @Override public java.util.concurrent.Future updateFileSystemAssociationAsync(final UpdateFileSystemAssociationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateFileSystemAssociationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateFileSystemAssociationResult call() throws Exception { UpdateFileSystemAssociationResult result = null; try { result = executeUpdateFileSystemAssociation(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 updateGatewayInformationAsync(UpdateGatewayInformationRequest request) { return updateGatewayInformationAsync(request, null); } @Override public java.util.concurrent.Future updateGatewayInformationAsync(final UpdateGatewayInformationRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateGatewayInformationRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateGatewayInformationResult call() throws Exception { UpdateGatewayInformationResult result = null; try { result = executeUpdateGatewayInformation(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 updateGatewaySoftwareNowAsync(UpdateGatewaySoftwareNowRequest request) { return updateGatewaySoftwareNowAsync(request, null); } @Override public java.util.concurrent.Future updateGatewaySoftwareNowAsync(final UpdateGatewaySoftwareNowRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateGatewaySoftwareNowRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateGatewaySoftwareNowResult call() throws Exception { UpdateGatewaySoftwareNowResult result = null; try { result = executeUpdateGatewaySoftwareNow(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 updateMaintenanceStartTimeAsync(UpdateMaintenanceStartTimeRequest request) { return updateMaintenanceStartTimeAsync(request, null); } @Override public java.util.concurrent.Future updateMaintenanceStartTimeAsync(final UpdateMaintenanceStartTimeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateMaintenanceStartTimeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateMaintenanceStartTimeResult call() throws Exception { UpdateMaintenanceStartTimeResult result = null; try { result = executeUpdateMaintenanceStartTime(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 updateNFSFileShareAsync(UpdateNFSFileShareRequest request) { return updateNFSFileShareAsync(request, null); } @Override public java.util.concurrent.Future updateNFSFileShareAsync(final UpdateNFSFileShareRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateNFSFileShareRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateNFSFileShareResult call() throws Exception { UpdateNFSFileShareResult result = null; try { result = executeUpdateNFSFileShare(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 updateSMBFileShareAsync(UpdateSMBFileShareRequest request) { return updateSMBFileShareAsync(request, null); } @Override public java.util.concurrent.Future updateSMBFileShareAsync(final UpdateSMBFileShareRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSMBFileShareRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSMBFileShareResult call() throws Exception { UpdateSMBFileShareResult result = null; try { result = executeUpdateSMBFileShare(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 updateSMBFileShareVisibilityAsync(UpdateSMBFileShareVisibilityRequest request) { return updateSMBFileShareVisibilityAsync(request, null); } @Override public java.util.concurrent.Future updateSMBFileShareVisibilityAsync(final UpdateSMBFileShareVisibilityRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSMBFileShareVisibilityRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSMBFileShareVisibilityResult call() throws Exception { UpdateSMBFileShareVisibilityResult result = null; try { result = executeUpdateSMBFileShareVisibility(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 updateSMBLocalGroupsAsync(UpdateSMBLocalGroupsRequest request) { return updateSMBLocalGroupsAsync(request, null); } @Override public java.util.concurrent.Future updateSMBLocalGroupsAsync(final UpdateSMBLocalGroupsRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSMBLocalGroupsRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSMBLocalGroupsResult call() throws Exception { UpdateSMBLocalGroupsResult result = null; try { result = executeUpdateSMBLocalGroups(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 updateSMBSecurityStrategyAsync(UpdateSMBSecurityStrategyRequest request) { return updateSMBSecurityStrategyAsync(request, null); } @Override public java.util.concurrent.Future updateSMBSecurityStrategyAsync(final UpdateSMBSecurityStrategyRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSMBSecurityStrategyRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSMBSecurityStrategyResult call() throws Exception { UpdateSMBSecurityStrategyResult result = null; try { result = executeUpdateSMBSecurityStrategy(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 updateSnapshotScheduleAsync(UpdateSnapshotScheduleRequest request) { return updateSnapshotScheduleAsync(request, null); } @Override public java.util.concurrent.Future updateSnapshotScheduleAsync(final UpdateSnapshotScheduleRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateSnapshotScheduleRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateSnapshotScheduleResult call() throws Exception { UpdateSnapshotScheduleResult result = null; try { result = executeUpdateSnapshotSchedule(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 updateVTLDeviceTypeAsync(UpdateVTLDeviceTypeRequest request) { return updateVTLDeviceTypeAsync(request, null); } @Override public java.util.concurrent.Future updateVTLDeviceTypeAsync(final UpdateVTLDeviceTypeRequest request, final com.amazonaws.handlers.AsyncHandler asyncHandler) { final UpdateVTLDeviceTypeRequest finalRequest = beforeClientExecution(request); return executorService.submit(new java.util.concurrent.Callable() { @Override public UpdateVTLDeviceTypeResult call() throws Exception { UpdateVTLDeviceTypeResult result = null; try { result = executeUpdateVTLDeviceType(finalRequest); } catch (Exception ex) { if (asyncHandler != null) { asyncHandler.onError(ex); } throw ex; } if (asyncHandler != null) { asyncHandler.onSuccess(finalRequest, result); } return result; } }); } /** * Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending * asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should * call {@code getExecutorService().shutdown()} followed by {@code getExecutorService().awaitTermination()} prior to * calling this method. */ @Override public void shutdown() { super.shutdown(); executorService.shutdownNow(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy