[jboss-cvs] JBossAS SVN: r67723 - trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Dec 1 17:24:39 EST 2007
Author: bstansberry at jboss.com
Date: 2007-12-01 17:24:38 -0500 (Sat, 01 Dec 2007)
New Revision: 67723
Modified:
trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/DRMTestCase.java
Log:
[JBAS-5019] Turn ClusterNode into an interface
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/DRMTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/DRMTestCase.java 2007-12-01 22:23:31 UTC (rev 67722)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/DRMTestCase.java 2007-12-01 22:24:38 UTC (rev 67723)
@@ -45,6 +45,7 @@
import org.jboss.ha.framework.interfaces.ClusterNode;
import org.jboss.ha.framework.interfaces.DistributedReplicantManager;
import org.jboss.ha.framework.interfaces.DistributedReplicantManager.ReplicantListener;
+import org.jboss.ha.framework.server.ClusterNodeImpl;
import org.jboss.ha.framework.server.ClusterPartition;
import org.jboss.ha.framework.server.ClusterPartitionConfig;
import org.jboss.ha.framework.server.DistributedReplicantManagerImpl;
@@ -831,7 +832,7 @@
MBeanServer mbeanServer =
MBeanServerFactory.createMBeanServer("mockPartition");
try {
- ClusterNode localAddress = new ClusterNode(new IpAddress("127.0.0.1", 12345));
+ ClusterNode localAddress = new ClusterNodeImpl(new IpAddress("127.0.0.1", 12345));
MockHAPartition partition = new MockHAPartition(localAddress);
DistributedReplicantManagerImpl drm = new DistributedReplicantManagerImpl();
@@ -843,7 +844,7 @@
Vector remoteAddresses = new Vector();
for (int i = 1; i < 5; i++)
- remoteAddresses.add(new ClusterNode(new IpAddress("127.0.0.1", 12340 + i)));
+ remoteAddresses.add(new ClusterNodeImpl(new IpAddress("127.0.0.1", 12340 + i)));
Vector allNodes = new Vector(remoteAddresses);
allNodes.add(localAddress);
@@ -936,7 +937,7 @@
MBeanServer mbeanServer =
MBeanServerFactory.createMBeanServer("mockPartition");
try {
- ClusterNode localAddress = new ClusterNode(new IpAddress("127.0.0.1", 12345));
+ ClusterNode localAddress = new ClusterNodeImpl(new IpAddress("127.0.0.1", 12345));
MockHAPartition partition = new MockHAPartition(localAddress);
DistributedReplicantManagerImpl drm = new DistributedReplicantManagerImpl();
@@ -948,7 +949,7 @@
Vector remoteAddresses = new Vector();
for (int i = 1; i < 5; i++)
- remoteAddresses.add(new ClusterNode(new IpAddress("127.0.0.1", 12340 + i)));
+ remoteAddresses.add(new ClusterNodeImpl(new IpAddress("127.0.0.1", 12340 + i)));
Vector allNodes = new Vector(remoteAddresses);
allNodes.add(localAddress);
@@ -1055,7 +1056,7 @@
MBeanServer mbeanServer =
MBeanServerFactory.createMBeanServer("mockPartition");
try {
- ClusterNode localAddress = new ClusterNode(new IpAddress("127.0.0.1", 12345));
+ ClusterNode localAddress = new ClusterNodeImpl(new IpAddress("127.0.0.1", 12345));
MockHAPartition partition = new MockHAPartition(localAddress);
DistributedReplicantManagerImpl drm = new DistributedReplicantManagerImpl();
@@ -1066,7 +1067,7 @@
// Create a fake view for the MockHAPartition
Vector remoteAddresses = new Vector();
- ClusterNode remote = new ClusterNode(new IpAddress("127.0.0.1", 12341));
+ ClusterNode remote = new ClusterNodeImpl(new IpAddress("127.0.0.1", 12341));
remoteAddresses.add(remote);
Vector allNodes = new Vector(remoteAddresses);
@@ -1232,7 +1233,7 @@
Vector allNodes = new Vector();
for (int i = 0; i < nodes.length; i++)
{
- nodes[i] = new ClusterNode(new IpAddress("127.0.0.1", 12340 + i));
+ nodes[i] = new ClusterNodeImpl(new IpAddress("127.0.0.1", 12340 + i));
allNodes.add(nodes[i]);
names[i] = nodes[i].getName();
replicants[i] = new Integer(i);
More information about the jboss-cvs-commits
mailing list