Package com.amazonaws.services.glacier.transfer

Examples of com.amazonaws.services.glacier.transfer.ArchiveTransferManager.upload()


                  uw.setTitle("(" + (i + 1) + "/"
                      + uploadFileBatch.length + ")"
                      + " Uploading: " + thisFile);

                  UploadResult result = atm.upload(vaultName,
                      cleanFile, uploadFileBatch[i]);

                  uw.addToLog("Done: " + thisFile + "\n");

                  uploadedSize += uploadFileBatch[i].length();
View Full Code Here


  public void upload(final String vaultName, final File uploadFile) {
    log.info("Starting to upload " + uploadFile + " to vault " + vaultName + "...");
    try {
      final ArchiveTransferManager atm = new ArchiveTransferManager(client, sqs, sns);
      final String archiveId = atm.upload(vaultName, uploadFile.getName(), uploadFile).getArchiveId();
      log.info("Uploaded archive " + archiveId);
    } catch (final IOException e) {
      log.error("Something went wrong while uploading " + uploadFile + vaultName + "to vault " + ".", e);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.