inputStream = new ProgressReportingInputStream(inputStream, progressListenerCallbackExecutor); ((ProgressReportingInputStream)inputStream).setNotificationThreshold(this.notificationThreshold); fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.PART_STARTED_EVENT_CODE); fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.PART_COMPLETED_EVENT_CODE); return result; } catch (final AmazonClientException ace) { fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.PART_FAILED_EVENT_CODE);
input = new ProgressReportingInputStream(input, progressListenerCallbackExecutor); ((ProgressReportingInputStream)input).setNotificationThreshold(this.notificationThreshold); fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.STARTED_EVENT_CODE); returnedMetadata = invoke(request, new S3MetadataResponseHandler(), bucketName, key); } catch (final AmazonClientException ace) { fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.FAILED_EVENT_CODE); throw ace; } finally { fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.FAILED_EVENT_CODE); fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.COMPLETED_EVENT_CODE);
progressReportingInputStream.setNotificationThreshold(this.notificationThreshold); input = progressReportingInputStream; fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.STARTED_EVENT_CODE); fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.CANCELED_EVENT_CODE); return null; fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.FAILED_EVENT_CODE);
inputStream = new ProgressReportingInputStream(inputStream, progressListenerCallbackExecutor); ((ProgressReportingInputStream)inputStream).setNotificationThreshold(this.notificationThreshold); fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.PART_STARTED_EVENT_CODE); fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.PART_COMPLETED_EVENT_CODE); return result; } catch (final AmazonClientException ace) { fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.PART_FAILED_EVENT_CODE);
input = new ProgressReportingInputStream(input, progressListenerCallbackExecutor); ((ProgressReportingInputStream)input).setNotificationThreshold(this.notificationThreshold); fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.STARTED_EVENT_CODE); returnedMetadata = invoke(request, new S3MetadataResponseHandler(), bucketName, key); } catch (final AmazonClientException ace) { fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.FAILED_EVENT_CODE); throw ace; } finally { fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.FAILED_EVENT_CODE); fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.COMPLETED_EVENT_CODE);
progressReportingInputStream.setNotificationThreshold(this.notificationThreshold); input = progressReportingInputStream; fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.STARTED_EVENT_CODE); fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.CANCELED_EVENT_CODE); return null; fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.FAILED_EVENT_CODE);