jakarta-jcs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asm...@apache.org
Subject svn commit: r280253 - /jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestTCPLateral.java
Date Mon, 12 Sep 2005 04:28:10 GMT
Author: asmuts
Date: Sun Sep 11 21:28:01 2005
New Revision: 280253

URL: http://svn.apache.org/viewcvs?rev=280253&view=rev
Log:
Refactoring lateral manager and factory.  The old model was to have one factory
and mananger know about all types of lateral.  This created too many dependencies 
and forced lots of ad hoc logic into the managers.  The new model will have
each lateral responsible for its own factory and manager.  This keeps things clean
and will allow laterals to ahve their own configuration settings.  The old
attributes object had stuff for every lateral, but only a small subset applied
to any given lateral.  This is a work in progress but it is almost done.  

The new cache.ccf config for laterals will not be backward compatible, but the 
changes will be minor.  When it is done the version will be 1.3.  After more 
testing, this will be the release candidate major version.

I'm moving the javagroups stuff into to jdk1.4 specific jar.  

The refactoring should be done in a few days.  This will allow us to release a 1.3 core library
and a 1.4 extension jar.  

Modified:
    jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestTCPLateral.java

Modified: jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestTCPLateral.java
URL: http://svn.apache.org/viewcvs/jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestTCPLateral.java?rev=280253&r1=280252&r2=280253&view=diff
==============================================================================
--- jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestTCPLateral.java
(original)
+++ jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestTCPLateral.java
Sun Sep 11 21:28:01 2005
@@ -3,9 +3,7 @@
 import junit.framework.TestCase;
 
 import org.apache.jcs.JCS;
-import org.apache.jcs.auxiliary.AuxiliaryCache;
 import org.apache.jcs.auxiliary.lateral.LateralCacheAttributes;
-import org.apache.jcs.auxiliary.lateral.LateralCacheFactory;
 import org.apache.jcs.auxiliary.lateral.LateralElementDescriptor;
 import org.apache.jcs.auxiliary.lateral.behavior.ILateralCacheAttributes;
 import org.apache.jcs.engine.CacheElement;
@@ -85,7 +83,7 @@
         CompositeCacheManagerMockImpl cacheMgr = new CompositeCacheManagerMockImpl();
         System.out.println( "mock cache = " + cacheMgr.getCache( "test" ) );
 
-        LateralCacheFactory fact = new LateralCacheFactory();
+        LateralTCPCacheFactory fact = new LateralTCPCacheFactory();
         //.getInstance( lattr, cacheMgr );
         //LateralCacheNoWait nwait1 = (LateralCacheNoWait)lcMgr1.getCache(
         // "test" );
@@ -93,6 +91,10 @@
 
         //nowait1.update( );
 
+        // start the listener
+        LateralTCPListener listener = (LateralTCPListener) LateralTCPListener.getInstance(
lattr, cacheMgr );
+
+        
         ILateralCacheAttributes lattr2 = new LateralCacheAttributes();
         lattr2.setTcpListenerPort( 1102 );
         lattr2.setTransmissionTypeName( "TCP" );



---------------------------------------------------------------------
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