use of com.hazelcast.config.ServerSocketEndpointConfig in project hazelcast by hazelcast.
the class AdvancedNetworkClientIntegrationTest method getConfig.
private Config getConfig() {
Config config = smallInstanceConfig();
config.getAdvancedNetworkConfig().setEnabled(true).setClientEndpointConfig(new ServerSocketEndpointConfig().setPort(BASE_CLIENT_PORT));
config.getAdvancedNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
config.getAdvancedNetworkConfig().getJoin().getTcpIpConfig().setEnabled(true).addMember("127.0.0.1");
return config;
}
use of com.hazelcast.config.ServerSocketEndpointConfig in project hazelcast by hazelcast.
the class MemcachedMultiendpointTest method createConfig.
@Override
protected Config createConfig() {
Config config = smallInstanceConfig();
AdvancedNetworkConfig anc = config.getAdvancedNetworkConfig();
anc.setEnabled(true).setMemcacheEndpointConfig(new ServerSocketEndpointConfig());
// Join is disabled intentionally. will start standalone HazelcastInstances.
JoinConfig join = anc.getJoin();
join.getAutoDetectionConfig().setEnabled(false);
join.getTcpIpConfig().setEnabled(false);
return config;
}
use of com.hazelcast.config.ServerSocketEndpointConfig in project hazelcast by hazelcast.
the class InvalidEndpointTest method createMemcacheEndpointConfig.
protected Config createMemcacheEndpointConfig() {
ServerSocketEndpointConfig endpointConfig = new ServerSocketEndpointConfig();
endpointConfig.setName("Text").setPort(10000).setPortAutoIncrement(true);
Config config = new Config();
config.getAdvancedNetworkConfig().setMemcacheEndpointConfig(endpointConfig).setEnabled(true);
return config;
}
use of com.hazelcast.config.ServerSocketEndpointConfig in project hazelcast by hazelcast.
the class AbstractAdvancedNetworkIntegrationTest method createServerSocketConfig.
protected ServerSocketEndpointConfig createServerSocketConfig(int port, String name) {
ServerSocketEndpointConfig serverSocketConfig = new ServerSocketEndpointConfig();
serverSocketConfig.setPort(port);
serverSocketConfig.getInterfaces().addInterface("127.0.0.1");
if (name != null) {
serverSocketConfig.setName(name);
}
return serverSocketConfig;
}
use of com.hazelcast.config.ServerSocketEndpointConfig in project hazelcast by hazelcast.
the class DelegatingAddressPickerTest method createAdvancedNetworkConfig.
private Config createAdvancedNetworkConfig() {
Config config = new Config();
config.getAdvancedNetworkConfig().setEnabled(true);
config.getAdvancedNetworkConfig().getMemberAddressProviderConfig().setEnabled(true).setImplementation(new AnAddressProvider());
config.getAdvancedNetworkConfig().setMemberEndpointConfig(new ServerSocketEndpointConfig().setPort(3000));
config.getAdvancedNetworkConfig().setClientEndpointConfig(new ServerSocketEndpointConfig().setPort(3001));
config.getAdvancedNetworkConfig().setRestEndpointConfig(new RestServerEndpointConfig().setPort(3002));
config.getAdvancedNetworkConfig().addWanEndpointConfig(new ServerSocketEndpointConfig().setName("wan1").setPort(3003));
return config;
}
Aggregations