/** * Sets the list of part numbers and ETags that identify the individual * parts of the multipart upload to complete based on the specified results * from part uploads. * * @param uploadPartResults * The list of results from the individual part uploads in the * multipart upload to complete. * * @return This updated CompleteMultipartUploadRequest object. */ public CompleteMultipartUploadRequest withPartETags(UploadPartResult... uploadPartResults) { for (UploadPartResult result : uploadPartResults) { this.partETags.add(new PartETag(result.getPartNumber(), result.getETag())); } return this; }
/** * Sets the list of part numbers and ETags that identify the individual * parts of the multipart upload to complete based on the specified results * from part uploads. * * @param uploadPartResultsCollection * The list of results from the individual part uploads in the * multipart upload to complete. * * @return This updated CompleteMultipartUploadRequest object. */ public CompleteMultipartUploadRequest withPartETags(Collection<UploadPartResult> uploadPartResultsCollection) { for (UploadPartResult result : uploadPartResultsCollection) { this.partETags.add(new PartETag(result.getPartNumber(), result.getETag())); } return this; }
@Override public void run() { try { final UploadPartResult result = s3AccessHelper.uploadPart(objectName, uploadId, partNumber, file.getInputFile(), file.getPos()); future.complete(new PartETag(result.getPartNumber(), result.getETag())); file.release(); } catch (Throwable t) { future.completeExceptionally(t); } } }
partETags.add(new PartETag(partResult.getPartNumber(), partResult.getETag()));
partETags.add(new PartETag(partResult.getPartNumber(), partResult.getETag()));
uploadPartResult.getETag(), currentState.getUploadId()}); } catch (AmazonClientException e) { getLogger().info("Failure uploading part flowfile={} part={} bucket={} key={} " +
/** * Sets the list of part numbers and ETags that identify the individual * parts of the multipart upload to complete based on the specified results * from part uploads. * * @param uploadPartResults The list of results from the individual part * uploads in the multipart upload to complete. * @return This updated CompleteMultipartUploadRequest object. */ public CompleteMultipartUploadRequest withPartETags(UploadPartResult... uploadPartResults) { for (final UploadPartResult result : uploadPartResults) { this.partETags.add(new PartETag(result.getPartNumber(), result.getETag())); } return this; }
/** * Sets the list of part numbers and ETags that identify the individual * parts of the multipart upload to complete based on the specified results * from part uploads. * * @param uploadPartResultsCollection The list of results from the * individual part uploads in the multipart upload to complete. * @return This updated CompleteMultipartUploadRequest object. */ public CompleteMultipartUploadRequest withPartETags( Collection<UploadPartResult> uploadPartResultsCollection) { for (final UploadPartResult result : uploadPartResultsCollection) { this.partETags.add(new PartETag(result.getPartNumber(), result.getETag())); } return this; }
final UploadPartResult putPartResult = s3.uploadPart(request); dbUtil.updateState(request.getId(), TransferState.PART_COMPLETED); dbUtil.updateETag(request.getId(), putPartResult.getETag()); return true; } catch (final Exception e) {
partETags.add(new PartETag(partResult.getPartNumber(), partResult.getETag()));
/** * Sets the list of part numbers and ETags that identify the individual * parts of the multipart upload to complete based on the specified results * from part uploads. * * @param uploadPartResults The list of results from the individual part * uploads in the multipart upload to complete. * @return This updated CompleteMultipartUploadRequest object. */ public CompleteMultipartUploadRequest withPartETags(UploadPartResult... uploadPartResults) { for (final UploadPartResult result : uploadPartResults) { this.partETags.add(new PartETag(result.getPartNumber(), result.getETag())); } return this; }
/** * Sets the list of part numbers and ETags that identify the individual * parts of the multipart upload to complete based on the specified results * from part uploads. * * @param uploadPartResultsCollection The list of results from the * individual part uploads in the multipart upload to complete. * @return This updated CompleteMultipartUploadRequest object. */ public CompleteMultipartUploadRequest withPartETags( Collection<UploadPartResult> uploadPartResultsCollection) { for (final UploadPartResult result : uploadPartResultsCollection) { this.partETags.add(new PartETag(result.getPartNumber(), result.getETag())); } return this; }
/** * Sets the list of part numbers and ETags that identify the individual * parts of the multipart upload to complete based on the specified results * from part uploads. * * @param uploadPartResults * The list of results from the individual part uploads in the * multipart upload to complete. * * @return This updated CompleteMultipartUploadRequest object. */ public CompleteMultipartUploadRequest withPartETags(UploadPartResult... uploadPartResults) { for (UploadPartResult result : uploadPartResults) { this.partETags.add(new PartETag(result.getPartNumber(), result.getETag())); } return this; }
/** * Sets the list of part numbers and ETags that identify the individual * parts of the multipart upload to complete based on the specified results * from part uploads. * * @param uploadPartResultsCollection * The list of results from the individual part uploads in the * multipart upload to complete. * * @return This updated CompleteMultipartUploadRequest object. */ public CompleteMultipartUploadRequest withPartETags(Collection<UploadPartResult> uploadPartResultsCollection) { for (UploadPartResult result : uploadPartResultsCollection) { this.partETags.add(new PartETag(result.getPartNumber(), result.getETag())); } return this; }
@Override public PartHandle putPart(Path filePath, InputStream inputStream, int partNumber, UploadHandle uploadId, long lengthInBytes) throws IOException { byte[] uploadIdBytes = uploadId.toByteArray(); checkUploadId(uploadIdBytes); String key = s3a.pathToKey(filePath); final WriteOperationHelper writeHelper = s3a.getWriteOperationHelper(); String uploadIdString = new String(uploadIdBytes, 0, uploadIdBytes.length, Charsets.UTF_8); UploadPartRequest request = writeHelper.newUploadPartRequest(key, uploadIdString, partNumber, (int) lengthInBytes, inputStream, null, 0L); UploadPartResult result = writeHelper.uploadPart(request); String eTag = result.getETag(); return BBPartHandle.from( ByteBuffer.wrap( buildPartHandlePayload(eTag, lengthInBytes))); }
partETags.add(new PartETag(partResult.getPartNumber(), partResult.getETag()));
partETags.add(new PartETag(partResult.getPartNumber(), partResult.getETag()));
partETags.add(new PartETag(partResult.getPartNumber(), partResult.getETag()));
uploadPartResult.getETag(), currentState.getUploadId()}); } catch (AmazonClientException e) { getLogger().info("Failure uploading part flowfile={} part={} bucket={} key={} " +
uploadPartTaskMetadata.state = TransferState.PART_COMPLETED; dbUtil.updateState(uploadPartRequest.getId(), TransferState.PART_COMPLETED); dbUtil.updateETag(uploadPartRequest.getId(), putPartResult.getETag()); return true; } catch (final Exception e) {