Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 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;
  
  
  
Asynchronous client for accessing AWSStorageGateway. All asynchronous calls made using this client are non-blocking. Callers could either process the result and handle the exceptions in the worker thread by providing a callback handler when making the call, or use the returned Future object to check the result of the call in the calling thread. AWS Storage Gateway Service

AWS 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 AWS's storage infrastructure. The service enables you to securely upload data to the AWS cloud for cost effective backup and rapid disaster recovery.

Use the following links to get started using the AWS Storage Gateway Service API Reference :

  • AWS Storage Gateway Required Request Headers : Describes the required headers that you must send with every POST request to AWS Storage Gateway.
  • Signing Requests : AWS Storage Gateway requires that you authenticate every request you send; this topic describes how sign such a request.
  • Error Responses : Provides reference information about AWS Storage Gateway errors.
  • Operations in AWS Storage Gateway : Contains detailed descriptions of all AWS Storage Gateway operations, their request parameters, response elements, possible errors, and examples of requests and responses.
  • AWS Storage Gateway Regions and Endpoints : Provides a list of each of the regions and endpoints available for use with AWS Storage Gateway.
  
          implements AWSStorageGatewayAsync {

    
Executor service for executing asynchronous requests.
  
      private ExecutorService executorService;
  
      private static final int DEFAULT_THREAD_POOL_SIZE = 50;

    
Constructs a new asynchronous client to invoke service methods on AWSStorageGateway. 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
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

 
     public AWSStorageGatewayAsyncClient() {
         this(new DefaultAWSCredentialsProviderChain());
     }

    
Constructs a new asynchronous client to invoke service methods on AWSStorageGateway. 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
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration The client configuration options controlling how this client connects to AWSStorageGateway (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
 
     public AWSStorageGatewayAsyncClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AWSStorageGateway using the specified AWS account credentials. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AWSStorageGatewayAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AWSStorageGateway using the specified AWS account credentials and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AWSStorageGatewayAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AWSStorageGateway using the specified AWS account credentials, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AWSStorageGatewayAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AWSStorageGateway using the specified AWS account credentials provider. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AWSStorageGatewayAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AWSStorageGateway using the specified AWS account credentials provider and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AWSStorageGatewayAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AWSStorageGateway using the specified AWS account credentials provider and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
 
     public AWSStorageGatewayAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AWSStorageGateway using the specified AWS account credentials provider, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AWSStorageGatewayAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsProviderclientConfiguration);
         this. = executorService;
     }

    
Returns the executor service used by this async client to execute requests.

Returns:
The executor service used by this async client to execute requests.
 
     public ExecutorService getExecutorService() {
         return ;
     }

    
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 getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to calling this method.
 
     @Override
     public void shutdown() {
         super.shutdown();
         .shutdownNow();
     }
            
    

This operation deletes a snapshot of a volume.

You can take snapshots of your gateway volumes on a scheduled or ad-hoc basis. This API enables you to delete a snapshot schedule for a volume. For more information, see Working with Snapshots . In the DeleteSnapshotSchedule request, you identify the volume by providing its Amazon Resource Name (ARN).

NOTE: To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon Elastic Compute Cloud API Reference.

Parameters:
deleteSnapshotScheduleRequest Container for the necessary parameters to execute the DeleteSnapshotSchedule operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the DeleteSnapshotSchedule service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DeleteSnapshotScheduleResultdeleteSnapshotScheduleAsync(final DeleteSnapshotScheduleRequest deleteSnapshotScheduleRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteSnapshotScheduleResult>() {
             public DeleteSnapshotScheduleResult call() throws Exception {
                 return deleteSnapshotSchedule(deleteSnapshotScheduleRequest);
         }
     });
     }

    

This operation deletes a snapshot of a volume.

You can take snapshots of your gateway volumes on a scheduled or ad-hoc basis. This API enables you to delete a snapshot schedule for a volume. For more information, see Working with Snapshots . In the DeleteSnapshotSchedule request, you identify the volume by providing its Amazon Resource Name (ARN).

NOTE: To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon Elastic Compute Cloud API Reference.

Parameters:
deleteSnapshotScheduleRequest Container for the necessary parameters to execute the DeleteSnapshotSchedule operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteSnapshotSchedule service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteSnapshotScheduleRequest deleteSnapshotScheduleRequest,
             final AsyncHandler<DeleteSnapshotScheduleRequestDeleteSnapshotScheduleResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteSnapshotScheduleResult>() {
             public DeleteSnapshotScheduleResult call() throws Exception {
               DeleteSnapshotScheduleResult result;
                 try {
                 result = deleteSnapshotSchedule(deleteSnapshotScheduleRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteSnapshotScheduleRequestresult);
                  return result;
         }
     });
     }
    
    

This operation returns your gateway's weekly maintenance start time including the day and time of the week. Note that values are in terms of the gateway's time zone.

Parameters:
describeMaintenanceStartTimeRequest Container for the necessary parameters to execute the DescribeMaintenanceStartTime operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the DescribeMaintenanceStartTime service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public DescribeMaintenanceStartTimeResult call() throws Exception {
                 return describeMaintenanceStartTime(describeMaintenanceStartTimeRequest);
         }
     });
     }

    

This operation returns your gateway's weekly maintenance start time including the day and time of the week. Note that values are in terms of the gateway's time zone.

Parameters:
describeMaintenanceStartTimeRequest Container for the necessary parameters to execute the DescribeMaintenanceStartTime operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeMaintenanceStartTime service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeMaintenanceStartTimeRequest describeMaintenanceStartTimeRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public DescribeMaintenanceStartTimeResult call() throws Exception {
               DescribeMaintenanceStartTimeResult result;
                 try {
                 result = describeMaintenanceStartTime(describeMaintenanceStartTimeRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeMaintenanceStartTimeRequestresult);
                  return result;
         }
     });
     }
    
    

This operation creates a volume on a specified gateway. This operation is supported only for the gateway-stored volume architecture.

The size of the volume to create is inferred from the disk size. You can choose to preserve existing data on the disk, create volume from an existing snapshot, or create an empty volume. If you choose to create an empty gateway volume, then any existing data on the disk is erased.

In the request you must specify the gateway and the disk information on which you are creating the volume. In response, AWS Storage Gateway creates the volume and returns volume information such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

Parameters:
createStorediSCSIVolumeRequest Container for the necessary parameters to execute the CreateStorediSCSIVolume operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the CreateStorediSCSIVolume service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
     public Future<CreateStorediSCSIVolumeResultcreateStorediSCSIVolumeAsync(final CreateStorediSCSIVolumeRequest createStorediSCSIVolumeRequest
             throws AmazonServiceExceptionAmazonClientException {
             public CreateStorediSCSIVolumeResult call() throws Exception {
                 return createStorediSCSIVolume(createStorediSCSIVolumeRequest);
         }
     });
     }

    

This operation creates a volume on a specified gateway. This operation is supported only for the gateway-stored volume architecture.

The size of the volume to create is inferred from the disk size. You can choose to preserve existing data on the disk, create volume from an existing snapshot, or create an empty volume. If you choose to create an empty gateway volume, then any existing data on the disk is erased.

In the request you must specify the gateway and the disk information on which you are creating the volume. In response, AWS Storage Gateway creates the volume and returns volume information such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

Parameters:
createStorediSCSIVolumeRequest Container for the necessary parameters to execute the CreateStorediSCSIVolume operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateStorediSCSIVolume service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
             final CreateStorediSCSIVolumeRequest createStorediSCSIVolumeRequest,
             final AsyncHandler<CreateStorediSCSIVolumeRequestCreateStorediSCSIVolumeResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
             public CreateStorediSCSIVolumeResult call() throws Exception {
               CreateStorediSCSIVolumeResult result;
                 try {
                 result = createStorediSCSIVolume(createStorediSCSIVolumeRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(createStorediSCSIVolumeRequestresult);
                  return result;
         }
     });
     }
    
    

This operation initiates a snapshot of a volume.

AWS Storage Gateway provides the ability to back up point-in-time snapshots of your data to Amazon Simple Storage (S3) for durable off-site recovery, as well as import the data to an Amazon Elastic Block Store (EBS) volume in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your gateway volume on a scheduled or ad-hoc basis. This API enables you to take ad-hoc snapshot. For more information, see Working With Snapshots in the AWS Storage Gateway Console .

In the CreateSnapshot request you identify the volume by providing its Amazon Resource Name (ARN). You must also provide description for the snapshot. When AWS Storage Gateway takes the snapshot of specified volume, the snapshot and description appears in the AWS Storage Gateway Console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

NOTE:To list or delete a snapshot, you must use the Amazon EC2 API. For more information, .

Parameters:
createSnapshotRequest Container for the necessary parameters to execute the CreateSnapshot operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the CreateSnapshot service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
     public Future<CreateSnapshotResultcreateSnapshotAsync(final CreateSnapshotRequest createSnapshotRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreateSnapshotResult>() {
             public CreateSnapshotResult call() throws Exception {
                 return createSnapshot(createSnapshotRequest);
         }
     });
     }

    

This operation initiates a snapshot of a volume.

AWS Storage Gateway provides the ability to back up point-in-time snapshots of your data to Amazon Simple Storage (S3) for durable off-site recovery, as well as import the data to an Amazon Elastic Block Store (EBS) volume in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your gateway volume on a scheduled or ad-hoc basis. This API enables you to take ad-hoc snapshot. For more information, see Working With Snapshots in the AWS Storage Gateway Console .

In the CreateSnapshot request you identify the volume by providing its Amazon Resource Name (ARN). You must also provide description for the snapshot. When AWS Storage Gateway takes the snapshot of specified volume, the snapshot and description appears in the AWS Storage Gateway Console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

NOTE:To list or delete a snapshot, you must use the Amazon EC2 API. For more information, .

