Package com.amazonaws.services.s3.transfer.internal

Examples of com.amazonaws.services.s3.transfer.internal.MultipartUploadCallable


       
        ObjectListing objectListing = new ObjectListing();
        int capacity = listObjectsRequest.getMaxKeys();
       
        for (int index = 0; index < objects.size() && index < capacity; index++) {
            S3ObjectSummary s3ObjectSummary = new S3ObjectSummary();
            s3ObjectSummary.setBucketName(objects.get(index).getBucketName());
            s3ObjectSummary.setKey(objects.get(index).getKey());
           
            objectListing.getObjectSummaries().add(s3ObjectSummary);
        }

        return objectListing;
View Full Code Here


        try {
            for (int part = 1; filePosition < contentLength; part++) {
                partSize = Math.min(partSize, contentLength - filePosition);

                UploadPartRequest uploadRequest = new UploadPartRequest()
                        .withBucketName(getConfiguration().getBucketName()).withKey(keyName)
                        .withUploadId(initResponse.getUploadId()).withPartNumber(part)
                        .withFileOffset(filePosition)
                        .withFile(filePayload)
                        .withPartSize(partSize);
View Full Code Here

            throws AmazonClientException, AmazonServiceException {
        assertParameterNotNull(previousVersionListing,
            "The previous version listing parameter must be specified when listing the next batch of versions in a bucket");

        if (!previousVersionListing.isTruncated()) {
            VersionListing emptyListing = new VersionListing();
            emptyListing.setBucketName(previousVersionListing.getBucketName());
            emptyListing.setDelimiter(previousVersionListing.getDelimiter());
            emptyListing.setKeyMarker(previousVersionListing.getNextKeyMarker());
            emptyListing.setVersionIdMarker(previousVersionListing.getNextVersionIdMarker());
            emptyListing.setMaxKeys(previousVersionListing.getMaxKeys());
            emptyListing.setPrefix(previousVersionListing.getPrefix());
            emptyListing.setTruncated(false);

            return emptyListing;
        }

        return listVersions(new ListVersionsRequest(
View Full Code Here

    }

    private void doItForJob(String jobId) throws InterruptedException {
        logger.info("Beginning download of "+jobId);
        String bucketName= getLast(on("/").omitEmptyStrings().split(awsLogUri));
        Transfer that=transferManager.downloadDirectory(bucketName, jobId, new File(localLogTarget));
        that.waitForCompletion();
    }
View Full Code Here

        UploadImpl upload = new UploadImpl(description, transferProgress, listenerChain);

        Callable<UploadResult> callable = null;
        if (TransferManagerUtils.shouldUseMultipartUpload(putObjectRequest, configuration)) {
            callable = new MultipartUploadCallable(this, threadPool, putObjectRequest, listenerChain);
        } else {
            callable = new PutObjectCallable(s3, putObjectRequest);
        }

        callable = new TransferStateUpdatingCallable(callable, upload);
View Full Code Here

       
        UploadImpl upload = new UploadImpl(description, transferProgress, listenerChain);
       
        Callable<UploadResult> callable = null;
        if (TransferManagerUtils.shouldUseMultipartUpload(putObjectRequest, configuration)) {
            callable = new MultipartUploadCallable(this, threadPool, putObjectRequest, listenerChain);
        } else {
            callable = new PutObjectCallable(s3, putObjectRequest);
        }
       
        callable = new TransferStateUpdatingCallable(callable, upload);
View Full Code Here

        UploadImpl upload = new UploadImpl(description, transferProgress, listenerChain);

        Callable<UploadResult> callable = null;
        if (TransferManagerUtils.shouldUseMultipartUpload(putObjectRequest, configuration)) {
            callable = new MultipartUploadCallable(this, threadPool, putObjectRequest, listenerChain);
        } else {
            callable = new PutObjectCallable(s3, putObjectRequest);
        }

        callable = new TransferStateUpdatingCallable(callable, upload);
View Full Code Here

        UploadImpl upload = new UploadImpl(description, transferProgress, listenerChain);

        Callable<UploadResult> callable = null;
        if (TransferManagerUtils.shouldUseMultipartUpload(putObjectRequest, configuration)) {
            callable = new MultipartUploadCallable(this, threadPool, putObjectRequest, listenerChain);
        } else {
            callable = new PutObjectCallable(s3, putObjectRequest);
        }

        callable = new TransferStateUpdatingCallable(callable, upload);
View Full Code Here

        UploadImpl upload = new UploadImpl(description, transferProgress, listenerChain);

        Callable<UploadResult> callable = null;
        if (TransferManagerUtils.shouldUseMultipartUpload(putObjectRequest, configuration)) {
            callable = new MultipartUploadCallable(this, threadPool, putObjectRequest, listenerChain);
        } else {
            callable = new PutObjectCallable(s3, putObjectRequest);
        }

        callable = new TransferStateUpdatingCallable(callable, upload);
View Full Code Here

        UploadImpl upload = new UploadImpl(description, transferProgress, listenerChain);

        Callable<UploadResult> callable = null;
        if (TransferManagerUtils.shouldUseMultipartUpload(putObjectRequest, configuration)) {
            callable = new MultipartUploadCallable(this, threadPool, putObjectRequest, listenerChain);
        } else {
            callable = new PutObjectCallable(s3, putObjectRequest);
        }

        callable = new TransferStateUpdatingCallable(callable, upload);
View Full Code Here

TOP

Related Classes of com.amazonaws.services.s3.transfer.internal.MultipartUploadCallable

Copyright © 2018 www.massapicom. 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.