[jboss-cvs] JBossAS SVN: r88778 - trunk/cluster/src/main/org/jboss/ha/framework/server.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed May 13 01:49:01 EDT 2009


Author: bela at jboss.com
Date: 2009-05-13 01:49:00 -0400 (Wed, 13 May 2009)
New Revision: 88778

Modified:
   trunk/cluster/src/main/org/jboss/ha/framework/server/JChannelFactory.java
Log:
Converted use of Map<String,ProtocolParameter> to Map<String,String>
(https://jira.jboss.org/jira/browse/JBCLUSTER-236)

Modified: trunk/cluster/src/main/org/jboss/ha/framework/server/JChannelFactory.java
===================================================================
--- trunk/cluster/src/main/org/jboss/ha/framework/server/JChannelFactory.java	2009-05-13 04:54:24 UTC (rev 88777)
+++ trunk/cluster/src/main/org/jboss/ha/framework/server/JChannelFactory.java	2009-05-13 05:49:00 UTC (rev 88778)
@@ -56,6 +56,7 @@
 import org.jgroups.conf.ConfiguratorFactory;
 import org.jgroups.conf.ProtocolData;
 import org.jgroups.conf.ProtocolStackConfigurator;
+import org.jgroups.conf.ProtocolParameter;
 import org.jgroups.jmx.JmxConfigurator;
 import org.jgroups.protocols.TP;
 import org.jgroups.stack.IpAddress;
@@ -809,7 +810,10 @@
       {
          ProtocolData[] protocols=config.getProtocolStack();
          ProtocolData transport=protocols[0];
-         tpProps = transport.getParameters();
+         Map<String,ProtocolParameter> tmp=transport.getParameters();
+         tpProps = new HashMap<String,String>();
+         for(Map.Entry<String,ProtocolParameter> entry: tmp.entrySet())
+             tpProps.put(entry.getKey(), entry.getValue().getValue());
       }
       catch (UnsupportedOperationException uoe)
       {
@@ -839,7 +843,10 @@
       {
          ProtocolData[] protocols=orig.getProtocolStack();
          ProtocolData transport=protocols[0];
-         Map<String, String> tpProps = transport.getParameters();
+         Map<String,ProtocolParameter> tmp=transport.getParameters();
+         Map<String,String> tpProps = new HashMap<String,String>();
+         for(Map.Entry<String,ProtocolParameter> entry: tmp.entrySet())
+             tpProps.put(entry.getKey(), entry.getValue().getValue());
          tpProps.put(Global.SINGLETON_NAME, singletonName);
          // we've now updated the state of orig; just return it
          result = orig;




More information about the jboss-cvs-commits mailing list