|
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(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.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 |