Parameters:
createSnapshotRequest Container for the necessary parameters to execute the CreateSnapshot operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateSnapshot service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
             final CreateSnapshotRequest createSnapshotRequest,
             final AsyncHandler<CreateSnapshotRequestCreateSnapshotResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreateSnapshotResult>() {
             public CreateSnapshotResult call() throws Exception {
               CreateSnapshotResult result;
                 try {
                 result = createSnapshot(createSnapshotRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(createSnapshotRequestresult);
                  return result;
         }
     });
     }
    
    

This operation configures one or more gateway local disks as working storage for a gateway. This operation is supported only for the gateway-stored volume architecture. This operation is deprecated method in cached-volumes API version (20120630). Use AddUploadBuffer instead.

NOTE: Working storage is also referred to as upload buffer. You can also use the AddUploadBuffer operation to add upload buffer to a stored-volume gateway.

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add working storage, and one or more disk IDs that you want to configure as working storage.

Parameters:
addWorkingStorageRequest Container for the necessary parameters to execute the AddWorkingStorage operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the AddWorkingStorage service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
     public Future<AddWorkingStorageResultaddWorkingStorageAsync(final AddWorkingStorageRequest addWorkingStorageRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<AddWorkingStorageResult>() {
             public AddWorkingStorageResult call() throws Exception {
                 return addWorkingStorage(addWorkingStorageRequest);
         }
     });
     }

    

This operation configures one or more gateway local disks as working storage for a gateway. This operation is supported only for the gateway-stored volume architecture. This operation is deprecated method in cached-volumes API version (20120630). Use AddUploadBuffer instead.

NOTE: Working storage is also referred to as upload buffer. You can also use the AddUploadBuffer operation to add upload buffer to a stored-volume gateway.

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add working storage, and one or more disk IDs that you want to configure as working storage.

Parameters:
addWorkingStorageRequest Container for the necessary parameters to execute the AddWorkingStorage operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the AddWorkingStorage service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
             final AddWorkingStorageRequest addWorkingStorageRequest,
             final AsyncHandler<AddWorkingStorageRequestAddWorkingStorageResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<AddWorkingStorageResult>() {
             public AddWorkingStorageResult call() throws Exception {
               AddWorkingStorageResult result;
                 try {
                 result = addWorkingStorage(addWorkingStorageRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(addWorkingStorageRequestresult);
                  return result;
         }
     });
     }
    
    

Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to a gateway after the retrieval process is initiated. The virtual tape is returned to the VTS.

Parameters:
cancelRetrievalRequest Container for the necessary parameters to execute the CancelRetrieval operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the CancelRetrieval service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
     public Future<CancelRetrievalResultcancelRetrievalAsync(final CancelRetrievalRequest cancelRetrievalRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CancelRetrievalResult>() {
             public CancelRetrievalResult call() throws Exception {
                 return cancelRetrieval(cancelRetrievalRequest);
         }
     });
     }

    

Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to a gateway after the retrieval process is initiated. The virtual tape is returned to the VTS.

Parameters:
cancelRetrievalRequest Container for the necessary parameters to execute the CancelRetrieval operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CancelRetrieval service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
             final CancelRetrievalRequest cancelRetrievalRequest,
             final AsyncHandler<CancelRetrievalRequestCancelRetrievalResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CancelRetrievalResult>() {
             public CancelRetrievalResult call() throws Exception {
               CancelRetrievalResult result;
                 try {
                 result = cancelRetrieval(cancelRetrievalRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(cancelRetrievalRequestresult);
                  return result;
         }
     });
     }
    
    

This operation returns the bandwidth rate limits of a gateway. By default, these limits are not set, which means no bandwidth rate limiting is in effect.

This operation only returns a value for a bandwidth rate limit only if the limit is set. If no limits are set for the gateway, then this operation returns only the gateway ARN in the response body. To specify which gateway to describe, use the Amazon Resource Name (ARN) of the gateway in your request.

Parameters:
describeBandwidthRateLimitRequest Container for the necessary parameters to execute the DescribeBandwidthRateLimit operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the DescribeBandwidthRateLimit service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public DescribeBandwidthRateLimitResult call() throws Exception {
                 return describeBandwidthRateLimit(describeBandwidthRateLimitRequest);
         }
     });
     }

    

This operation returns the bandwidth rate limits of a gateway. By default, these limits are not set, which means no bandwidth rate limiting is in effect.

This operation only returns a value for a bandwidth rate limit only if the limit is set. If no limits are set for the gateway, then this operation returns only the gateway ARN in the response body. To specify which gateway to describe, use the Amazon Resource Name (ARN) of the gateway in your request.

Parameters:
describeBandwidthRateLimitRequest Container for the necessary parameters to execute the DescribeBandwidthRateLimit operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeBandwidthRateLimit service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeBandwidthRateLimitRequest describeBandwidthRateLimitRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public DescribeBandwidthRateLimitResult call() throws Exception {
               DescribeBandwidthRateLimitResult result;
                 try {
                 result = describeBandwidthRateLimit(describeBandwidthRateLimitRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeBandwidthRateLimitRequestresult);
                  return result;
         }
     });
     }
    
    

Returns a description of the specified Amazon Resource Name (ARN) of virtual tapes. If a TapeARN is not specified, returns a description of all virtual tapes associated with the specified gateway.

Parameters:
describeTapesRequest Container for the necessary parameters to execute the DescribeTapes operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the DescribeTapes service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeTapesResultdescribeTapesAsync(final DescribeTapesRequest describeTapesRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeTapesResult>() {
            public DescribeTapesResult call() throws Exception {
                return describeTapes(describeTapesRequest);
        }
    });
    }

    

Returns a description of the specified Amazon Resource Name (ARN) of virtual tapes. If a TapeARN is not specified, returns a description of all virtual tapes associated with the specified gateway.

Parameters:
describeTapesRequest Container for the necessary parameters to execute the DescribeTapes operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeTapes service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final DescribeTapesRequest describeTapesRequest,
            final AsyncHandler<DescribeTapesRequestDescribeTapesResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeTapesResult>() {
            public DescribeTapesResult call() throws Exception {
              DescribeTapesResult result;
                try {
                result = describeTapes(describeTapesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeTapesRequestresult);
                 return result;
        }
    });
    }
    
    

Retrieves the recovery point for the specified virtual tape.

A recovery point is a point in time view of a virtual tape at which all the data on the tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway.

NOTE:The virtual tape can be retrieved to only one gateway. The retrieved tape is read-only. The virtual tape can be retrieved to only a gateway-VTL. There is no charge for retrieving recovery points.

Parameters:
retrieveTapeRecoveryPointRequest Container for the necessary parameters to execute the RetrieveTapeRecoveryPoint operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the RetrieveTapeRecoveryPoint service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public RetrieveTapeRecoveryPointResult call() throws Exception {
                return retrieveTapeRecoveryPoint(retrieveTapeRecoveryPointRequest);
        }
    });
    }

    

Retrieves the recovery point for the specified virtual tape.

A recovery point is a point in time view of a virtual tape at which all the data on the tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway.

NOTE:The virtual tape can be retrieved to only one gateway. The retrieved tape is read-only. The virtual tape can be retrieved to only a gateway-VTL. There is no charge for retrieving recovery points.

Parameters:
retrieveTapeRecoveryPointRequest Container for the necessary parameters to execute the RetrieveTapeRecoveryPoint operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RetrieveTapeRecoveryPoint service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final RetrieveTapeRecoveryPointRequest retrieveTapeRecoveryPointRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public RetrieveTapeRecoveryPointResult call() throws Exception {
              RetrieveTapeRecoveryPointResult result;
                try {
                result = retrieveTapeRecoveryPoint(retrieveTapeRecoveryPointRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(retrieveTapeRecoveryPointRequestresult);
                 return result;
        }
    });
    }
    
    

Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes.

NOTE:Cache storage must be allocated to the gateway before you can create virtual tapes. Use the AddCache operation to add cache storage to a gateway.

Parameters:
createTapesRequest Container for the necessary parameters to execute the CreateTapes operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the CreateTapes service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
    public Future<CreateTapesResultcreateTapesAsync(final CreateTapesRequest createTapesRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateTapesResult>() {
            public CreateTapesResult call() throws Exception {
                return createTapes(createTapesRequest);
        }
    });
    }

    

Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes.

NOTE:Cache storage must be allocated to the gateway before you can create virtual tapes. Use the AddCache operation to add cache storage to a gateway.

Parameters:
createTapesRequest Container for the necessary parameters to execute the CreateTapes operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateTapes service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final CreateTapesRequest createTapesRequest,
            final AsyncHandler<CreateTapesRequestCreateTapesResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateTapesResult>() {
            public CreateTapesResult call() throws Exception {
              CreateTapesResult result;
                try {
                result = createTapes(createTapesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createTapesRequestresult);
                 return result;
        }
    });
    }
    
    

This operation returns information about the upload buffer of a gateway. This operation is supported for both the gateway-stored and gateway-cached volume architectures.

The response includes disk IDs that are configured as upload buffer space, and it includes the amount of upload buffer space allocated and used.

Parameters:
describeUploadBufferRequest Container for the necessary parameters to execute the DescribeUploadBuffer operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the DescribeUploadBuffer service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeUploadBufferResultdescribeUploadBufferAsync(final DescribeUploadBufferRequest describeUploadBufferRequest
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeUploadBufferResult call() throws Exception {
                return describeUploadBuffer(describeUploadBufferRequest);
        }
    });
    }

    

This operation returns information about the upload buffer of a gateway. This operation is supported for both the gateway-stored and gateway-cached volume architectures.

The response includes disk IDs that are configured as upload buffer space, and it includes the amount of upload buffer space allocated and used.

Parameters:
describeUploadBufferRequest Container for the necessary parameters to execute the DescribeUploadBuffer operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeUploadBuffer service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final DescribeUploadBufferRequest describeUploadBufferRequest,
            final AsyncHandler<DescribeUploadBufferRequestDescribeUploadBufferResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeUploadBufferResult call() throws Exception {
              DescribeUploadBufferResult result;
                try {
                result = describeUploadBuffer(describeUploadBufferRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeUploadBufferRequestresult);
                 return result;
        }
    });
    }
    
    

