jakarta-jcs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asm...@apache.org
Subject cvs commit: jakarta-turbine-jcs/src/java/org/apache/jcs/auxiliary/remote RemoteCache.java RemoteCacheManager.java
Date Fri, 20 May 2005 19:26:55 GMT
asmuts      2005/05/20 12:26:55

  Modified:    src/java/org/apache/jcs/auxiliary/remote RemoteCache.java
                        RemoteCacheManager.java
  Log:
  improved logging a  bit
  
  Revision  Changes    Path
  1.16      +4 -3      jakarta-turbine-jcs/src/java/org/apache/jcs/auxiliary/remote/RemoteCache.java
  
  Index: RemoteCache.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-jcs/src/java/org/apache/jcs/auxiliary/remote/RemoteCache.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- RemoteCache.java	27 Jan 2005 22:40:43 -0000	1.15
  +++ RemoteCache.java	20 May 2005 19:26:55 -0000	1.16
  @@ -72,7 +72,7 @@
        * a remote cache server.  One of these exists for each region.  This also holds
        * a reference to a listener.  The same listener is used for all regions for one
        * remote server.  Holding a reference to the listener allows this object to
  -     * know the listener id assigned byt he remote cache.
  +     * know the listener id assigned by the remote cache.
        * 
        * @param cattr
        * @param remote
  @@ -90,6 +90,7 @@
           {
               log.debug( "Construct> cacheName=" + cattr.getCacheName() );
               log.debug( "irca = " + irca );
  +            log.debug( "remote = " + remote );
               log.debug( "listener = " + listener );
           }
   
  @@ -522,8 +523,8 @@
       private void handleException( Exception ex, String msg ) throws IOException
       {
           log.error( "Disabling remote cache due to error " + msg );
  -        //log.error(ex);
  -        log.error( ex.toString() );
  +        log.error(ex);
  +        //log.error( ex.toString() );
           
           remote = new ZombieRemoteCacheService();
           // may want to flush if region specifies
  
  
  
  1.11      +6 -1      jakarta-turbine-jcs/src/java/org/apache/jcs/auxiliary/remote/RemoteCacheManager.java
  
  Index: RemoteCacheManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-jcs/src/java/org/apache/jcs/auxiliary/remote/RemoteCacheManager.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- RemoteCacheManager.java	27 Jan 2005 22:40:43 -0000	1.10
  +++ RemoteCacheManager.java	20 May 2005 19:26:55 -0000	1.11
  @@ -104,6 +104,11 @@
               }
               // Successful connection to the remote server.
               remoteService = ( IRemoteCacheService ) obj;
  +            if ( log.isDebugEnabled() )
  +            {
  +                log.debug( "remoteService = " + remoteService );
  +            }            
  +            
               remoteWatch = new RemoteCacheWatchRepairable();
               remoteWatch.setCacheWatch( ( IRemoteCacheObserver ) obj );
           }
  @@ -111,7 +116,7 @@
           {
               // Failed to connect to the remote server.
               // Configure this RemoteCacheManager instance to use the "zombie" services.
  -            log.error( ex.getMessage() );
  +            log.error( "Problem finding server at [" + registry +"]", ex );
               remoteService = new ZombieRemoteCacheService();
               remoteWatch = new RemoteCacheWatchRepairable();
               remoteWatch.setCacheWatch( new ZombieRemoteCacheWatch() );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org


Mime
View raw message