use of com.hazelcast.jet.config.JetConfig in project hazelcast-jet by hazelcast.
the class JetSplitBrainTestSupport method createConfig.
private JetConfig createConfig() {
final JetConfig jetConfig = new JetConfig();
jetConfig.getInstanceConfig().setCooperativeThreadCount(PARALLELISM);
jetConfig.getHazelcastConfig().setProperty(GroupProperty.MERGE_FIRST_RUN_DELAY_SECONDS.getName(), "5");
jetConfig.getHazelcastConfig().setProperty(GroupProperty.MERGE_NEXT_RUN_DELAY_SECONDS.getName(), "5");
onJetConfigCreated(jetConfig);
return jetConfig;
}
use of com.hazelcast.jet.config.JetConfig in project hazelcast-jet by hazelcast.
the class JobRestartWithSnapshotTest method setup.
@Before
public void setup() {
JetConfig config = new JetConfig();
config.getInstanceConfig().setCooperativeThreadCount(LOCAL_PARALLELISM);
instance1 = createJetMember(config);
instance2 = createJetMember(config);
}
use of com.hazelcast.jet.config.JetConfig in project hazelcast-jet by hazelcast.
the class JobTest method setup.
@Before
public void setup() {
MockPS.closeCount.set(0);
MockPS.initCount.set(0);
MockPS.receivedCloseErrors.clear();
StuckProcessor.proceedLatch = new CountDownLatch(1);
StuckProcessor.executionStarted = new CountDownLatch(NODE_COUNT * LOCAL_PARALLELISM);
JetConfig config = new JetConfig();
config.getInstanceConfig().setCooperativeThreadCount(LOCAL_PARALLELISM);
instance1 = createJetMember(config);
instance2 = createJetMember(config);
}
use of com.hazelcast.jet.config.JetConfig in project hazelcast-jet by hazelcast.
the class ManualRestartTest method setup.
@Before
public void setup() {
MockPS.closeCount.set(0);
MockPS.initCount.set(0);
MockPS.receivedCloseErrors.clear();
StuckProcessor.proceedLatch = new CountDownLatch(1);
StuckProcessor.executionStarted = new CountDownLatch(NODE_COUNT * LOCAL_PARALLELISM);
dag = new DAG().vertex(new Vertex("test", new MockPS(StuckForeverSourceP::new, NODE_COUNT)));
instances = createJetMembers(new JetConfig(), NODE_COUNT);
}
use of com.hazelcast.jet.config.JetConfig in project hazelcast-jet by hazelcast.
the class OperationTimeoutTest method setup.
@Before
public void setup() {
config = new JetConfig();
config.getHazelcastConfig().getProperties().put(GroupProperty.OPERATION_CALL_TIMEOUT_MILLIS.getName(), Integer.toString(TIMEOUT_MILLIS));
}
Aggregations