This operation deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair.

Parameters:
deleteChapCredentialsRequest Container for the necessary parameters to execute the DeleteChapCredentials operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the DeleteChapCredentials service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
    public Future<DeleteChapCredentialsResultdeleteChapCredentialsAsync(final DeleteChapCredentialsRequest deleteChapCredentialsRequest
            throws AmazonServiceExceptionAmazonClientException {
            public DeleteChapCredentialsResult call() throws Exception {
                return deleteChapCredentials(deleteChapCredentialsRequest);
        }
    });
    }

    

This operation deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair.

Parameters:
deleteChapCredentialsRequest Container for the necessary parameters to execute the DeleteChapCredentials operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteChapCredentials service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final DeleteChapCredentialsRequest deleteChapCredentialsRequest,
            final AsyncHandler<DeleteChapCredentialsRequestDeleteChapCredentialsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public DeleteChapCredentialsResult call() throws Exception {
              DeleteChapCredentialsResult result;
                try {
                result = deleteChapCredentials(deleteChapCredentialsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteChapCredentialsRequestresult);
                 return result;
        }
    });
    }
    
    

This operation configures one or more gateway local disks as cache for a cached-volume gateway. This operation is supported only for the gateway-cached volume architecture (see Storage Gateway Concepts ).

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add cache, and one or more disk IDs that you want to configure as cache.

Parameters:
addCacheRequest Container for the necessary parameters to execute the AddCache operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the AddCache service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
    public Future<AddCacheResultaddCacheAsync(final AddCacheRequest addCacheRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<AddCacheResult>() {
            public AddCacheResult call() throws Exception {
                return addCache(addCacheRequest);
        }
    });
    }

    

This operation configures one or more gateway local disks as cache for a cached-volume gateway. This operation is supported only for the gateway-cached volume architecture (see Storage Gateway Concepts ).

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add cache, and one or more disk IDs that you want to configure as cache.

Parameters:
addCacheRequest Container for the necessary parameters to execute the AddCache operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the AddCache service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final AddCacheRequest addCacheRequest,
            final AsyncHandler<AddCacheRequestAddCacheResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<AddCacheResult>() {
            public AddCacheResult call() throws Exception {
              AddCacheResult result;
                try {
                result = addCache(addCacheRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(addCacheRequestresult);
                 return result;
        }
    });
    }
    
    

This operation returns metadata about a gateway such as its name, network interfaces, configured time zone, and the state (whether the gateway is running or not). To specify which gateway to describe, use the Amazon Resource Name (ARN) of the gateway in your request.

Parameters:
describeGatewayInformationRequest Container for the necessary parameters to execute the DescribeGatewayInformation operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the DescribeGatewayInformation service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeGatewayInformationResult call() throws Exception {
                return describeGatewayInformation(describeGatewayInformationRequest);
        }
    });
    }

    

This operation returns metadata about a gateway such as its name, network interfaces, configured time zone, and the state (whether the gateway is running or not). To specify which gateway to describe, use the Amazon Resource Name (ARN) of the gateway in your request.

Parameters:
describeGatewayInformationRequest Container for the necessary parameters to execute the DescribeGatewayInformation operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeGatewayInformation service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final DescribeGatewayInformationRequest describeGatewayInformationRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeGatewayInformationResult call() throws Exception {
              DescribeGatewayInformationResult result;
                try {
                result = describeGatewayInformation(describeGatewayInformationRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeGatewayInformationRequestresult);
                 return result;
        }
    });
    }
    
    

This operation returns a list of the gateway's local disks. To specify which gateway to describe, you use the Amazon Resource Name (ARN) of the gateway in the body of the request.

The request returns a list of all disks, specifying which are configured as working storage, cache storage, or stored volume or not configured at all. The response includes a DiskStatus field. This field can have a value of present (the disk is availble to use), missing (the disk is no longer connected to the gateway), or mismatch (the disk node is occupied by a disk that has incorrect metadata or the disk content is corrupted).

Parameters:
listLocalDisksRequest Container for the necessary parameters to execute the ListLocalDisks operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the ListLocalDisks service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
    public Future<ListLocalDisksResultlistLocalDisksAsync(final ListLocalDisksRequest listLocalDisksRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListLocalDisksResult>() {
            public ListLocalDisksResult call() throws Exception {
                return listLocalDisks(listLocalDisksRequest);
        }
    });
    }

    

This operation returns a list of the gateway's local disks. To specify which gateway to describe, you use the Amazon Resource Name (ARN) of the gateway in the body of the request.

The request returns a list of all disks, specifying which are configured as working storage, cache storage, or stored volume or not configured at all. The response includes a DiskStatus field. This field can have a value of present (the disk is availble to use), missing (the disk is no longer connected to the gateway), or mismatch (the disk node is occupied by a disk that has incorrect metadata or the disk content is corrupted).

