use of com.hazelcast.jet.config.JetConfig in project hazelcast by hazelcast.
the class ConfigXmlGeneratorTest method testJetConfig.
@Test
public void testJetConfig() {
Config config = new Config();
JetConfig jetConfig = config.getJetConfig();
jetConfig.setEnabled(false).setResourceUploadEnabled(true);
jetConfig.setLosslessRestartEnabled(true).setScaleUpDelayMillis(123).setBackupCount(2).setFlowControlPeriodMs(123).setCooperativeThreadCount(123);
jetConfig.getDefaultEdgeConfig().setReceiveWindowMultiplier(123).setPacketSizeLimit(123).setQueueSize(123);
Config newConfig = getNewConfigViaXMLGenerator(config);
assertEquals(jetConfig, newConfig.getJetConfig());
}
use of com.hazelcast.jet.config.JetConfig in project hazelcast by hazelcast.
the class PhoneHomeDifferentConfigTest method testJetDisabled.
@Test
public void testJetDisabled() {
Config config = new Config().setJetConfig(new JetConfig().setEnabled(false));
HazelcastInstance hazelcastInstance = createHazelcastInstance(config);
Node node = getNode(hazelcastInstance);
PhoneHome phoneHome = new PhoneHome(node);
Map<String, String> parameters = phoneHome.phoneHome(true);
assertEquals("false", parameters.get(PhoneHomeMetrics.JET_ENABLED.getRequestParameterName()));
assertEquals("false", parameters.get(PhoneHomeMetrics.JET_RESOURCE_UPLOAD_ENABLED.getRequestParameterName()));
}
use of com.hazelcast.jet.config.JetConfig in project hazelcast-jet by hazelcast.
the class XmlJetConfigBuilder method getConfig.
public static JetConfig getConfig(Properties properties) {
InputStream in = getJetConfigStream(properties);
JetConfig cfg = new XmlJetConfigBuilder(properties, in).jetConfig;
cfg.setHazelcastConfig(getMemberConfig(properties));
return cfg;
}
use of com.hazelcast.jet.config.JetConfig in project hazelcast-jet by hazelcast.
the class TestInClusterSupport method setupCluster.
@BeforeClass
public static void setupCluster() {
int parallelism = Runtime.getRuntime().availableProcessors() / MEMBER_COUNT / 2;
JetConfig config = new JetConfig();
config.getInstanceConfig().setCooperativeThreadCount(parallelism <= 2 ? 2 : parallelism);
Config hzConfig = config.getHazelcastConfig();
hzConfig.addCacheConfig(new CacheSimpleConfig().setName("*"));
hzConfig.getMapEventJournalConfig(JOURNALED_MAP_PREFIX + '*').setEnabled(true);
hzConfig.getCacheEventJournalConfig(JOURNALED_CACHE_PREFIX + '*').setEnabled(true);
member = createCluster(MEMBER_COUNT, config);
client = factory.newClient();
}
use of com.hazelcast.jet.config.JetConfig in project hazelcast-jet by hazelcast.
the class WindowAggregateTransform_IntegrationTest method before.
@Before
public void before() {
JetConfig config = new JetConfig();
config.getHazelcastConfig().addEventJournalConfig(new EventJournalConfig().setMapName("source*").setEnabled(true));
config.getHazelcastConfig().setProperty(GroupProperty.PARTITION_COUNT.getName(), "1");
instance = createJetMember(config);
}
Aggregations