asmuts      02/01/21 21:31:41

  Modified:    src/java/org/apache/stratum/jcs/auxiliary/remote/server
                        RemoteCacheServer.java
               src/conf remote.cache2.ccf remote.cache.ccf
  Log:
  no message
  
  Revision  Changes    Path
  1.6       +19 -0     
jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/remote/server/RemoteCacheServer.java
  
  Index: RemoteCacheServer.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/remote/server/RemoteCacheServer.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- RemoteCacheServer.java    21 Jan 2002 22:38:53 -0000      1.5
  +++ RemoteCacheServer.java    22 Jan 2002 05:31:41 -0000      1.6
  @@ -54,6 +54,12 @@
        *  Description of the Field
        */
       protected final static boolean debug = false;
  +
  +    /**
  +     *  Description of the Field
  +     */
  +    protected final static boolean timing = true;
  +
       //true;
       /**
        *  Description of the Field
  @@ -252,6 +258,12 @@
           throws IOException
       {
   
  +        long start = 0;
  +        if ( timing )
  +        {
  +            start = System.currentTimeMillis();
  +        }
  +
           if ( debugactivity )
           {
               puts++;
  @@ -353,6 +365,13 @@
           {
               log.error( e );
           }
  +
  +        if ( timing )
  +        {
  +            long end = System.currentTimeMillis();
  +            this.p1( "put took " + String.valueOf( end - start ) + " ms." );
  +        }
  +
           return;
       }
   
  
  
  
  1.6       +1 -1      jakarta-turbine-stratum/src/conf/remote.cache2.ccf
  
  Index: remote.cache2.ccf
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-stratum/src/conf/remote.cache2.ccf,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- remote.cache2.ccf 21 Jan 2002 22:38:53 -0000      1.5
  +++ remote.cache2.ccf 22 Jan 2002 05:31:41 -0000      1.6
  @@ -27,7 +27,7 @@
   
   ##############################################################
   ################## CACHE REGIONS AVAILABLE ###################
  -jcs.region.testCache1=DC,RCluster1
  +jcs.region.testCache1=DC,RCluster1,RCluster2
   
jcs.region.testCache1.cacheattributes=org.apache.stratum.jcs.engine.CompositeCacheAttributes
   jcs.region.testCache1.cacheattributes.MaxObjects=1000
   
  
  
  
  1.7       +1 -1      jakarta-turbine-stratum/src/conf/remote.cache.ccf
  
  Index: remote.cache.ccf
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-stratum/src/conf/remote.cache.ccf,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- remote.cache.ccf  21 Jan 2002 22:38:53 -0000      1.6
  +++ remote.cache.ccf  22 Jan 2002 05:31:41 -0000      1.7
  @@ -15,7 +15,7 @@
   ##############################################################
   ################## DEFAULT CACHE REGION  #####################
   # sets the default aux value for any non configured caches
  -jcs.default=DC,RCluster1
  +jcs.default=DC,RCluster1,RCluster2
   jcs.default.cacheattributes=org.apache.stratum.jcs.engine.CompositeCacheAttributes
   jcs.default.cacheattributes.MaxObjects=1000
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to