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

Manik Surtani manik at jboss.org
Mon Apr 23 10:52:29 EDT 2007


  User: msurtani
  Date: 07/04/23 10:52:29

  Modified:    src/org/jboss/cache/statetransfer  StateTransferManager.java
  Log:
  Removed obsolete method (StateTransferManager.loadState()) and rewrote tests that depended on it.  Also javadoc'd BuddyManager static util methods.
  
  Revision  Changes    Path
  1.28      +3 -26     JBossCache/src/org/jboss/cache/statetransfer/StateTransferManager.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: StateTransferManager.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/statetransfer/StateTransferManager.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -b -r1.27 -r1.28
  --- StateTransferManager.java	17 Apr 2007 07:47:54 -0000	1.27
  +++ StateTransferManager.java	23 Apr 2007 14:52:29 -0000	1.28
  @@ -11,7 +11,6 @@
   import org.jboss.cache.CacheException;
   import org.jboss.cache.CacheImpl;
   import org.jboss.cache.Fqn;
  -import org.jboss.cache.Node;
   import org.jboss.cache.NodeSPI;
   import org.jboss.cache.config.Option;
   import org.jboss.cache.loader.CacheLoaderManager;
  @@ -120,28 +119,6 @@
      }
   
      /**
  -    * Requests state from each of the given source nodes in the cluster
  -    * until it gets it or no node replies with a timeout exception.  If state
  -    * is returned, integrates it into the given DataNode.  If no state is
  -    * returned but a node replies with a timeout exception, the calls will be
  -    * repeated with a longer timeout, until 3 attempts have been made.
  -    *
  -    * @param subtreeRoot     Fqn of the topmost node in the subtree whose
  -    *                        state should be transferred.
  -    * @param integrationRoot the DataNode into which state should be integrated
  -    * @param sources         the cluster nodes to query for state
  -    * @param cl              the classloader to use to unmarshal the state.
  -    *                        Can be <code>null</code>.
  -    * @throws Exception
  -    */
  -   public void loadState(Fqn subtreeRoot, Node integrationRoot,
  -                         Object[] sources, ClassLoader cl)
  -         throws Exception
  -   {
  -      cache.fetchPartialState(sources, subtreeRoot, integrationRoot.getFqn());
  -   }
  -
  -   /**
       * Set the portion of the cache rooted in <code>targetRoot</code>
       * to match the given state. Updates the contents of <code>targetRoot</code>
       * to reflect those in <code>new_state</code>.
  
  
  



More information about the jboss-cvs-commits mailing list