avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran...@apache.org
Subject cvs commit: jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/remote FtpStatisticsListenerAdapter.java FtpFileListenerAdapter.java FtpConnectionObserverAdapter.java
Date Sun, 31 Mar 2002 16:49:12 GMT
rana_b      02/03/31 08:49:12

  Modified:    ftpserver/src/java/org/apache/avalon/ftpserver/gui/remote
                        FtpStatisticsListenerAdapter.java
                        FtpFileListenerAdapter.java
                        FtpConnectionObserverAdapter.java
  Log:
  notification messages added
  
  Revision  Changes    Path
  1.2       +14 -2     jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/remote/FtpStatisticsListenerAdapter.java
  
  Index: FtpStatisticsListenerAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/remote/FtpStatisticsListenerAdapter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FtpStatisticsListenerAdapter.java	6 Mar 2002 14:00:47 -0000	1.1
  +++ FtpStatisticsListenerAdapter.java	31 Mar 2002 16:49:12 -0000	1.2
  @@ -83,8 +83,20 @@
        * Close it
        */
       public void close() {
  -        try {mStatistics.setListener(null);} catch(Exception ex) {}
  -        try {UnicastRemoteObject.unexportObject(this, true);}catch(Exception ex) {}
  +        System.out.println("Closing statistics listener...");
  +        try {
  +            mStatistics.setListener(null);
  +        } 
  +        catch(Exception ex) {
  +            //ex.printStackTrace();
  +        }
  +        
  +        try {
  +            UnicastRemoteObject.unexportObject(this, true);
  +        }
  +        catch(Exception ex) {
  +            //ex.printStackTrace();
  +        }
       }
       
   }    
  
  
  
  1.2       +14 -2     jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/remote/FtpFileListenerAdapter.java
  
  Index: FtpFileListenerAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/remote/FtpFileListenerAdapter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FtpFileListenerAdapter.java	6 Mar 2002 14:00:47 -0000	1.1
  +++ FtpFileListenerAdapter.java	31 Mar 2002 16:49:12 -0000	1.2
  @@ -61,8 +61,20 @@
        * Close it
        */
       public void close() {
  -        try { mStatistics.setFileListener(null); } catch(Exception ex) {}
  -        try { UnicastRemoteObject.unexportObject(this, true); }catch(Exception ex) {}
  +        System.out.println("Closing file listener...");
  +        try { 
  +            mStatistics.setFileListener(null); 
  +        } 
  +        catch(Exception ex) {
  +            //ex.printStackTrace();
  +        }
  +        
  +        try { 
  +            UnicastRemoteObject.unexportObject(this, true); 
  +        }
  +        catch(Exception ex) {
  +            //ex.printStackTrace();
  +        }
       } 
   }
       
  
  
  
  1.2       +14 -2     jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/remote/FtpConnectionObserverAdapter.java
  
  Index: FtpConnectionObserverAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/remote/FtpConnectionObserverAdapter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FtpConnectionObserverAdapter.java	6 Mar 2002 14:00:47 -0000	1.1
  +++ FtpConnectionObserverAdapter.java	31 Mar 2002 16:49:12 -0000	1.2
  @@ -62,8 +62,20 @@
        * Close it
        */
       public void close() {
  -        try { mConService.setObserver(null); } catch(Exception ex) {}
  -        try { UnicastRemoteObject.unexportObject(this, true); }catch(Exception ex) {}
  +        System.out.println("Closing connection listener...");
  +        try { 
  +            mConService.setObserver(null); 
  +        } 
  +        catch(Exception ex) {
  +            //ex.printStackTrace();
  +        }
  +        
  +        try { 
  +            UnicastRemoteObject.unexportObject(this, true); 
  +        }
  +        catch(Exception ex) {
  +            //ex.printStackTrace();
  +        }
       } 
   }
       
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message