|
1 |
| -// Copyright (c) 2020, 2022, Oracle and/or its affiliates. |
| 1 | +// Copyright (c) 2020, 2023, Oracle and/or its affiliates. |
2 | 2 | // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
|
3 | 3 |
|
4 | 4 | package oracle.weblogic.domain;
|
@@ -116,6 +116,23 @@ public class DomainSpec {
|
116 | 116 | @ApiModelProperty("Models and overrides affecting the WebLogic domain configuration.")
|
117 | 117 | private Configuration configuration;
|
118 | 118 |
|
| 119 | + @ApiModelProperty("The maximum number of cluster members that can be temporarily unavailable." |
| 120 | + + " You can override this default on a per cluster basis by setting the" |
| 121 | + + " cluster's `maxUnavailable` field. Defaults to 1.") |
| 122 | + private Integer maxClusterUnavailable; |
| 123 | + |
| 124 | + @ApiModelProperty("The maximum number of cluster member Managed Server instances that the" |
| 125 | + + " operator will start in parallel for a given cluster, if `maxConcurrentStartup` " |
| 126 | + + " is not specified for a specific cluster under the `clusters` field. " |
| 127 | + + " A value of 0 means there is no configured limit. Defaults to 0.") |
| 128 | + private Integer maxClusterConcurrentStartup; |
| 129 | + |
| 130 | + @ApiModelProperty("The default maximum number of WebLogic Server instances that a cluster will" |
| 131 | + + " shut down in parallel when it is being partially shut down by lowering its replica count." |
| 132 | + + " You can override this default on a per cluster basis by setting the cluster's `maxConcurrentShutdown` field." |
| 133 | + + " A value of 0 means there is no limit. Defaults to 1.") |
| 134 | + private Integer maxClusterConcurrentShutdown; |
| 135 | + |
119 | 136 | /**
|
120 | 137 | * The Fluentd configuration.
|
121 | 138 | *
|
@@ -187,9 +204,6 @@ public void setFluentdImagePullPolicy(String pullPolicy) {
|
187 | 204 | fluentdSpecification.setImagePullPolicy(pullPolicy);
|
188 | 205 | }
|
189 | 206 |
|
190 |
| - |
191 |
| - |
192 |
| - |
193 | 207 | @ApiModelProperty("Configuration for the Administration Server.")
|
194 | 208 | private AdminServer adminServer;
|
195 | 209 |
|
@@ -492,6 +506,57 @@ public void setReplicas(Integer replicas) {
|
492 | 506 | this.replicas = replicas;
|
493 | 507 | }
|
494 | 508 |
|
| 509 | + public DomainSpec maxClusterUnavailable(Integer maxClusterUnavailable) { |
| 510 | + this.maxClusterUnavailable = maxClusterUnavailable; |
| 511 | + return this; |
| 512 | + } |
| 513 | + |
| 514 | + public Integer maxClusterUnavailable() { |
| 515 | + return this.maxClusterUnavailable; |
| 516 | + } |
| 517 | + |
| 518 | + public Integer getMaxClusterUnavailable() { |
| 519 | + return maxClusterUnavailable; |
| 520 | + } |
| 521 | + |
| 522 | + public void setMaxClusterUnavailable(Integer maxClusterUnavailable) { |
| 523 | + this.maxClusterUnavailable = maxClusterUnavailable; |
| 524 | + } |
| 525 | + |
| 526 | + public DomainSpec maxClusterConcurrentStartup(Integer maxClusterConcurrentStartup) { |
| 527 | + this.maxClusterConcurrentStartup = maxClusterConcurrentStartup; |
| 528 | + return this; |
| 529 | + } |
| 530 | + |
| 531 | + public Integer maxClusterConcurrentStartup() { |
| 532 | + return this.maxClusterConcurrentStartup; |
| 533 | + } |
| 534 | + |
| 535 | + public Integer getMaxClusterConcurrentStartup() { |
| 536 | + return maxClusterConcurrentStartup; |
| 537 | + } |
| 538 | + |
| 539 | + public void setMaxClusterConcurrentStartup(Integer maxClusterConcurrentStartup) { |
| 540 | + this.maxClusterConcurrentStartup = maxClusterConcurrentStartup; |
| 541 | + } |
| 542 | + |
| 543 | + public DomainSpec maxClusterConcurrentShutdown(Integer maxClusterConcurrentShutdown) { |
| 544 | + this.maxClusterConcurrentShutdown = maxClusterConcurrentShutdown; |
| 545 | + return this; |
| 546 | + } |
| 547 | + |
| 548 | + public Integer maxClusterConcurrentShutdown() { |
| 549 | + return this.maxClusterConcurrentShutdown; |
| 550 | + } |
| 551 | + |
| 552 | + public Integer getMaxClusterConcurrentShutdown() { |
| 553 | + return maxClusterConcurrentShutdown; |
| 554 | + } |
| 555 | + |
| 556 | + public void setMaxClusterConcurrentShutdown(Integer maxClusterConcurrentShutdown) { |
| 557 | + this.maxClusterConcurrentShutdown = maxClusterConcurrentShutdown; |
| 558 | + } |
| 559 | + |
495 | 560 | public DomainSpec domainHomeSourceType(String domainHomeSourceType) {
|
496 | 561 | this.domainHomeSourceType = domainHomeSourceType;
|
497 | 562 | return this;
|
@@ -743,7 +808,10 @@ public String toString() {
|
743 | 808 | .append("serverService", serverService)
|
744 | 809 | .append("restartVersion", restartVersion)
|
745 | 810 | .append("monitoringExporter", monitoringExporter)
|
746 |
| - .append("fluentdSpecification", fluentdSpecification); |
| 811 | + .append("fluentdSpecification", fluentdSpecification) |
| 812 | + .append("maxClusterUnavailable", maxClusterUnavailable) |
| 813 | + .append("maxClusterConcurrentStartup", maxClusterConcurrentStartup) |
| 814 | + .append("maxClusterConcurrentShutdown", maxClusterConcurrentShutdown); |
747 | 815 |
|
748 | 816 | return builder.toString();
|
749 | 817 | }
|
@@ -778,7 +846,10 @@ public int hashCode() {
|
778 | 846 | .append(serverService)
|
779 | 847 | .append(restartVersion)
|
780 | 848 | .append(monitoringExporter)
|
781 |
| - .append(fluentdSpecification); |
| 849 | + .append(fluentdSpecification) |
| 850 | + .append(maxClusterUnavailable) |
| 851 | + .append(maxClusterConcurrentStartup) |
| 852 | + .append(maxClusterConcurrentShutdown); |
782 | 853 |
|
783 | 854 | return builder.toHashCode();
|
784 | 855 | }
|
@@ -821,7 +892,10 @@ public boolean equals(Object other) {
|
821 | 892 | .append(serverService, rhs.serverService)
|
822 | 893 | .append(restartVersion, rhs.restartVersion)
|
823 | 894 | .append(monitoringExporter, rhs.monitoringExporter)
|
824 |
| - .append(fluentdSpecification, rhs.fluentdSpecification); |
| 895 | + .append(fluentdSpecification, rhs.fluentdSpecification) |
| 896 | + .append(maxClusterUnavailable, rhs.maxClusterUnavailable) |
| 897 | + .append(maxClusterConcurrentStartup, rhs.maxClusterConcurrentStartup) |
| 898 | + .append(maxClusterConcurrentShutdown, rhs.maxClusterConcurrentShutdown); |
825 | 899 | return builder.isEquals();
|
826 | 900 | }
|
827 | 901 | }
|
0 commit comments