Skip to content

Commit 2eb38d2

Browse files
committed
Adding adminPort to WlsServerConfig
1 parent 5125bb7 commit 2eb38d2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

operator/src/main/java/oracle/kubernetes/operator/wlsconfig/WlsServerConfig.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ static WlsServerConfig create(Map<String, Object> serverConfigMap) {
150150
(String) serverConfigMap.get("listenAddress"),
151151
sslListenPort,
152152
sslPortEnabled,
153+
(Integer) serverConfigMap.get("adminPort"),
154+
(boolean) serverConfigMap.get("adminPortEnabled"),
153155
getMachineNameFromJsonMap(serverConfigMap),
154156
networkAccessPoints);
155157
}
@@ -162,6 +164,8 @@ static WlsServerConfig create(Map<String, Object> serverConfigMap) {
162164
* @param listenAddress Configured listen address for this WLS server
163165
* @param sslListenPort Configured SSL listen port for this WLS server
164166
* @param sslPortEnabled boolean indicating whether the SSL listen port should be enabled
167+
* @param adminPort Configured domain wide administration port
168+
* @param adminPortEnabled boolean indicating whether administration port should be enabled
165169
* @param machineName Configured machine name for this WLS server
166170
* @param networkAccessPoints List of NetworkAccessPoint containing channels configured for this
167171
* WLS server
@@ -172,6 +176,8 @@ public WlsServerConfig(
172176
String listenAddress,
173177
Integer sslListenPort,
174178
boolean sslPortEnabled,
179+
Integer adminPort,
180+
boolean adminPortEnabled,
175181
String machineName,
176182
List<NetworkAccessPoint> networkAccessPoints) {
177183
this.name = name;
@@ -180,6 +186,8 @@ public WlsServerConfig(
180186
this.networkAccessPoints = networkAccessPoints;
181187
this.sslListenPort = sslListenPort;
182188
this.sslPortEnabled = sslPortEnabled;
189+
this.adminPort = adminPort;
190+
this.adminPortEnabled = adminPortEnabled;
183191
this.machineName = machineName;
184192
}
185193

@@ -301,6 +309,8 @@ public boolean equals(Object o) {
301309
.append(listenPort, that.listenPort)
302310
.append(listenAddress, that.listenAddress)
303311
.append(sslListenPort, that.sslListenPort)
312+
.append(adminPort, that.adminPort)
313+
.append(adminPortEnabled, that.adminPortEnabled)
304314
.append(machineName, that.machineName)
305315
.append(networkAccessPoints, that.networkAccessPoints)
306316
.isEquals();
@@ -314,6 +324,8 @@ public int hashCode() {
314324
.append(listenAddress)
315325
.append(sslListenPort)
316326
.append(sslPortEnabled)
327+
.append(adminPort)
328+
.append(adminPortEnabled)
317329
.append(machineName)
318330
.append(networkAccessPoints)
319331
.toHashCode();
@@ -327,6 +339,8 @@ public String toString() {
327339
.append("listenAddress", listenAddress)
328340
.append("sslListenPort", sslListenPort)
329341
.append("sslPortEnabled", sslPortEnabled)
342+
.append("adminPort", adminPort)
343+
.append("adminPortEnabled", adminPortEnabled)
330344
.append("machineName", machineName)
331345
.append("networkAccessPoints", networkAccessPoints)
332346
.toString();

0 commit comments

Comments
 (0)