Skip to content

Commit

Permalink
[grid] cleanUpCycle option can be specified for a node too
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Aug 8, 2018
1 parent ba7ad22 commit 530a08d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public GridConfiguration(GridJsonConfiguration jsonConfig) {

void merge(CommonGridCliOptions cliConfig) {
super.merge(cliConfig);
ofNullable(cliConfig.getCleanUpCycle()).ifPresent(v -> cleanUpCycle = v);
ofNullable(cliConfig.getServlets()).ifPresent(v -> servlets = v);
ofNullable(cliConfig.getWithoutServlets()).ifPresent(v -> withoutServlets = v);
ofNullable(cliConfig.getCustom()).ifPresent(v -> custom = v);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ public GridHubConfiguration(GridHubCliOptions cliConfig) {
this(ofNullable(cliConfig.getConfigFile()).map(HubJsonConfiguration::loadFromResourceOrFile)
.orElse(DEFAULT_CONFIG_FROM_JSON));
super.merge(cliConfig);
ofNullable(cliConfig.getCleanUpCycle()).ifPresent(v -> cleanUpCycle = v);
ofNullable(cliConfig.getNewSessionWaitTimeout()).ifPresent(v -> newSessionWaitTimeout = v);
ofNullable(cliConfig.getThrowOnCapabilityNotPresent()).ifPresent(v -> throwOnCapabilityNotPresent = v);
ofNullable(cliConfig.getRegistry()).ifPresent(v -> registry = v);
Expand Down

0 comments on commit 530a08d

Please sign in to comment.