Parameters:
listLocalDisksRequest Container for the necessary parameters to execute the ListLocalDisks operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListLocalDisks service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final ListLocalDisksRequest listLocalDisksRequest,
            final AsyncHandler<ListLocalDisksRequestListLocalDisksResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListLocalDisksResult>() {
            public ListLocalDisksResult call() throws Exception {
              ListLocalDisksResult result;
                try {
                result = listLocalDisks(listLocalDisksRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listLocalDisksRequestresult);
                 return result;
        }
    });
    }
    
    

This operation returns information about the cache of a gateway. This operation is supported only for the gateway-cached volume architecture.

The response includes disk IDs that are configured as cache, and it includes the amount of cache allocated and used.

Parameters:
describeCacheRequest Container for the necessary parameters to execute the DescribeCache operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the DescribeCache service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeCacheResultdescribeCacheAsync(final DescribeCacheRequest describeCacheRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeCacheResult>() {
            public DescribeCacheResult call() throws Exception {
                return describeCache(describeCacheRequest);
        }
    });
    }

    

This operation returns information about the cache of a gateway. This operation is supported only for the gateway-cached volume architecture.

The response includes disk IDs that are configured as cache, and it includes the amount of cache allocated and used.

Parameters:
describeCacheRequest Container for the necessary parameters to execute the DescribeCache operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeCache service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final DescribeCacheRequest describeCacheRequest,
            final AsyncHandler<DescribeCacheRequestDescribeCacheResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeCacheResult>() {
            public DescribeCacheResult call() throws Exception {
              DescribeCacheResult result;
                try {
                result = describeCache(describeCacheRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeCacheRequestresult);
                 return result;
        }
    });
    }
    
    

Disables a gateway when the gateway is no longer functioning. For example, if your gateway VM is damaged, you can disable the gateway so you can recover virtual tapes.

Use this operation for a gateway-VTL that is not reachable or not functioning.

IMPORTANT:Once a gateway is disabled it cannot be enabled.

Parameters:
disableGatewayRequest Container for the necessary parameters to execute the DisableGateway operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the DisableGateway service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
    public Future<DisableGatewayResultdisableGatewayAsync(final DisableGatewayRequest disableGatewayRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DisableGatewayResult>() {
            public DisableGatewayResult call() throws Exception {
                return disableGateway(disableGatewayRequest);
        }
    });
    }

    

Disables a gateway when the gateway is no longer functioning. For example, if your gateway VM is damaged, you can disable the gateway so you can recover virtual tapes.

Use this operation for a gateway-VTL that is not reachable or not functioning.

IMPORTANT:Once a gateway is disabled it cannot be enabled.

Parameters:
disableGatewayRequest Container for the necessary parameters to execute the DisableGateway operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DisableGateway service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final DisableGatewayRequest disableGatewayRequest,
            final AsyncHandler<DisableGatewayRequestDisableGatewayResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DisableGatewayResult>() {
            public DisableGatewayResult call() throws Exception {
              DisableGatewayResult result;
                try {
                result = disableGateway(disableGatewayRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(disableGatewayRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes the specified virtual tape.

Parameters:
deleteTapeRequest Container for the necessary parameters to execute the DeleteTape operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the DeleteTape service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
    public Future<DeleteTapeResultdeleteTapeAsync(final DeleteTapeRequest deleteTapeRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteTapeResult>() {
            public DeleteTapeResult call() throws Exception {
                return deleteTape(deleteTapeRequest);
        }
    });
    }

    

Deletes the specified virtual tape.

Parameters:
deleteTapeRequest Container for the necessary parameters to execute the DeleteTape operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteTape service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final DeleteTapeRequest deleteTapeRequest,
            final AsyncHandler<DeleteTapeRequestDeleteTapeResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteTapeResult>() {
            public DeleteTapeResult call() throws Exception {
              DeleteTapeResult result;
                try {
                result = deleteTape(deleteTapeRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteTapeRequestresult);
                 return result;
        }
    });
    }
    
    

This operation starts a gateway that you previously shut down (see ShutdownGateway). After the gateway starts, you can then make other API calls, your applications can read from or write to the gateway's storage volumes and you will be able to take snapshot backups.

NOTE:When you make a request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to be ready. You should call DescribeGatewayInformation and check the status before making any additional API calls. For more information, see ActivateGateway.

To specify which gateway to start, use the Amazon Resource Name (ARN) of the gateway in your request.

Parameters:
startGatewayRequest Container for the necessary parameters to execute the StartGateway operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the StartGateway service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
    public Future<StartGatewayResultstartGatewayAsync(final StartGatewayRequest startGatewayRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<StartGatewayResult>() {
            public StartGatewayResult call() throws Exception {
                return startGateway(startGatewayRequest);
        }
    });
    }

    

This operation starts a gateway that you previously shut down (see ShutdownGateway). After the gateway starts, you can then make other API calls, your applications can read from or write to the gateway's storage volumes and you will be able to take snapshot backups.

NOTE:When you make a request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to be ready. You should call DescribeGatewayInformation and check the status before making any additional API calls. For more information, see ActivateGateway.

To specify which gateway to start, use the Amazon Resource Name (ARN) of the gateway in your request.

Parameters:
startGatewayRequest Container for the necessary parameters to execute the StartGateway operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the StartGateway service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final StartGatewayRequest startGatewayRequest,
            final AsyncHandler<StartGatewayRequestStartGatewayResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<StartGatewayResult>() {
            public StartGatewayResult call() throws Exception {
              StartGatewayResult result;
                try {
                result = startGateway(startGatewayRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(startGatewayRequestresult);
                 return result;
        }
    });
    }
    
    

This operation initiates a snapshot of a gateway from a volume recovery point. This operation is supported only for the gateway-cached volume architecture (see ).

A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot. To get a list of volume recovery point for gateway-cached volumes, use ListVolumeRecoveryPoints.

In the CreateSnapshotFromVolumeRecoveryPoint request, you identify the volume by providing its Amazon Resource Name (ARN). You must also provide a description for the snapshot. When AWS Storage Gateway takes a snapshot of the specified volume, the snapshot and its description appear in the AWS Storage Gateway console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

NOTE: To list or delete a snapshot, you must use the Amazon EC2 API. For more information, in Amazon Elastic Compute Cloud API Reference.

Parameters:
createSnapshotFromVolumeRecoveryPointRequest Container for the necessary parameters to execute the CreateSnapshotFromVolumeRecoveryPoint operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the CreateSnapshotFromVolumeRecoveryPoint service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public CreateSnapshotFromVolumeRecoveryPointResult call() throws Exception {
                return createSnapshotFromVolumeRecoveryPoint(createSnapshotFromVolumeRecoveryPointRequest);
        }
    });
    }

    

