use of com.hazelcast.jet.config.InstanceConfig in project hazelcast-jet by hazelcast.
the class TestApplicationContext method assertJetConfig.
private void assertJetConfig() {
JetConfig jetConfig = jetInstance.getConfig();
Config hazelcastConfig = jetConfig.getHazelcastConfig();
assertHazelcastConfig(hazelcastConfig);
InstanceConfig instanceConfig = jetConfig.getInstanceConfig();
assertEquals(4, instanceConfig.getBackupCount());
assertEquals(2, instanceConfig.getCooperativeThreadCount());
assertEquals(200, instanceConfig.getFlowControlPeriodMs());
assertEquals("springTempDir", instanceConfig.getTempDir());
EdgeConfig edgeConfig = jetConfig.getDefaultEdgeConfig();
assertEquals(8, edgeConfig.getQueueSize());
assertEquals(3, edgeConfig.getPacketSizeLimit());
assertEquals(5, edgeConfig.getReceiveWindowMultiplier());
assertEquals("bar", jetConfig.getProperties().getProperty("foo"));
}
Aggregations