public class StorageGatewayUtils extends Object
Constructor and Description |
---|
StorageGatewayUtils() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static String getActivationKey(String gatewayAddress) throws AmazonClientException
gatewayAddress
- The DNS name or IP address of a running AWS Storage GatewayAmazonClientException
- If any problems are encountered while trying to contact the
remote AWS Storage Gateway server.public static String getActivationKey(String gatewayAddress, Region activationRegion) throws AmazonClientException
gatewayAddress
- The DNS name or IP address of a running AWS Storage GatewayactivationRegionName
- The region in which the gateway will be activated.AmazonClientException
- If any problems are encountered while trying to contact the
remote AWS Storage Gateway server.public static String getActivationKey(String gatewayAddress, String activationRegionName) throws AmazonClientException
gatewayAddress
- The DNS name or IP address of a running AWS Storage GatewayactivationRegionName
- The name of the region in which the gateway will be activated.AmazonClientException
- If any problems are encountered while trying to contact the
remote AWS Storage Gateway server.