use of com.hazelcast.config.cp.CPSubsystemConfig in project hazelcast by hazelcast.
the class CPConfigCheckerTest method whenGroupSize_even.
@Test(expected = IllegalArgumentException.class)
public void whenGroupSize_even() {
Config config = new Config();
CPSubsystemConfig cpSubsystemConfig = config.getCPSubsystemConfig();
cpSubsystemConfig.setGroupSize(4);
}
use of com.hazelcast.config.cp.CPSubsystemConfig in project hazelcast by hazelcast.
the class UnsafeSemaphoreAdvancedTest method createConfig.
private Config createConfig() {
Config config = new Config();
CPSubsystemConfig cpSubsystemConfig = config.getCPSubsystemConfig();
cpSubsystemConfig.setSessionTimeToLiveSeconds(10);
cpSubsystemConfig.setSessionHeartbeatIntervalSeconds(1);
SemaphoreConfig semaphoreConfig = new SemaphoreConfig();
semaphoreConfig.setName(objectName);
cpSubsystemConfig.addSemaphoreConfig(semaphoreConfig);
return config;
}
use of com.hazelcast.config.cp.CPSubsystemConfig in project hazelcast by hazelcast.
the class RaftInvocationFailureTest method createConfig.
@Override
protected Config createConfig(int cpNodeCount, int groupSize) {
Config config = super.createConfig(cpNodeCount, groupSize);
CPSubsystemConfig cpSubsystemConfig = config.getCPSubsystemConfig();
cpSubsystemConfig.setFailOnIndeterminateOperationState(true);
return config;
}
Aggregations