Browse code

Chore: allow less logs when running in eclipse with hz-bind-any = false

Thomas Cataldo authored on 04/07/2018 06:55:55
Showing 1 changed files
... ...
@@ -35,6 +35,7 @@ import com.hazelcast.internal.diagnostics.HealthMonitorLevel;
35 35
 import com.hazelcast.spi.properties.GroupProperty;
36 36
 import com.hazelcast.topic.TopicOverloadPolicy;
37 37
 
38
+import net.bluemind.config.BmIni;
38 39
 import net.bluemind.eclipse.common.RunnableExtensionLoader;
39 40
 import net.bluemind.hornetq.client.IHazelcastConfigPimp;
40 41
 import net.bluemind.hornetq.client.MQ;
... ...
@@ -50,6 +51,10 @@ public final class ClusterMember extends ClusterNode {
50 50
 
51 51
 		cfg.setInstanceName(jvmType + "-" + UUID.randomUUID().toString());
52 52
 		cfg.setProperty("hazelcast.logging.type", "slf4j");
53
+		if (BmIni.value("hz-bind-any") != null) {
54
+			cfg.setProperty("hazelcast.socket.bind.any", BmIni.value("hz-bind-any"));
55
+			cfg.setProperty("hazelcast.socket.client.bind.any", BmIni.value("hz-bind-any"));
56
+		}
53 57
 		cfg.setProperty(GroupProperty.HEALTH_MONITORING_LEVEL.getName(), HealthMonitorLevel.OFF.name());
54 58
 		GroupConfig gc = new GroupConfig(MQ.CLUSTER_ID);
55 59
 		cfg.setGroupConfig(gc);