use of com.hazelcast.config.RestApiConfig in project hazelcast by hazelcast.
the class RESTClientPhoneHomeTest method createConfigWithRestEnabled.
protected Config createConfigWithRestEnabled() {
Config config = createConfig();
RestApiConfig restApiConfig = new RestApiConfig().setEnabled(true).enableAllGroups();
config.getNetworkConfig().setRestApiConfig(restApiConfig);
return config;
}
use of com.hazelcast.config.RestApiConfig in project hazelcast by hazelcast.
the class MemberDomConfigProcessor method handleEndpointGroup.
void handleEndpointGroup(Node node, String name) {
boolean enabled = getBooleanValue(getAttribute(node, "enabled"));
RestEndpointGroup endpointGroup = lookupEndpointGroup(name);
RestApiConfig restApiConfig = config.getNetworkConfig().getRestApiConfig();
if (enabled) {
restApiConfig.enableGroups(endpointGroup);
} else {
restApiConfig.disableGroups(endpointGroup);
}
}
use of com.hazelcast.config.RestApiConfig in project hazelcast by hazelcast.
the class RestClusterBadRequestTest method getConfig.
@Override
protected Config getConfig() {
Config config = smallInstanceConfig();
RestApiConfig restApiConfig = config.getNetworkConfig().getRestApiConfig();
restApiConfig.setEnabled(true);
restApiConfig.enableAllGroups();
JoinConfig joinConfig = config.getNetworkConfig().getJoin();
joinConfig.getMulticastConfig().setEnabled(false);
joinConfig.getTcpIpConfig().setEnabled(true).addMember("127.0.0.1");
return config;
}
use of com.hazelcast.config.RestApiConfig in project hazelcast by hazelcast.
the class RestInstanceTest method createConfigWithRestEnabledAndClusterReadDisabled.
protected Config createConfigWithRestEnabledAndClusterReadDisabled() {
Config config = createConfig();
RestApiConfig restApiConfig = new RestApiConfig().setEnabled(true).disableGroups(RestEndpointGroup.CLUSTER_READ).enableGroups(RestEndpointGroup.CLUSTER_WRITE);
config.getNetworkConfig().setRestApiConfig(restApiConfig);
return config;
}
use of com.hazelcast.config.RestApiConfig in project hazelcast by hazelcast.
the class RestInstanceTest method createConfigWithRestEnabled.
protected Config createConfigWithRestEnabled() {
Config config = createConfig();
RestApiConfig restApiConfig = new RestApiConfig().setEnabled(true).enableGroups(RestEndpointGroup.CLUSTER_READ);
config.getNetworkConfig().setRestApiConfig(restApiConfig);
return config;
}
Aggregations