Fixed the configuration of HZ for local tests to avoid multicast preferring tcp local address

This commit is contained in:
andsel
2016-09-12 17:49:40 +02:00
parent 4790325f0e
commit 5efad350d8
3 changed files with 17 additions and 5 deletions
@@ -15,7 +15,7 @@ public class HazelcastInterceptHandler extends AbstractInterceptHandler {
private static final Logger LOG = LoggerFactory.getLogger(HazelcastInterceptHandler.class);
private final HazelcastInstance hz;
public HazelcastInterceptHandler (Server server){
public HazelcastInterceptHandler(Server server){
this.hz = server.getHazelcastInstance();
}
@@ -21,9 +21,6 @@ import java.util.Properties;
import static org.junit.Assert.assertEquals;
/**
* Created by mackristof on 13/05/2016.
*/
public class ServerIntegrationHazelcastHandlerInterceptorTest{
private static final Logger LOG = LoggerFactory.getLogger(ServerIntegrationHazelcastHandlerInterceptorTest.class);
+16 -1
View File
@@ -3,8 +3,23 @@
http://www.hazelcast.com/schema/config/hazelcast-config-3.5.xsd"
xmlns="http://www.hazelcast.com/schema/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<properties>
<property name="hazelcast.logging.type">log4j</property>
</properties>
<network>
<join><multicast enabled="true"/></join>
<port auto-increment="true">5701</port>
<join>
<multicast enabled="false"/>
<tcp-ip enabled="true">
<interface>127.0.0.1</interface>
</tcp-ip>
</join>
<interfaces enabled="true">
<interface>127.0.0.*</interface>
</interfaces>
<ssl enabled="false"/>
<socket-interceptor enabled="false"/>
</network>
</hazelcast>