Package com.emc.esu.api

Examples of com.emc.esu.api.ProgressListener


                // ignore
                l4j.warn("Error closing stream", e1);
            }
        }
        for (Iterator<ProgressListener> i = listeners.iterator(); i.hasNext();) {
            ProgressListener pl = i.next();
            pl.onError(e);
        }
    }
View Full Code Here


                // ignore
                l4j.warn("Error closing stream", e);
            }
        }
        for (Iterator<ProgressListener> i = listeners.iterator(); i.hasNext();) {
            ProgressListener pl = i.next();
            pl.onComplete();
        }
    }
View Full Code Here

     * @param size
     */
    private void progress(int size) {
        currentBytes += size;
        for (Iterator<ProgressListener> i = listeners.iterator(); i.hasNext();) {
            ProgressListener pl = i.next();
            pl.onProgress(currentBytes, totalBytes);
        }
    }
View Full Code Here

     * @param bytes the number of bytes transferred
     */
    private void progress(long bytes) {
        this.currentBytes += bytes;
        for (Iterator<ProgressListener> i = listeners.iterator(); i.hasNext();) {
            ProgressListener pl = i.next();
            pl.onProgress(currentBytes, totalBytes);
        }
    }
View Full Code Here

                l4j.warn("Error closing output stream", e);
            }
        }

        for (Iterator<ProgressListener> i = listeners.iterator(); i.hasNext();) {
            ProgressListener pl = i.next();
            pl.onComplete();
        }
    }
View Full Code Here

     */
    private void fail(Exception e) {
        this.failed = true;
        this.error = e;
        for (Iterator<ProgressListener> i = listeners.iterator(); i.hasNext();) {
            ProgressListener pl = i.next();
            pl.onError(e);
        }

    }
View Full Code Here

TOP

Related Classes of com.emc.esu.api.ProgressListener

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.