Search in sources :

Example 1 with InstanceConfig

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"));
}
Also used : InstanceConfig(com.hazelcast.jet.config.InstanceConfig) EdgeConfig(com.hazelcast.jet.config.EdgeConfig) JoinConfig(com.hazelcast.config.JoinConfig) Config(com.hazelcast.config.Config) JetConfig(com.hazelcast.jet.config.JetConfig) InstanceConfig(com.hazelcast.jet.config.InstanceConfig) NetworkConfig(com.hazelcast.config.NetworkConfig) TcpIpConfig(com.hazelcast.config.TcpIpConfig) EdgeConfig(com.hazelcast.jet.config.EdgeConfig) JetConfig(com.hazelcast.jet.config.JetConfig)

Aggregations

Config (com.hazelcast.config.Config)1 JoinConfig (com.hazelcast.config.JoinConfig)1 NetworkConfig (com.hazelcast.config.NetworkConfig)1 TcpIpConfig (com.hazelcast.config.TcpIpConfig)1 EdgeConfig (com.hazelcast.jet.config.EdgeConfig)1 InstanceConfig (com.hazelcast.jet.config.InstanceConfig)1 JetConfig (com.hazelcast.jet.config.JetConfig)1