[jboss-cvs] JBossCache/src/org/jboss/cache/rpc ...

Manik Surtani msurtani at jboss.com
Thu Jan 4 00:35:40 EST 2007


  User: msurtani
  Date: 07/01/04 00:35:40

  Modified:    src/org/jboss/cache/rpc  RpcTreeCache.java
  Log:
  Major changes around nodes, and the way they interact with the interceptor stack.
  Also removed redundant methods in NodeSPI and removed the need for casting to NodeSPI in most cases.
  
  Revision  Changes    Path
  1.13      +4 -3      JBossCache/src/org/jboss/cache/rpc/RpcTreeCache.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: RpcTreeCache.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/rpc/RpcTreeCache.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- RpcTreeCache.java	30 Dec 2006 17:50:06 -0000	1.12
  +++ RpcTreeCache.java	4 Jan 2007 05:35:40 -0000	1.13
  @@ -4,7 +4,6 @@
   import org.jboss.cache.config.Configuration;
   import org.jboss.cache.marshall.MethodCall;
   import org.jboss.cache.marshall.MethodCallFactory;
  -import org.jgroups.Address;
   import org.jgroups.JChannel;
   
   import java.lang.reflect.Method;
  @@ -36,7 +35,7 @@
    * @deprecated This class will be removed when JGroups adds a multiplexing
    *             capability.
    */
  -public class RpcTreeCache extends CacheImpl //implements RpcTreeCacheMBean // TODO; Sort out proper JMX interfaces
  +public class RpcTreeCache extends CacheImpl//implements RpcTreeCacheMBean // TODO; Sort out proper JMX interfaces
   {
   
      /**
  @@ -171,8 +170,10 @@
                  // Make the call locally and add a valid response to result list
                  Object resp = _dispatchRpcCall(serviceName, method_call);
                  if ((resp instanceof NoHandlerForRPCException) == false)
  +               {
                     responses.add(_dispatchRpcCall(serviceName, method_call));
               }
  +            }
               // else just return an empty list
   
            }
  @@ -318,7 +319,7 @@
   
            log.trace(msg);
   
  -         return new NoHandlerForRPCException(msg, (Address) getLocalAddress());
  +         return new NoHandlerForRPCException(msg, getLocalAddress());
         }
   
         try
  
  
  



More information about the jboss-cvs-commits mailing list