public void run() { try { result = ((S3Service)storageService).multipartStartUpload(bucketName, (S3Object)object); } catch (ServiceException e) { result = e; } }
public void run() { try { result = ((S3Service)storageService).multipartStartUpload(bucketName, (S3Object)object); } catch (ServiceException e) { result = e; } }
/** * Start a multipart upload process for a given object; must be done before * individual parts can be uploaded. * * @param bucketName * the name of the bucket in which the object will be stored. * @param objectKey * the key name of the object. * @param metadata * metadata to apply to the completed object, may be null. * @return * object representing this multipart upload. * @throws S3ServiceException */ public MultipartUpload multipartStartUpload(String bucketName, String objectKey, Map<String, Object> metadata) throws S3ServiceException { return multipartStartUpload(bucketName, objectKey, metadata, null, null); }
/** * Start a multipart upload process for a given object; must be done before * individual parts can be uploaded. * * @param bucketName * the name of the bucket in which the object will be stored. * @param objectKey * the key name of the object. * @param metadata * metadata to apply to the completed object, may be null. * @return * object representing this multipart upload. * @throws S3ServiceException */ public MultipartUpload multipartStartUpload(String bucketName, String objectKey, Map<String, Object> metadata) throws S3ServiceException { return multipartStartUpload(bucketName, objectKey, metadata, null, null); }
(srcObject.getContentLength() % multipartCopyBlockSize > 0 ? 1 : 0); MultipartUpload multipartUpload = s3Service.multipartStartUpload (bucket.getName(), dstKey, srcObject.getMetadataMap());
MultipartUpload upload = multipartStartUpload(bucketName, object.getKey(), object.getMetadataMap(), object.getAcl(), object.getStorageClass());
MultipartUpload upload = multipartStartUpload(bucketName, object.getKey(), object.getMetadataMap(), object.getAcl(), object.getStorageClass());