Skip to content

Commit 5125bb7

Browse files
committed
Adding adminPort to WlsServerConfig
1 parent 68600b6 commit 5125bb7

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

operator/src/main/resources/scripts/introspectDomain.py

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ def validateClusters(self):
332332
self.validateCluster(cluster)
333333

334334
def validateCluster(self, cluster):
335+
self.validateClusterServersHaveSameCustomChannels(cluster)
335336
if self.getDynamicServersWA(cluster) is None:
336337
self.validateNonDynamicCluster(cluster)
337338
else:
@@ -404,6 +405,7 @@ def validateServerCustomChannelName(self):
404405

405406
#def validateClusterServersHaveSameCustomChannels():
406407

408+
407409
def isValid(self):
408410
return len(self.env.getErrors()) == 0
409411

@@ -486,16 +488,18 @@ def getClusteredServers(self, cluster):
486488
def addClusteredServer(self, cluster, server):
487489
name=self.name(server)
488490
self.writeln("- name: " + name)
489-
self.writeln(" listenPort: " + str(server.getListenPort()))
491+
if server.isListenPortEnabled():
492+
self.writeln(" listenPort: " + str(server.getListenPort()))
490493
self.writeln(" listenAddress: " + self.quote(self.env.toDNS1123Legal(self.env.getDomainUID() + "-" + server.getName())))
491-
self.writeln(" adminPort: " + str(server.getAdministrationPort()))
492-
self.writeln(" adminPortEnabled: " + self.booleanToString(server.isAdministrationPortEnabled()))
494+
if server.isAdministrationPortEnabled():
495+
self.writeln(" adminPort: " + str(server.getAdministrationPort()))
496+
self.writeln(" adminPortEnabled: " + self.booleanToString(server.isAdministrationPortEnabled()))
493497
self.addSSL(server)
494498
self.addNetworkAccessPoints(server)
495499

496500
def addSSL(self, server):
497501
ssl = server.getSSL()
498-
if ssl is not None:
502+
if ssl is not None and ssl.isEnabled():
499503
self.indent()
500504
self.writeln("sslListenPort: " + str(ssl.getListenPort()))
501505
self.writeln("sslPortEnabled: " + self.booleanToString(ssl.isEnabled()))
@@ -514,7 +518,8 @@ def addServerTemplates(self):
514518
def addServerTemplate(self, serverTemplate):
515519
name=self.name(serverTemplate)
516520
self.writeln("- name: " + name)
517-
self.writeln(" listenPort: " + str(serverTemplate.getListenPort()))
521+
if serverTemplate.isListenPortEnabled():
522+
self.writeln(" listenPort: " + str(serverTemplate.getListenPort()))
518523
self.writeln(" clusterName: " + self.quote(serverTemplate.getCluster().getName()))
519524
listenAddress=serverTemplate.getListenAddress()
520525
if listenAddress is not None:
@@ -568,10 +573,12 @@ def addNonClusteredServers(self):
568573
def addNonClusteredServer(self, server):
569574
name=self.name(server)
570575
self.writeln("- name: " + name)
571-
self.writeln(" listenPort: " + str(server.getListenPort()))
576+
if server.isListenPortEnabled():
577+
self.writeln(" listenPort: " + str(server.getListenPort()))
572578
self.writeln(" listenAddress: " + self.quote(self.env.toDNS1123Legal(self.env.getDomainUID() + "-" + server.getName())))
573-
self.writeln(" adminPort: " + str(server.getAdministrationPort()))
574-
self.writeln(" adminPortEnabled: " + self.booleanToString(server.isAdministrationPortEnabled()))
579+
if server.isAdministrationPortEnabled():
580+
self.writeln(" adminPort: " + str(server.getAdministrationPort()))
581+
self.writeln(" adminPortEnabled: " + self.booleanToString(server.isAdministrationPortEnabled()))
575582
self.addSSL(server)
576583
self.addNetworkAccessPoints(server)
577584

0 commit comments

Comments
 (0)