[jboss-cvs] JBossAS SVN: r103604 - projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 6 21:18:35 EDT 2010


Author: bstansberry at jboss.com
Date: 2010-04-06 21:18:35 -0400 (Tue, 06 Apr 2010)
New Revision: 103604

Modified:
   projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/DistributedReplicantManager.java
Log:
[JBCLUSTER-264] Genericize DRM

Modified: projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/DistributedReplicantManager.java
===================================================================
--- projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/DistributedReplicantManager.java	2010-04-07 00:04:05 UTC (rev 103603)
+++ projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/DistributedReplicantManager.java	2010-04-07 01:18:35 UTC (rev 103604)
@@ -26,7 +26,6 @@
 import java.util.Collection;
 
 /** 
- *
  * DistributedReplicantManager is a service on top of {@link HAPartition} that provides a
  * cluster-wide distributed state which is node-specific. The DistributedReplicantManager (DRM) 
  * service provides a <String key, Serializable replicant> tuple map.  Each node in the cluster
@@ -84,7 +83,7 @@
        * @param merge         Is the change due to a merge (i.e. the healing of a 
        *                      cluster split)?
        */      
-      public void replicantsChanged(String key, List newReplicants, int newReplicantsViewId, boolean merge);
+      public void replicantsChanged(String key, List<Object> newReplicants, int newReplicantsViewId, boolean merge);
    }
 
    /**
@@ -93,6 +92,7 @@
     * @param subscriber The subscribing {@link ReplicantListener}
     */   
    public void registerListener(String key, ReplicantListener subscriber);
+   
    /**
     * Unsubscribe a {@link ReplicantListener listener} that had subscribed for replicant changes
     * @param key Name of the replicant, must be identical cluster-wide for all identical replicants
@@ -132,7 +132,7 @@
     *         for the given key. This list will be in the same order in all 
     *         nodes in the cluster.
     */
-   public List lookupReplicants(String key);
+   public List<Object> lookupReplicants(String key);
 
    /**
     * Return a list of the names of all nodes that have registered a replicant
@@ -141,12 +141,8 @@
     * @return A list of the node names of cluster nodes that have made available
     *         a replicant for the given key. This list will be in the same 
     *         order in all nodes in the cluster.
-    * @deprecated Replaced by {@link #lookupReplicantsNodes(String)} that 
-    *             returns a List of ClusterNode. Call 
-    *             {@link ClusterNode#getName()} on List entries to get same 
-    *             behavior. 
     */
-   @Deprecated public List lookupReplicantsNodeNames(String key);
+   public List<Object> lookupReplicantsNodeNames(String key);
    
    /**
     * Return a list of the {@link ClusterNode} objects for  all nodes that have 
@@ -163,7 +159,7 @@
     * @return A <code>Collection<String></code> of service names; i.e. the 
     *         <code>key</code>s passed to {@link #add(String, Serializable)}
     */
-   public Collection getAllServices ();
+   public Collection<String> getAllServices ();
 
    /**
     * Returns an id corresponding to the current view of this set of replicants.




More information about the jboss-cvs-commits mailing list