User: slaboure
Date: 02/02/27 03:05:24
Modified: src/main/org/jboss/ha/framework/interfaces
DistributedReplicantManager.java
Log:
- added new "intra-view id" to detect changes even when no modification in the
cluster occurs (e.g. only an app is undeployed)
- changed ArrayList to List in interface
Revision Changes Path
1.6 +19 -4
jbossmx/src/main/org/jboss/ha/framework/interfaces/DistributedReplicantManager.java
Index: DistributedReplicantManager.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/interfaces/DistributedReplicantManager.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DistributedReplicantManager.java 12 Jan 2002 16:52:52 -0000 1.5
+++ DistributedReplicantManager.java 27 Feb 2002 11:05:23 -0000 1.6
@@ -9,14 +9,14 @@
import
org.jboss.ha.framework.interfaces.DistributedReplicantManager.ReplicantListener;
import java.io.Serializable;
-import java.util.ArrayList;
+import java.util.List;
import java.util.Collection;
/**
*
* @author <a href="mailto:[EMAIL PROTECTED]">Bill Burke</a>.
* @author <a href="mailto:[EMAIL PROTECTED]">Sacha Labourey</a>.
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*
* <p><b>Revisions:</b><br>
* <p><b>2001/10/31: marcf</b>
@@ -36,8 +36,9 @@
* Callback called when the content/list of replicant for a given replicant
key has changed
* @param key The name of the key of the replicant that has changed
* @param newReplicants The list of new replicants for the give replicant key
+ * @param newReplicantsViewId The new replicant view id corresponding to this
change
*/
- public void replicantsChanged(String key, ArrayList newReplicants);
+ public void replicantsChanged(String key, List newReplicants, int
newReplicantsViewId);
}
/**
@@ -83,12 +84,26 @@
* @param key The replicant name
* @return An array of serialized replicants available around the cluster for
the given key
*/
- public ArrayList lookupReplicants(String key);
+ public List lookupReplicants(String key);
+
+ /**
+ * Return a list of all replicants node names.
+ * @param key The replicant name
+ * @return An array of replicants node names available around the cluster for
the given key
+ */
+ public List lookupReplicantsNodeNames(String key);
/**
* Return a list of all services that have a least one replicant.
* @return A collection of services names (String)
*/
public Collection getAllServices ();
+
+ /**
+ * Returns an id corresponding to the current view of this set of replicants.
+ * @param key The replicant name
+ * @return A view id (doesn't grow sequentially)
+ */
+ public int getReplicantsViewId(String key);
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development