This operation initiates a snapshot of a gateway from a volume recovery point. This operation is supported only for the gateway-cached volume architecture (see ).

A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot. To get a list of volume recovery point for gateway-cached volumes, use ListVolumeRecoveryPoints.

In the CreateSnapshotFromVolumeRecoveryPoint request, you identify the volume by providing its Amazon Resource Name (ARN). You must also provide a description for the snapshot. When AWS Storage Gateway takes a snapshot of the specified volume, the snapshot and its description appear in the AWS Storage Gateway console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.

NOTE: To list or delete a snapshot, you must use the Amazon EC2 API. For more information, in Amazon Elastic Compute Cloud API Reference.

Parameters:
createSnapshotFromVolumeRecoveryPointRequest Container for the necessary parameters to execute the CreateSnapshotFromVolumeRecoveryPoint operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateSnapshotFromVolumeRecoveryPoint service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final CreateSnapshotFromVolumeRecoveryPointRequest createSnapshotFromVolumeRecoveryPointRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public CreateSnapshotFromVolumeRecoveryPointResult call() throws Exception {
              CreateSnapshotFromVolumeRecoveryPointResult result;
                try {
                result = createSnapshotFromVolumeRecoveryPoint(createSnapshotFromVolumeRecoveryPointRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createSnapshotFromVolumeRecoveryPointRequestresult);
                 return result;
        }
    });
    }
    
    

This operation creates a cached volume on a specified cached gateway. This operation is supported only for the gateway-cached volume architecture.

NOTE:Cache storage must be allocated to the gateway before you can create a cached volume. Use the AddCache operation to add cache storage to a gateway.

In the request, you must specify the gateway, size of the volume in bytes, the iSCSI target name, an IP address on which to expose the target, and a unique client token. In response, AWS Storage Gateway creates the volume and returns information about it such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

Parameters:
createCachediSCSIVolumeRequest Container for the necessary parameters to execute the CreateCachediSCSIVolume operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the CreateCachediSCSIVolume service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public CreateCachediSCSIVolumeResult call() throws Exception {
                return createCachediSCSIVolume(createCachediSCSIVolumeRequest);
        }
    });
    }

    

This operation creates a cached volume on a specified cached gateway. This operation is supported only for the gateway-cached volume architecture.

NOTE:Cache storage must be allocated to the gateway before you can create a cached volume. Use the AddCache operation to add cache storage to a gateway.

In the request, you must specify the gateway, size of the volume in bytes, the iSCSI target name, an IP address on which to expose the target, and a unique client token. In response, AWS Storage Gateway creates the volume and returns information about it such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

Parameters:
createCachediSCSIVolumeRequest Container for the necessary parameters to execute the CreateCachediSCSIVolume operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateCachediSCSIVolume service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final CreateCachediSCSIVolumeRequest createCachediSCSIVolumeRequest,
            final AsyncHandler<CreateCachediSCSIVolumeRequestCreateCachediSCSIVolumeResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public CreateCachediSCSIVolumeResult call() throws Exception {
              CreateCachediSCSIVolumeResult result;
                try {
                result = createCachediSCSIVolume(createCachediSCSIVolumeRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createCachediSCSIVolumeRequestresult);
                 return result;
        }
    });
    }
    
    

This operation shuts down a gateway. To specify which gateway to shut down, use the Amazon Resource Name (ARN) of the gateway in the body of your request.

The operation shuts down the gateway service component running in the storage gateway's virtual machine (VM) and not the VM.

