|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.glacier.transfer.ArchiveTransferManager
public class ArchiveTransferManager
Utilities for uploading and downloading data to and from AWS Glacier.
Constructor Summary | |
---|---|
ArchiveTransferManager(AmazonGlacierClient glacier,
AmazonSQSClient sqs,
AmazonSNSClient sns)
Constructs a new ArchiveTransferManager, using the specified Amazon Glacier client, and the specified Amazon SQS and Amazon SNS clients for polling download job status. |
|
ArchiveTransferManager(AmazonGlacierClient glacier,
AWSCredentials credentials)
Constructs a new ArchiveTransferManager, using the specified Amazon Glacier client and AWS credentials. |
|
ArchiveTransferManager(AmazonGlacierClient glacier,
AWSCredentialsProvider credentialsProvider)
Constructs a new ArchiveTransferManager, using the specified Amazon Glacier client and AWS credentials provider. |
|
ArchiveTransferManager(AmazonGlacierClient glacier,
AWSCredentialsProvider credentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new ArchiveTransferManager, using the specified Amazon Glacier client, AWS credentials provider and client configuration. |
|
ArchiveTransferManager(AWSCredentials credentials)
Constructs a new ArchiveTransferManager, using the specified AWS credentials to authenticate requests. |
|
ArchiveTransferManager(AWSCredentialsProvider credentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new ArchiveTransferManager, using the specified AWS credentials provider and client configuration. |
Method Summary | |
---|---|
void |
download(String vaultName,
String archiveId,
File file)
Downloads an archive from Amazon Glacier in the specified vault for the current user's account, and saves it to the specified file. |
void |
download(String accountId,
String vaultName,
String archiveId,
File file)
Downloads an archive from Amazon Glacier in the specified vault in the specified user's account, and saves it to the specified file. |
UploadResult |
upload(String vaultName,
String archiveDescription,
File file)
Uploads the specified file to Amazon Glacier for archival storage in the specified vault for the user's current account. |
UploadResult |
upload(String accountId,
String vaultName,
String archiveDescription,
File file)
Uploads the specified file to Amazon Glacier for archival storage in the specified vault in the specified user's account. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArchiveTransferManager(AWSCredentials credentials)
credentials
- The AWS credentials used to authenticate requests.public ArchiveTransferManager(AWSCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration)
credentialsProvider
- The AWS credentials provider used to authenticate requests.clientConfiguration
- Client specific options, such as proxy settings, retries, and timeouts.public ArchiveTransferManager(AmazonGlacierClient glacier, AWSCredentialsProvider credentialsProvider)
glacier
- The client for working with Amazon Glacier.credentialsProvider
- The AWS credentials provider used to authenticate requests.public ArchiveTransferManager(AmazonGlacierClient glacier, AWSCredentials credentials)
glacier
- The client for working with Amazon Glacier.credentials
- The AWS credentials used to authenticate requests.public ArchiveTransferManager(AmazonGlacierClient glacier, AWSCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration)
glacier
- The client for working with Amazon Glacier.credentialsProvider
- The AWS credentials provider used to authenticate requests.clientConfiguration
- Client specific options, such as proxy settings, retries, and
timeouts.public ArchiveTransferManager(AmazonGlacierClient glacier, AmazonSQSClient sqs, AmazonSNSClient sns)
This constructor form can be used to work with ArchiveTransferManager in any AWS region where Amazon Glacier is supported. Just make sure to set the correct endpoint on each individual client object so that they all operate in the same region.
glacier
- The client for working with Amazon Glacier.sqs
- The client for working with Amazon SQS when polling archive
retrieval job status.sns
- The client for working with Amazon SNS when polling archive
retrieval job status.Method Detail |
---|
public UploadResult upload(String vaultName, String archiveDescription, File file) throws AmazonServiceException, AmazonClientException, FileNotFoundException
vaultName
- The name of the vault to upload to.archiveDescription
- The description of the new archive being uploaded.file
- The file to upload to Amazon Glacier.
AmazonServiceException
- If any problems were encountered while communicating with
AWS.
AmazonClientException
- If any problems were encountered inside the AWS SDK for Java
client code in making requests or processing responses from
AWS.
FileNotFoundException
- If the specified file to upload doesn't exist.public UploadResult upload(String accountId, String vaultName, String archiveDescription, File file) throws AmazonServiceException, AmazonClientException, FileNotFoundException
accountId
- The ID for the account which owns the Glacier vault being
uploaded to. To use the same account the developer is using to
make requests to AWS, the value "-"
can be used
instead of the full account ID.vaultName
- The name of the vault to upload to.archiveDescription
- The description of the new archive being uploaded.file
- The file to upload to Amazon Glacier.
AmazonServiceException
- If any problems were encountered while communicating with
AWS.
AmazonClientException
- If any problems were encountered inside the AWS SDK for Java
client code in making requests or processing responses from
AWS.
FileNotFoundException
- If the specified file to upload doesn't exist.public void download(String vaultName, String archiveId, File file) throws AmazonServiceException, AmazonClientException
vaultName
- The name of the vault to download the archive from.archiveId
- The unique ID of the archive to download.file
- The file save the archive to.
AmazonServiceException
- If any problems were encountered while communicating with
AWS.
AmazonClientException
- If any problems were encountered inside the AWS SDK for Java
client code in making requests or processing responses from
AWS.public void download(String accountId, String vaultName, String archiveId, File file) throws AmazonServiceException, AmazonClientException
accountId
- The ID for the account which owns the Glacier vault where the
archive is being downloaded from. To use the same account the
developer is using to make requests to AWS, the value
"-"
can be used instead of the full account ID.vaultName
- The name of the vault to download the archive from.archiveId
- The unique ID of the archive to download.file
- The file save the archive to.
AmazonServiceException
- If any problems were encountered while communicating with
AWS.
AmazonClientException
- If any problems were encountered inside the AWS SDK for Java
client code in making requests or processing responses from
AWS.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |