@Override public void fireStartEvent(ThreadWatcher threadWatcher) { fireServiceEvent(MultipartStartsEvent.newStartedEvent(threadWatcher, uniqueOperationId)); } @Override
try { ThreadedS3Service threadedS3Service = new ThreadedS3Service(s3Service, eventListener); threadedS3Service.addServiceEventListener( captureMultipartUploadObjectsEventAdaptor); threadedS3Service.multipartStartUploads(bucketName, objectsForMultipartUpload); throwServiceEventAdaptorErrorIfPresent(eventListener); threadedS3Service.multipartUploadParts(uploadAndPartsList); throwServiceEventAdaptorErrorIfPresent(eventListener); threadedS3Service.multipartCompleteUploads(multipartUploadList); throwServiceEventAdaptorErrorIfPresent(eventListener); } catch (Exception e) {
assertIsS3Service(); final List<StorageObject> incompletedObjectsList = new ArrayList<StorageObject>(); final Object uniqueOperationId = new Object(); // Special object used to identify this operation.
try { ThreadedS3Service threadedS3Service = new ThreadedS3Service(s3Service, eventListener); threadedS3Service.addServiceEventListener( captureMultipartUploadObjectsEventAdaptor); threadedS3Service.multipartStartUploads(bucketName, objectsForMultipartUpload); throwServiceEventAdaptorErrorIfPresent(eventListener); threadedS3Service.multipartUploadParts(uploadAndPartsList); throwServiceEventAdaptorErrorIfPresent(eventListener); threadedS3Service.multipartCompleteUploads(multipartUploadList); throwServiceEventAdaptorErrorIfPresent(eventListener); } catch (Exception e) {
assertIsS3Service(); final List<MultipartUpload> incompletedObjectsList = new ArrayList<MultipartUpload>(); final Object uniqueOperationId = new Object(); // Special object used to identify this operation.
@Override public void fireErrorEvent(Throwable throwable) { success[0] = false; fireServiceEvent(MultipartCompletesEvent.newErrorEvent(throwable, uniqueOperationId)); } @Override
assertIsS3Service(); final List<MultipartUpload> incompletedObjectsList = new ArrayList<MultipartUpload>(); final Object uniqueOperationId = new Object(); // Special object used to identify this operation.
@Override public void fireIgnoredErrorsEvent(ThreadWatcher threadWatcher, Throwable[] ignoredErrors) { success[0] = false; fireServiceEvent(MultipartCompletesEvent.newIgnoredErrorsEvent(threadWatcher, ignoredErrors, uniqueOperationId)); } }).run();
assertIsS3Service(); final List<StorageObject> incompletedObjectsList = new ArrayList<StorageObject>(); final Object uniqueOperationId = new Object(); // Special object used to identify this operation.
@Override public void fireProgressEvent(ThreadWatcher threadWatcher, List completedResults) { incompletedObjectsList.removeAll(completedResults); StorageObject[] completedObjects = (StorageObject[]) completedResults .toArray(new StorageObject[completedResults.size()]); fireServiceEvent(MultipartUploadsEvent.newInProgressEvent(threadWatcher, completedObjects, uniqueOperationId)); } @Override
assertIsS3Service(); final List<StorageObject> incompletedObjectsList = new ArrayList<StorageObject>(); final List<BytesProgressWatcher> progressWatchers = new ArrayList<BytesProgressWatcher>();
@Override public void fireIgnoredErrorsEvent(ThreadWatcher threadWatcher, Throwable[] ignoredErrors) { success[0] = false; fireServiceEvent(MultipartStartsEvent.newIgnoredErrorsEvent(threadWatcher, ignoredErrors, uniqueOperationId)); } }).run();
assertIsS3Service(); final List<StorageObject> incompletedObjectsList = new ArrayList<StorageObject>(); final List<BytesProgressWatcher> progressWatchers = new ArrayList<BytesProgressWatcher>();
@Override public void fireStartEvent(ThreadWatcher threadWatcher) { fireServiceEvent(MultipartUploadsEvent.newStartedEvent(threadWatcher, uniqueOperationId)); } @Override
@Override public void fireErrorEvent(Throwable throwable) { success[0] = false; fireServiceEvent(MultipartStartsEvent.newErrorEvent(throwable, uniqueOperationId)); } @Override
@Override public void fireCompletedEvent() { fireServiceEvent(MultipartCompletesEvent.newCompletedEvent(uniqueOperationId)); } @Override
@Override public void fireCompletedEvent() { fireServiceEvent(MultipartStartsEvent.newCompletedEvent(uniqueOperationId)); } @Override
@Override public void fireStartEvent(ThreadWatcher threadWatcher) { fireServiceEvent(MultipartCompletesEvent.newStartedEvent(threadWatcher, uniqueOperationId)); } @Override
@Override public void fireCompletedEvent() { fireServiceEvent(MultipartCompletesEvent.newCompletedEvent(uniqueOperationId)); } @Override
@Override public void fireStartEvent(ThreadWatcher threadWatcher) { fireServiceEvent(MultipartStartsEvent.newStartedEvent(threadWatcher, uniqueOperationId)); } @Override