use of com.hazelcast.config.RestApiConfig in project hazelcast by hazelcast.
the class RestClusterTest 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 RestTest method getConfig.
public Config getConfig() {
Config config = new Config();
RestApiConfig restApiConfig = new RestApiConfig().setEnabled(true).enableAllGroups();
config.getNetworkConfig().setRestApiConfig(restApiConfig);
config.getMapConfig(MAP_WITH_TTL).setTimeToLiveSeconds(2);
return config;
}
use of com.hazelcast.config.RestApiConfig in project hazelcast by hazelcast.
the class RestLogLevelTest method createWriteOnlyConfig.
protected Config createWriteOnlyConfig() {
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 RestApiConfigTestBase method createConfigWithDisabledGroups.
/**
* Creates Hazelcast {@link Config} with enabled all but provided {@link RestEndpointGroup RestEndpointGroups}.
*/
protected Config createConfigWithDisabledGroups(RestEndpointGroup... group) {
RestApiConfig restApiConfig = new RestApiConfig();
restApiConfig.setEnabled(true);
restApiConfig.enableAllGroups().disableGroups(group);
Config c = new Config();
c.getNetworkConfig().setRestApiConfig(restApiConfig);
return c;
}
use of com.hazelcast.config.RestApiConfig in project hazelcast by hazelcast.
the class RestApiConfigTestBase method createConfigWithEnabledGroups.
/**
* Creates Hazelcast {@link Config} with disabled all but provided {@link RestEndpointGroup RestEndpointGroups}.
*/
protected Config createConfigWithEnabledGroups(RestEndpointGroup... group) {
RestApiConfig restApiConfig = new RestApiConfig();
restApiConfig.setEnabled(true);
restApiConfig.disableAllGroups().enableGroups(group);
Config c = new Config();
c.getNetworkConfig().setRestApiConfig(restApiConfig);
return c;
}
Aggregations