com.amazonaws.services.storagegateway
Class StorageGatewayUtils

java.lang.Object
  extended by com.amazonaws.services.storagegateway.StorageGatewayUtils

public class StorageGatewayUtils
extends Object

Utilities for working with the AWS Storage Gateway service, such as requesting a running AWS Storage Gateway instances's activation key for registering a Storage Gateway server.


Constructor Summary
StorageGatewayUtils()
           
 
Method Summary
static String getActivationKey(String gatewayAddress)
          Sends a request to the AWS Storage Gateway server running at the specified address, and returns the activation key for that server.
static String getActivationKey(String gatewayAddress, Region activationRegion)
          Sends a request to the AWS Storage Gateway server running at the specified address, and returns the activation key for that server.
static String getActivationKey(String gatewayAddress, String activationRegionName)
          Sends a request to the AWS Storage Gateway server running at the specified address and activation region, and returns the activation key for that server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageGatewayUtils

public StorageGatewayUtils()
Method Detail

getActivationKey

public static String getActivationKey(String gatewayAddress)
                               throws AmazonClientException
Sends a request to the AWS Storage Gateway server running at the specified address, and returns the activation key for that server.

Parameters:
gatewayAddress - The DNS name or IP address of a running AWS Storage Gateway
Returns:
The activation key required for some API calls to AWS Storage Gateway.
Throws:
AmazonClientException - If any problems are encountered while trying to contact the remote AWS Storage Gateway server.

getActivationKey

public static String getActivationKey(String gatewayAddress,
                                      Region activationRegion)
                               throws AmazonClientException
Sends a request to the AWS Storage Gateway server running at the specified address, and returns the activation key for that server.

Parameters:
gatewayAddress - The DNS name or IP address of a running AWS Storage Gateway
activationRegionName - The region in which the gateway will be activated.
Returns:
The activation key required for some API calls to AWS Storage Gateway.
Throws:
AmazonClientException - If any problems are encountered while trying to contact the remote AWS Storage Gateway server.

getActivationKey

public static String getActivationKey(String gatewayAddress,
                                      String activationRegionName)
                               throws AmazonClientException
Sends a request to the AWS Storage Gateway server running at the specified address and activation region, and returns the activation key for that server.

Parameters:
gatewayAddress - The DNS name or IP address of a running AWS Storage Gateway
activationRegionName - The name of the region in which the gateway will be activated.
Returns:
The activation key required for some API calls to AWS Storage Gateway.
Throws:
AmazonClientException - If any problems are encountered while trying to contact the remote AWS Storage Gateway server.


Copyright © 2016. All rights reserved.