001package jmaster.jumploader.model.api.upload; 002 003/** 004 * IUploadThreadListener 005 * 006 * @author timur 007 */ 008 009public interface IUploadThreadListener { 010 //--------------------------------------------------------------- 011 // constants 012 //--------------------------------------------------------------- 013 //--------------------------------------------------------------- 014 // business methods 015 //--------------------------------------------------------------- 016 /** 017 * upload thread started 018 */ 019 public void uploadThreadStarted( IUploadThread ut ); 020 /** 021 * upload of file started 022 */ 023 public void uploadThreadUploadStarted( IUploadThread ut, IUploadFile uf ); 024 /** 025 * upload of file finished (the file is still valid) 026 */ 027 public void uploadThreadUploadFinished( IUploadThread ut, IUploadFile uf ); 028 /** 029 * upload thread finished 030 * @param error an error occured, if any 031 */ 032 public void uploadThreadFinished( IUploadThread ut, Exception error ); 033 /** 034 * partition uploaded 035 */ 036 public void uploadThreadPartitionUploaded(IUploadThread ut); 037}