/** * @return * the {@link StorageObject}s that have been uploaded since the last progress event was fired. * @throws IllegalStateException * created objects are only available from EVENT_IN_PROGRESS events. */ public StorageObject[] getUploadedObjects() throws IllegalStateException { if (getEventCode() != EVENT_IN_PROGRESS) { throw new IllegalStateException("Created Objects are only available from EVENT_IN_PROGRESS events"); } return objects; }
/** * @return * the {@link StorageObject}s that have been uploaded since the last progress event was fired. * @throws IllegalStateException * created objects are only available from EVENT_IN_PROGRESS events. */ public StorageObject[] getUploadedObjects() throws IllegalStateException { if (getEventCode() != EVENT_IN_PROGRESS) { throw new IllegalStateException("Created Objects are only available from EVENT_IN_PROGRESS events"); } return objects; }
/** * @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 objects; }
/** * @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 objects; }
@Override public void event(MultipartUploadsEvent event) { super.event(event); displayIgnoredErrors(event); if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { displayProgressStatus("Large upload parts: ", event.getThreadWatcher()); } }
@Override public void event(MultipartUploadsEvent event) { super.event(event); displayIgnoredErrors(event); if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { displayProgressStatus("Large upload parts: ", event.getThreadWatcher()); } }