[jboss-cvs] JBossAS SVN: r104033 - in projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework: server and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Apr 15 22:44:48 EDT 2010
Author: bstansberry at jboss.com
Date: 2010-04-15 22:44:48 -0400 (Thu, 15 Apr 2010)
New Revision: 104033
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/server/HATarget.java
Log:
[JBCLUSTER-264] Reduce impact of genericizing 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-16 01:50:37 UTC (rev 104032)
+++ projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/interfaces/DistributedReplicantManager.java 2010-04-16 02:44:48 UTC (rev 104033)
@@ -83,7 +83,8 @@
* @param merge Is the change due to a merge (i.e. the healing of a
* cluster split)?
*/
- public void replicantsChanged(String key, List<Object> newReplicants, int newReplicantsViewId, boolean merge);
+ @SuppressWarnings("unchecked")
+ public void replicantsChanged(String key, List newReplicants, int newReplicantsViewId, boolean merge);
}
/**
@@ -132,7 +133,8 @@
* for the given key. This list will be in the same order in all
* nodes in the cluster.
*/
- public List<Object> lookupReplicants(String key);
+ @SuppressWarnings("unchecked")
+ public List lookupReplicants(String key);
/**
* Return a list of the names of all nodes that have registered a replicant
@@ -142,7 +144,7 @@
* a replicant for the given key. This list will be in the same
* order in all nodes in the cluster.
*/
- public List<Object> lookupReplicantsNodeNames(String key);
+ public List<String> lookupReplicantsNodeNames(String key);
/**
* Return a list of the {@link ClusterNode} objects for all nodes that have
Modified: projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HATarget.java
===================================================================
--- projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HATarget.java 2010-04-16 01:50:37 UTC (rev 104032)
+++ projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HATarget.java 2010-04-16 02:44:48 UTC (rev 104033)
@@ -259,7 +259,8 @@
// DistributedReplicantManager.ReplicantListener implementation ------------
- public void replicantsChanged(String key, List<Object> newReplicants, int newReplicantsViewId, boolean merge)
+ @SuppressWarnings("unchecked")
+ public void replicantsChanged(String key, List newReplicants, int newReplicantsViewId, boolean merge)
{
log.debug("replicantsChanged '" + replicantName +
"' to " + (newReplicants==null? "0 (null)" : Integer.toString (newReplicants.size() ) ) +
More information about the jboss-cvs-commits
mailing list