Examples of UploadMultipartPartRequest

This operation is idempotent. If you upload the same part multiple times, the data included in the most recent request overwrites the previously uploaded data.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM) .

For conceptual information and underlying REST API, go to Uploading Large Archives in Parts (Multipart Upload) and Upload Part in the Amazon Glacier Developer Guide .

@see com.amazonaws.services.glacier.AmazonGlacier#uploadMultipartPart(UploadMultipartPartRequest)

Examples of com.amazonaws.services.glacier.model.UploadMultipartPartRequest

                                    currentPosition, length, true);
                                inputSubStream.mark(-1);
                            String checksum = TreeHashGenerator.calculateTreeHash(inputSubStream);
                            byte[] binaryChecksum = BinaryUtils.fromHex(checksum);
                            inputSubStream.reset();
                            UploadMultipartPartRequest req = new UploadMultipartPartRequest()
                                .withAccountId(accountId)
                                .withChecksum(checksum)
                                .withBody(inputSubStream)
                                .withRange("bytes " + currentPosition + "-" + (currentPosition + length - 1) + "/*")
                                .withUploadId(uploadId)
View Full Code Here

Examples of com.amazonaws.services.glacier.model.UploadMultipartPartRequest

        byte[] binaryChecksum = BinaryUtils.fromHex(checksum);
        binaryChecksums.add(binaryChecksum);
        inputSubStream.reset();
       
              try {
                  glacier.uploadMultipartPart(new UploadMultipartPartRequest()
                      .withAccountId(accountId)
                      .withChecksum(checksum)
                      .withBody(inputSubStream)
                      .withRange("bytes " + currentPosition + "-" + (currentPosition + length - 1) + "/*")
                      .withUploadId(uploadId)
View Full Code Here

Examples of com.amazonaws.services.glacier.model.UploadMultipartPartRequest

                    inputSubStream.mark(-1);
                    String checksum = TreeHashGenerator.calculateTreeHash(inputSubStream);
                    byte[] binaryChecksum = BinaryUtils.fromHex(checksum);
                    inputSubStream.reset();
                    try {
                        glacier.uploadMultipartPart(new UploadMultipartPartRequest()
                                .withAccountId(accountId)
                                .withChecksum(checksum)
                                .withBody(inputSubStream)
                                .withRange("bytes " + currentPosition + "-" + (currentPosition + length - 1) + "/*")
                                .withUploadId(uploadId)
View Full Code Here

Examples of com.amazonaws.services.glacier.model.UploadMultipartPartRequest

                    inputSubStream.mark(-1);
                    String checksum = TreeHashGenerator.calculateTreeHash(inputSubStream);
                    byte[] binaryChecksum = BinaryUtils.fromHex(checksum);
                    inputSubStream.reset();
                    try {
                        glacier.uploadMultipartPart(new UploadMultipartPartRequest()
                                .withAccountId(accountId)
                                .withChecksum(checksum)
                                .withBody(inputSubStream)
                                .withRange("bytes " + currentPosition + "-" + (currentPosition + length - 1) + "/*")
                                .withUploadId(uploadId)
View Full Code Here

Examples of com.amazonaws.services.glacier.model.UploadMultipartPartRequest

    @Override
    public UploadMultipartPartResult uploadPart(String checksum, InputStream
            body, String range, ResultCapture<UploadMultipartPartResult>
            extractor) {

        UploadMultipartPartRequest request = new UploadMultipartPartRequest()
            .withChecksum(checksum)
            .withBody(body)
            .withRange(range);
        return uploadPart(request, extractor);
    }
View Full Code Here

Examples of com.amazonaws.services.glacier.model.UploadMultipartPartRequest

                    inputSubStream.mark(-1);
                    String checksum = TreeHashGenerator.calculateTreeHash(inputSubStream);
                    byte[] binaryChecksum = BinaryUtils.fromHex(checksum);
                    inputSubStream.reset();
                    try {
                        glacier.uploadMultipartPart(new UploadMultipartPartRequest()
                                .withAccountId(accountId)
                                .withChecksum(checksum)
                                .withBody(inputSubStream)
                                .withRange("bytes " + currentPosition + "-" + (currentPosition + length - 1) + "/*")
                                .withUploadId(uploadId)
View Full Code Here

Examples of com.amazonaws.services.glacier.model.UploadMultipartPartRequest

                    inputSubStream.mark(-1);
                    String checksum = TreeHashGenerator.calculateTreeHash(inputSubStream);
                    byte[] binaryChecksum = BinaryUtils.fromHex(checksum);
                    inputSubStream.reset();
                    try {
                        glacier.uploadMultipartPart(new UploadMultipartPartRequest()
                                .withAccountId(accountId)
                                .withChecksum(checksum)
                                .withBody(inputSubStream)
                                .withRange("bytes " + currentPosition + "-" + (currentPosition + length - 1) + "/*")
                                .withUploadId(uploadId)
View Full Code Here

Examples of com.amazonaws.services.glacier.model.UploadMultipartPartRequest

          inputSubStream.mark(-1);
          checksum = TreeHashGenerator.calculateTreeHash(inputSubStream);
          byte[] binaryChecksum = BinaryUtils.fromHex(checksum);
          inputSubStream.reset();
          String range = "bytes " + currentPosition + "-" + (currentPosition + length - 1) + "/*";
          UploadMultipartPartRequest req = new UploadMultipartPartRequest().withChecksum(checksum)
              .withBody(inputSubStream).withRange(range).withUploadId(uploadId).withVaultName(vaultName);
          try {
            UploadMultipartPartResult partResult = client.uploadMultipartPart(req);
            log.info(String.format("Part %d/%d (%s) uploaded, checksum: %s", counter, total, range, partResult.getChecksum()));
            completed = true;
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.