Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Jongman2012-06-06 09:40:47 -0400
committerWim Jongman2012-06-06 09:40:47 -0400
commit521d1838a8eecdb14f5f10e6a7461d0031408134 (patch)
treef5b1483c466e4d86a29a5dc05a2ef1ba0f05a034
parent737d7131fdb8879bb00518c16ceddf34e4dc9d99 (diff)
downloadorg.eclipse.ecf-521d1838a8eecdb14f5f10e6a7461d0031408134.tar.gz
org.eclipse.ecf-521d1838a8eecdb14f5f10e6a7461d0031408134.tar.xz
org.eclipse.ecf-521d1838a8eecdb14f5f10e6a7461d0031408134.zip
381849 - Bug in Election port selection
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.zookeeper/src/org/eclipse/ecf/provider/zookeeper/core/internal/Configuration.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.zookeeper/src/org/eclipse/ecf/provider/zookeeper/core/internal/Configuration.java b/providers/bundles/org.eclipse.ecf.provider.zookeeper/src/org/eclipse/ecf/provider/zookeeper/core/internal/Configuration.java
index 1c21fd895..d305c3b91 100644
--- a/providers/bundles/org.eclipse.ecf.provider.zookeeper/src/org/eclipse/ecf/provider/zookeeper/core/internal/Configuration.java
+++ b/providers/bundles/org.eclipse.ecf.provider.zookeeper/src/org/eclipse/ecf/provider/zookeeper/core/internal/Configuration.java
@@ -172,7 +172,8 @@ public class Configuration extends DefaultDiscoveryConfig {
}
public int getElectionPort() {
- return ((Integer) getConfigProperties().get(ZOOKEEPER_ELECTION_PORT));
+ return Integer.parseInt((String) getConfigProperties().get(
+ ZOOKEEPER_ELECTION_PORT));
}
public String getConfFile() {

Back to the top