Package com.amazonaws.event

Examples of com.amazonaws.event.ProgressEvent


        }, pollInterval, TimeUnit.MILLISECONDS));
    }

    private void fireProgressEvent(final int eventType) {
        if (progressListenerChainCallbackExecutor == null) return;
        ProgressEvent event = new ProgressEvent(0);
        event.setEventCode(eventType);
        progressListenerChainCallbackExecutor.progressChanged(event);
    }
View Full Code Here


        return monitor;
    }
   
    protected void fireProgressEvent(final int eventType) {
        if (progressListenerChainCallbackExecutor == null) return;
        progressListenerChainCallbackExecutor.progressChanged(new ProgressEvent(eventType, 0));
    }
View Full Code Here

     * @param eventType
     *            The type of event to fire.
     */
    private void fireProgressEvent(final ProgressListenerCallbackExecutor progressListenerCallbackExecutor, final int eventType) {
        if (progressListenerCallbackExecutor == null) return;
        ProgressEvent event = new ProgressEvent(0);
        event.setEventCode(eventType);
        progressListenerCallbackExecutor.progressChanged(event);
    }
View Full Code Here

        @Override
        public void progressChanged(ProgressEvent progressEvent) {
            super.progressChanged(progressEvent);

            /* Only propagate the BytesTransferred to progress listener chain */
            progressListenerCallbackExecutor.progressChanged(new ProgressEvent(
                    progressEvent.getBytesTransferred()));
        }
View Full Code Here

    }

    private void fireProgressEvent(final int eventType) {
        if (progressListenerChainCallbackExecutor == null)
            return;
        ProgressEvent event = new ProgressEvent(0);
        event.setEventCode(eventType);
        progressListenerChainCallbackExecutor.progressChanged(event);
    }
View Full Code Here

     * @param eventType
     *            The type of event to fire.
     */
    private void fireProgressEvent(final ProgressListenerCallbackExecutor progressListenerCallbackExecutor, final int eventType) {
        if (progressListenerCallbackExecutor == null) return;
        ProgressEvent event = new ProgressEvent(0);
        event.setEventCode(eventType);
        progressListenerCallbackExecutor.progressChanged(event);
    }
View Full Code Here

                fireProgressEvent(progressListenerCallbackExecutor, ProgressEvent.FAILED_EVENT_CODE);
                throw ace;
            }

            if (progressListenerCallbackExecutor != null) {
                ProgressEvent event = new ProgressEvent(endPosition - currentPosition + 1);
                progressListenerCallbackExecutor.progressChanged(event);
            }

            currentPosition += chunkSize;
        }
View Full Code Here

                if(!completed && failedException!=null){
                    throw failedException;
                }

                if (progressListenerCallbackExecutor != null) {
                ProgressEvent event = new ProgressEvent(length);
                progressListenerCallbackExecutor.progressChanged(event);
                }

                currentPosition += partSize;
            }
View Full Code Here

        }
    }

    private void fireProgressEvent(ProgressListenerCallbackExecutor listenerCallbackExecutor, int eventType) {
        if (listenerCallbackExecutor == null) return;
        ProgressEvent event = new ProgressEvent(0);
        event.setEventCode(eventType);
        listenerCallbackExecutor.progressChanged(event);
    }
View Full Code Here

     * @param eventType
     *            The type of event to fire.
     */
    private void fireProgressEvent(final ProgressListenerCallbackExecutor progressListenerCallbackExecutor, final int eventType) {
        if (progressListenerCallbackExecutor == null) return;
        ProgressEvent event = new ProgressEvent(0);
        event.setEventCode(eventType);
        progressListenerCallbackExecutor.progressChanged(event);
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.event.ProgressEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.