public class AwsGlacierArchiver extends java.lang.Object implements ArchiverInterface
| Constructor and Description |
|---|
AwsGlacierArchiver(java.lang.String region,
java.lang.String vaultName,
java.lang.String logDirectory)
Constructs an archiver with all the information that it needs.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Uploads file to Amazon AWS Glacier for long term cheap storage.
|
java.lang.String |
upload(java.lang.String fileName,
java.lang.String description)
Called when file is to be uploaded to the archive.
|
public AwsGlacierArchiver(java.lang.String region,
java.lang.String vaultName,
java.lang.String logDirectory)
region - Region of the AWS Glacier vaultvaultName - Name of the AWS Glacier vaultlogDirectory - Directory where log of uploads is written for the vault.public java.lang.String upload(java.lang.String fileName,
java.lang.String description)
ArchiverInterfaceupload in interface ArchiverInterfacefileName - Name of the file to be uploadeddescription - Description to be associated with the file being uploadedpublic static void main(java.lang.String[] args)
args - The command line arguments are fileName, description, region,
vaultName, logDirectory.