use of com.hazelcast.config.RestServerEndpointConfig in project hazelcast by hazelcast.
the class RestInstanceMultiendpointTest method createConfigWithRestEnabled.
@Override
protected Config createConfigWithRestEnabled() {
Config config = createConfig();
config.getAdvancedNetworkConfig().setRestEndpointConfig(new RestServerEndpointConfig().enableGroups(RestEndpointGroup.CLUSTER_READ));
return config;
}
use of com.hazelcast.config.RestServerEndpointConfig in project hazelcast by hazelcast.
the class AbstractAdvancedNetworkIntegrationTest method createRestServerSocketConfig.
protected RestServerEndpointConfig createRestServerSocketConfig(int port, String name) {
RestServerEndpointConfig serverSocketConfig = new RestServerEndpointConfig();
serverSocketConfig.setPort(port);
serverSocketConfig.getInterfaces().addInterface("127.0.0.1");
if (name != null) {
serverSocketConfig.setName(name);
}
serverSocketConfig.enableAllGroups();
return serverSocketConfig;
}
Aggregations