/** * @return * the S3Objects that were not retrieved before the operation was cancelled. * @throws IllegalStateException * cancelled objects are only available from EVENT_CANCELLED events. */ public S3Object[] getCancelledObjects() throws IllegalStateException { if (getEventCode() != EVENT_CANCELLED) { throw new IllegalStateException("Cancelled Objects are only available from EVENT_CANCELLED events"); } return objects; }
/** * @return * the S3Objects that were not retrieved before the operation was cancelled. * @throws IllegalStateException * cancelled objects are only available from EVENT_CANCELLED events. */ public S3Object[] getCancelledObjects() throws IllegalStateException { if (getEventCode() != EVENT_CANCELLED) { throw new IllegalStateException("Cancelled Objects are only available from EVENT_CANCELLED events"); } return objects; }
/** * @return * the S3Objects that have been retrieved since the last progress event was fired. * @throws IllegalStateException * completed objects are only available from EVENT_IN_PROGRESS events. */ public S3Object[] getCompletedObjects() throws IllegalStateException { if (getEventCode() != EVENT_IN_PROGRESS) { throw new IllegalStateException("Completed Objects are only available from EVENT_IN_PROGRESS events"); } return objects; }
/** * @return * the S3Objects that have been retrieved since the last progress event was fired. * @throws IllegalStateException * completed objects are only available from EVENT_IN_PROGRESS events. */ public S3Object[] getCompletedObjects() throws IllegalStateException { if (getEventCode() != EVENT_IN_PROGRESS) { throw new IllegalStateException("Completed Objects are only available from EVENT_IN_PROGRESS events"); } return objects; }
@Override public void s3ServiceEventPerformed(GetObjectHeadsEvent event) { super.s3ServiceEventPerformed(event); if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { objectList.addAll(Arrays.asList(event.getCompletedObjects())); } }; };
@Override public void s3ServiceEventPerformed(GetObjectHeadsEvent event) { super.s3ServiceEventPerformed(event); if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { objectList.addAll(Arrays.asList(event.getCompletedObjects())); } }; };
if (ServiceEvent.EVENT_STARTED == event.getEventCode()) { if (event.getThreadWatcher().getThreadCount() > 0) { startProgressDialog("Retrieved details for 0 of " else if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { final ThreadWatcher progressStatus = event.getThreadWatcher(); updateProgressDialog(statusText, "", (int) progressStatus.getCompletedThreads()); else if (ServiceEvent.EVENT_COMPLETED == event.getEventCode()) { else if (ServiceEvent.EVENT_CANCELLED == event.getEventCode()) { stopProgressDialog(); else if (ServiceEvent.EVENT_ERROR == event.getEventCode()) { stopProgressDialog();
if (ServiceEvent.EVENT_STARTED == event.getEventCode()) { if (event.getThreadWatcher().getThreadCount() > 0) { startProgressDialog("Retrieved details for 0 of " else if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { final ThreadWatcher progressStatus = event.getThreadWatcher(); updateProgressDialog(statusText, "", (int) progressStatus.getCompletedThreads()); else if (ServiceEvent.EVENT_COMPLETED == event.getEventCode()) { else if (ServiceEvent.EVENT_CANCELLED == event.getEventCode()) { stopProgressDialog(); else if (ServiceEvent.EVENT_ERROR == event.getEventCode()) { stopProgressDialog();
if (ServiceEvent.EVENT_STARTED == event.getEventCode()) { if (event.getThreadWatcher().getThreadCount() > 0) { startProgressDialog("Retrieved details for 0 of " else if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { final ThreadWatcher progressStatus = event.getThreadWatcher(); updateProgressDialog(statusText, "", (int) progressStatus.getCompletedThreads()); else if (ServiceEvent.EVENT_COMPLETED == event.getEventCode()) { else if (ServiceEvent.EVENT_CANCELLED == event.getEventCode()) { stopProgressDialog(); else if (ServiceEvent.EVENT_ERROR == event.getEventCode()) { stopProgressDialog();
if (ServiceEvent.EVENT_STARTED == event.getEventCode()) { if (event.getThreadWatcher().getThreadCount() > 0) { startProgressDialog("Retrieved details for 0 of " else if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { final ThreadWatcher progressStatus = event.getThreadWatcher(); updateProgressDialog(statusText, "", (int) progressStatus.getCompletedThreads()); else if (ServiceEvent.EVENT_COMPLETED == event.getEventCode()) { else if (ServiceEvent.EVENT_CANCELLED == event.getEventCode()) { stopProgressDialog(); else if (ServiceEvent.EVENT_ERROR == event.getEventCode()) { stopProgressDialog();