/** * @return * the {@link MultipartUpload}s that have been completed since the last progress event was fired. * @throws IllegalStateException * created objects are only available from EVENT_IN_PROGRESS events. */ public MultipartCompleted[] getCompletedUploads() throws IllegalStateException { if (getEventCode() != EVENT_IN_PROGRESS) { throw new IllegalStateException("Started Objects are only available from EVENT_IN_PROGRESS events"); } return completedUploads; }
/** * @return * the {@link MultipartUpload}s that were not completed before the operation was cancelled. * @throws IllegalStateException * cancelled objects are only available from EVENT_CANCELLED events. */ public MultipartUpload[] getCancelledUploads() throws IllegalStateException { if (getEventCode() != EVENT_CANCELLED) { throw new IllegalStateException("Cancelled Objects are only available from EVENT_CANCELLED events"); } return incompleteUploads; }
/** * @return * the {@link MultipartUpload}s that were not completed before the operation was cancelled. * @throws IllegalStateException * cancelled objects are only available from EVENT_CANCELLED events. */ public MultipartUpload[] getCancelledUploads() throws IllegalStateException { if (getEventCode() != EVENT_CANCELLED) { throw new IllegalStateException("Cancelled Objects are only available from EVENT_CANCELLED events"); } return incompleteUploads; }
/** * @return * the {@link MultipartUpload}s that have been completed since the last progress event was fired. * @throws IllegalStateException * created objects are only available from EVENT_IN_PROGRESS events. */ public MultipartCompleted[] getCompletedUploads() throws IllegalStateException { if (getEventCode() != EVENT_IN_PROGRESS) { throw new IllegalStateException("Started Objects are only available from EVENT_IN_PROGRESS events"); } return completedUploads; }
@Override public void event(MultipartCompletesEvent event) { super.event(event); if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { displayProgressStatus("Completing large file uploads: ", event.getThreadWatcher()); } }
@Override public void event(MultipartCompletesEvent event) { super.event(event); if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { displayProgressStatus("Completing large file uploads: ", event.getThreadWatcher()); } }