Skip to content
Snippets Groups Projects
Commit 7a452042 authored by Lorenz Boguhn's avatar Lorenz Boguhn
Browse files

Also align the uc3 HazelcastJetFactory

parent 59d9d755
No related branches found
No related tags found
1 merge request!275Refactor hazelcast jet benchmarks:
......@@ -303,7 +303,7 @@ public class Uc3HazelcastJetFactory { // NOPMD
public Uc3HazelcastJetFactory setWindowSizeInSecondsFromEnv(// NOPMD
final String defaultWindowSizeInSeconds) {
final String windowSizeInSeconds = Objects.requireNonNullElse(
System.getenv(ConfigurationKeys.WINDOW_SIZE_IN_SECONDS),
System.getenv(ConfigurationKeys.AGGREGATION_DURATION_DAYS),
defaultWindowSizeInSeconds);
final int windowSizeInSecondsNumber = Integer.parseInt(windowSizeInSeconds);
this.windowSizeInSeconds = windowSizeInSecondsNumber;
......@@ -332,7 +332,7 @@ public class Uc3HazelcastJetFactory { // NOPMD
public Uc3HazelcastJetFactory setHoppingSizeInSecondsFromEnv(// NOPMD
final String defaultHoppingSizeInSeconds) {
final String hoppingSizeInSeconds = Objects.requireNonNullElse(
System.getenv(ConfigurationKeys.HOPPING_SIZE_IN_SECONDS),
System.getenv(ConfigurationKeys.AGGREGATION_ADVANCE_DAYS),
defaultHoppingSizeInSeconds);
final int hoppingSizeInSecondsNumber = Integer.parseInt(hoppingSizeInSeconds);
this.hoppingSizeInSeconds = hoppingSizeInSecondsNumber;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment