use of com.ibm.streamsx.topology.consistent.ConsistentRegionConfig in project streamsx.topology by IBMStreams.
the class ConsistentRegionConfigTest method testChangeAttempts.
@Test
public void testChangeAttempts() {
ConsistentRegionConfig config = periodic(9).maxConsecutiveResetAttempts(10);
checkCRC(config, Trigger.PERIODIC, 9, 180, 180, 10);
}
use of com.ibm.streamsx.topology.consistent.ConsistentRegionConfig in project streamsx.topology by IBMStreams.
the class ConsistentRegionConfigTest method testDefaultOpDriven.
@Test
public void testDefaultOpDriven() {
ConsistentRegionConfig config = operatorDriven();
checkCRC(config, Trigger.OPERATOR_DRIVEN, -1, 180, 180, 5);
}
use of com.ibm.streamsx.topology.consistent.ConsistentRegionConfig in project streamsx.topology by IBMStreams.
the class ConsistentRegionConfigTest method testDefaultPeriodNew.
@Test
public void testDefaultPeriodNew() {
ConsistentRegionConfig config = new ConsistentRegionConfig(39);
checkCRC(config, Trigger.PERIODIC, 39, 180, 180, 5);
}
use of com.ibm.streamsx.topology.consistent.ConsistentRegionConfig in project streamsx.topology by IBMStreams.
the class ConsistentRegionConfigTest method testChangeAll.
@Test
public void testChangeAll() {
ConsistentRegionConfig config = operatorDriven().maxConsecutiveResetAttempts(11).drainTimeout(32).resetTimeout(200);
checkCRC(config, Trigger.OPERATOR_DRIVEN, -1, 32, 200, 11);
}
use of com.ibm.streamsx.topology.consistent.ConsistentRegionConfig in project streamsx.topology by IBMStreams.
the class ConsistentRegionConfigTest method testEquals.
@Test
public void testEquals() {
assertFalse(operatorDriven().equals(periodic(2)));
assertEquals(operatorDriven(), new ConsistentRegionConfig());
assertEquals(periodic(7), new ConsistentRegionConfig(7));
assertEquals(operatorDriven(), operatorDriven());
assertEquals(periodic(9), periodic(9));
assertFalse(operatorDriven().equals(operatorDriven().drainTimeout(15)));
assertFalse(operatorDriven().equals(operatorDriven().resetTimeout(16)));
assertFalse(operatorDriven().equals(operatorDriven().maxConsecutiveResetAttempts(17)));
assertFalse(periodic(9).equals(periodic(11)));
}
Aggregations