public class ArchiveTransferManager extends Object
Constructor and Description |
---|
ArchiveTransferManager(AmazonGlacierClient glacier,
AmazonSQSClient sqs,
AmazonSNSClient sns)
Deprecated.
|
ArchiveTransferManager(AmazonGlacierClient glacier,
AWSCredentials credentials)
Deprecated.
|
ArchiveTransferManager(AmazonGlacierClient glacier,
AWSCredentialsProvider credentialsProvider)
Deprecated.
|
ArchiveTransferManager(AmazonGlacierClient glacier,
AWSCredentialsProvider credentialsProvider,
ClientConfiguration clientConfiguration)
Deprecated.
|
ArchiveTransferManager(AWSCredentials credentials)
Deprecated.
|
ArchiveTransferManager(AWSCredentialsProvider credentialsProvider,
ClientConfiguration clientConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
download(String accountId,
String vaultName,
String archiveId,
File file,
ProgressListener progressListener)
Downloads an archive from Amazon Glacier in the specified vault in the
specified user's account, and saves it to the specified file.
|
void |
downloadJobOutput(String accountId,
String vaultName,
String jobId,
File file)
Downloads the job output for the specified job (which must be ready to
download already, and must be a complete archive retrieval, not a partial
range retrieval), into the specified file.
|
void |
downloadJobOutput(String accountId,
String vaultName,
String jobId,
File file,
ProgressListener progressListener)
Downloads the job output for the specified job (which must be ready to
download already, and must be a complete archive retrieval, not a partial
range retrieval), into 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.
|
UploadResult |
upload(String accountId,
String vaultName,
String archiveDescription,
File file,
ProgressListener progressListener)
Uploads the specified file to Amazon Glacier for archival storage in the
specified vault in the specified user's account.
|
public ArchiveTransferManager(AWSCredentials credentials)
ArchiveTransferManagerBuilder
.credentials
- The AWS credentials used to authenticate requests.public ArchiveTransferManager(AWSCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration)
ArchiveTransferManagerBuilder
.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)
ArchiveTransferManagerBuilder
.glacier
- The client for working with Amazon Glacier.credentialsProvider
- The AWS credentials provider used to authenticate requests.public ArchiveTransferManager(AmazonGlacierClient glacier, AWSCredentials credentials)
ArchiveTransferManagerBuilder
.glacier
- The client for working with Amazon Glacier.credentials
- The AWS credentials used to authenticate requests.public ArchiveTransferManager(AmazonGlacierClient glacier, AWSCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration)
ArchiveTransferManagerBuilder
.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)
ArchiveTransferManagerBuilder
.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.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 UploadResult upload(String accountId, String vaultName, String archiveDescription, File file, ProgressListener progressListener) throws AmazonServiceException, AmazonClientException
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.progressListener
- The optional progress listener for receiving updates about
the upload status.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 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 in which to save the archive.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 in which to save the archive.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, ProgressListener progressListener) 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 in which to save the archive.progressListener
- The optional progress listener for receiving updates about the
download status.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 downloadJobOutput(String accountId, String vaultName, String jobId, File file)
accountId
- The account ID containing the job output to download (or null
if the current account should be used).vaultName
- The name of the vault from where the job was initiated.jobId
- The ID of the job whose output is to be downloaded. This job
must be a complete archive retrieval, not a range retrieval.file
- The file to download the job output into.public void downloadJobOutput(String accountId, String vaultName, String jobId, File file, ProgressListener progressListener)
accountId
- The account ID containing the job output to download (or null
if the current account shoudl be used).vaultName
- The name of the vault from where the job was initiated.jobId
- The ID of the job whose output is to be downloaded. This job
must be a complete archive retrieval, not a range retrieval.file
- The file to download the job output into.progressListener
- The optional progress listener for receiving updates about the
download status.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.