/** * @return * the {@link MultipartUpload}s that have been started since the last progress event was fired. * @throws IllegalStateException * created objects are only available from EVENT_IN_PROGRESS events. */ public MultipartUpload[] getStartedUploads() throws IllegalStateException { if (getEventCode() != EVENT_IN_PROGRESS) { throw new IllegalStateException("Started Objects are only available from EVENT_IN_PROGRESS events"); } return completedMultipartUploads; }
/** * @return * the {@link MultipartUpload}s that have been started since the last progress event was fired. * @throws IllegalStateException * created objects are only available from EVENT_IN_PROGRESS events. */ public MultipartUpload[] getStartedUploads() throws IllegalStateException { if (getEventCode() != EVENT_IN_PROGRESS) { throw new IllegalStateException("Started Objects are only available from EVENT_IN_PROGRESS events"); } return completedMultipartUploads; }
/** * @return * the {@link StorageObject}s that were not created before the operation was cancelled. * @throws IllegalStateException * cancelled objects are only available from EVENT_CANCELLED events. */ public StorageObject[] getCancelledObjects() throws IllegalStateException { if (getEventCode() != EVENT_CANCELLED) { throw new IllegalStateException("Cancelled Objects are only available from EVENT_CANCELLED events"); } return incompletedObjects; }
/** * @return * the {@link StorageObject}s that were not created before the operation was cancelled. * @throws IllegalStateException * cancelled objects are only available from EVENT_CANCELLED events. */ public StorageObject[] getCancelledObjects() throws IllegalStateException { if (getEventCode() != EVENT_CANCELLED) { throw new IllegalStateException("Cancelled Objects are only available from EVENT_CANCELLED events"); } return incompletedObjects; }
@Override public void event(MultipartStartsEvent event) { if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { for (MultipartUpload upload: event.getStartedUploads()) { multipartUploadList.add(upload); } } } };
@Override public void event(MultipartStartsEvent event) { if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { for (MultipartUpload upload: event.getStartedUploads()) { multipartUploadList.add(upload); } } } };
@Override public void event(MultipartStartsEvent event) { super.event(event); if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { displayProgressStatus("Starting large file uploads: ", event.getThreadWatcher()); } }
@Override public void event(MultipartStartsEvent event) { super.event(event); if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { displayProgressStatus("Starting large file uploads: ", event.getThreadWatcher()); } }