Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 75   Methods: 9
NCLOC: 44   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
RPCManagerImpl.java - 87.5% 88.9% 88.2%
coverage coverage
 1    /*
 2    * JBoss, Home of Professional Open Source
 3    *
 4    * Distributable under LGPL license.
 5    * See terms of license at gnu.org.
 6    */
 7    package org.jboss.cache;
 8   
 9    import org.jboss.cache.marshall.MethodCall;
 10    import org.jgroups.Address;
 11   
 12    import java.lang.reflect.Method;
 13    import java.util.List;
 14   
 15    /**
 16    * Manager that handles all RPC calls between JBoss Cache instances
 17    *
 18    * @author <a href="mailto:manik@jboss.org">Manik Surtani (manik@jboss.org)</a>
 19    */
 20    public class RPCManagerImpl implements RPCManager
 21    {
 22    private CacheImpl c;
 23   
 24    /**
 25    * Empty ctor for mock object creation/unit testing
 26    */
 27  4 public RPCManagerImpl()
 28    {
 29    }
 30   
 31  1106 public RPCManagerImpl(CacheSPI c)
 32    {
 33  1106 this.c = (CacheImpl) c;
 34    }
 35   
 36    // for now, we delegate RPC calls to deprecated methods in CacheImpl.
 37   
 38  120089 public List callRemoteMethods(List<Address> recipients, MethodCall methodCall, int mode, boolean excludeSelf, long timeout) throws Exception
 39    {
 40  120089 return c.callRemoteMethods(recipients, methodCall, mode, excludeSelf, timeout);
 41    }
 42   
 43  10 public boolean isCoordinator()
 44    {
 45  10 return c.isCoordinator();
 46    }
 47   
 48  0 public Address getCoordinator()
 49    {
 50  0 return c.getCoordinator();
 51    }
 52   
 53  628 public List callRemoteMethods(List<Address> recipients, MethodCall methodCall, boolean synchronous, boolean excludeSelf, int timeout) throws Exception
 54    {
 55  628 return c.callRemoteMethods(recipients, methodCall, synchronous, excludeSelf, timeout);
 56    }
 57   
 58  113266 public List callRemoteMethods(List<Address> recipients, Method method, Object[] arguments, boolean synchronous, boolean excludeSelf, long timeout) throws Exception
 59    {
 60  113266 return c.callRemoteMethods(recipients, method, arguments, synchronous, excludeSelf, timeout);
 61    }
 62   
 63  4 public void setCache(CacheSPI c)
 64    {
 65  4 this.c = (CacheImpl) c;
 66    }
 67   
 68    /**
 69    * @return Returns the replication queue (if one is used), null otherwise.
 70    */
 71  10771 public ReplicationQueue getReplicationQueue()
 72    {
 73  10771 return c.getReplicationQueue();
 74    }
 75    }