NOTE:If you want to shut down the VM, it is recommended that you first shut down the gateway component in the VM to avoid unpredictable conditions.

After the gateway is shutdown, you cannot call any other API except StartGateway, DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway. Your applications cannot read from or write to the gateway's storage volumes, and there are no snapshots taken.

NOTE:When you make a shutdown request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to shut down. You can call the DescribeGatewayInformation API to check the status. For more information, see ActivateGateway.

If do not intend to use the gateway again, you must delete the gateway (using DeleteGateway) to no longer pay software charges associated with the gateway.

Parameters:
shutdownGatewayRequest Container for the necessary parameters to execute the ShutdownGateway operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the ShutdownGateway service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
    public Future<ShutdownGatewayResultshutdownGatewayAsync(final ShutdownGatewayRequest shutdownGatewayRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ShutdownGatewayResult>() {
            public ShutdownGatewayResult call() throws Exception {
                return shutdownGateway(shutdownGatewayRequest);
        }
    });
    }

    

This operation shuts down a gateway. To specify which gateway to shut down, use the Amazon Resource Name (ARN) of the gateway in the body of your request.

The operation shuts down the gateway service component running in the storage gateway's virtual machine (VM) and not the VM.

NOTE:If you want to shut down the VM, it is recommended that you first shut down the gateway component in the VM to avoid unpredictable conditions.

After the gateway is shutdown, you cannot call any other API except StartGateway, DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway. Your applications cannot read from or write to the gateway's storage volumes, and there are no snapshots taken.

NOTE:When you make a shutdown request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to shut down. You can call the DescribeGatewayInformation API to check the status. For more information, see ActivateGateway.

If do not intend to use the gateway again, you must delete the gateway (using DeleteGateway) to no longer pay software charges associated with the gateway.

Parameters:
shutdownGatewayRequest Container for the necessary parameters to execute the ShutdownGateway operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ShutdownGateway service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final ShutdownGatewayRequest shutdownGatewayRequest,
            final AsyncHandler<ShutdownGatewayRequestShutdownGatewayResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ShutdownGatewayResult>() {
            public ShutdownGatewayResult call() throws Exception {
              ShutdownGatewayResult result;
                try {
                result = shutdownGateway(shutdownGatewayRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(shutdownGatewayRequestresult);
                 return result;
        }
    });
    }
    
    

Returns a list of virtual tape recovery points that are available for the specified gateway-VTL.

A recovery point is a point in time view of a virtual tape at which all the data on the virtual tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway.

Parameters:
describeTapeRecoveryPointsRequest Container for the necessary parameters to execute the DescribeTapeRecoveryPoints operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the DescribeTapeRecoveryPoints service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeTapeRecoveryPointsResult call() throws Exception {
                return describeTapeRecoveryPoints(describeTapeRecoveryPointsRequest);
        }
    });
    }

    

Returns a list of virtual tape recovery points that are available for the specified gateway-VTL.

A recovery point is a point in time view of a virtual tape at which all the data on the virtual tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway.

Parameters:
describeTapeRecoveryPointsRequest Container for the necessary parameters to execute the DescribeTapeRecoveryPoints operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeTapeRecoveryPoints service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final DescribeTapeRecoveryPointsRequest describeTapeRecoveryPointsRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeTapeRecoveryPointsResult call() throws Exception {
              DescribeTapeRecoveryPointsResult result;
                try {
                result = describeTapeRecoveryPoints(describeTapeRecoveryPointsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeTapeRecoveryPointsRequestresult);
                 return result;
        }
    });
    }
    
    

This operation lists gateways owned by an AWS account in a region specified in the request. The returned list is ordered by gateway Amazon Resource Name (ARN).

By default, the operation returns a maximum of 100 gateways. This operation supports pagination that allows you to optionally reduce the number of gateways returned in a response.

If you have more gateways than are returned in a response-that is, the response returns only a truncated list of your gateways-the response contains a marker that you can specify in your next request to fetch the next page of gateways.

Parameters:
listGatewaysRequest Container for the necessary parameters to execute the ListGateways operation on AWSStorageGateway.
Returns:
A Java Future object containing the response from the ListGateways service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
    public Future<ListGatewaysResultlistGatewaysAsync(final ListGatewaysRequest listGatewaysRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListGatewaysResult>() {
            public ListGatewaysResult call() throws Exception {
                return listGateways(listGatewaysRequest);
        }
    });
    }

    

This operation lists gateways owned by an AWS account in a region specified in the request. The returned list is ordered by gateway Amazon Resource Name (ARN).

By default, the operation returns a maximum of 100 gateways. This operation supports pagination that allows you to optionally reduce the number of gateways returned in a response.

If you have more gateways than are returned in a response-that is, the response returns only a truncated list of your gateways-the response contains a marker that you can specify in your next request to fetch the next page of gateways.

Parameters:
listGatewaysRequest Container for the necessary parameters to execute the ListGateways operation on AWSStorageGateway.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListGateways service method, as returned by AWSStorageGateway.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSStorageGateway indicating either a problem with the data in the request, or a server side issue.
            final ListGatewaysRequest listGatewaysRequest,