Skip to content

Commit d2fe290

Browse files
authored
Merge pull request #201 from oracle/remove-jrf-elements-during-discover
Added domain type name to logging for skipping system resources
2 parents 33d00b4 + d24a8b1 commit d2fe290

File tree

7 files changed

+37
-21
lines changed

7 files changed

+37
-21
lines changed

core/src/main/python/wlsdeploy/tool/create/domain_typedef.py

+7
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ def set_model_context(self, model_context):
8383
self.__resolve_paths()
8484
return
8585

86+
def get_domain_type(self):
87+
"""
88+
Get the name of the domain type, such as "WLS".
89+
:return: the name of the domain type
90+
"""
91+
return self._domain_type
92+
8693
def get_base_template(self):
8794
"""
8895
Get the base template to use when create the domain.

core/src/main/python/wlsdeploy/tool/discover/coherence_resources_discoverer.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def get_coherence_clusters(self):
7878
name_token = self._alias_helper.get_name_token(location)
7979
for coherence_cluster in coherence_clusters:
8080
if typedef.is_system_coherence_cluster(coherence_cluster):
81-
_logger.info('WLSDPLY-06322', coherence_cluster, class_name=_class_name, method_name=_method_name)
81+
_logger.info('WLSDPLY-06322', typedef.get_domain_type(), coherence_cluster, class_name=_class_name,
82+
method_name=_method_name)
8283
else:
8384
_logger.info('WLSDPLY-06312', coherence_cluster, class_name=_class_name, method_name=_method_name)
8485
location.add_name_token(name_token, coherence_cluster)

core/src/main/python/wlsdeploy/tool/discover/common_resources_discoverer.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def get_datasources(self):
8787
name_token = self._alias_helper.get_name_token(location)
8888
for datasource in datasources:
8989
if typedef.is_system_datasource(datasource):
90-
_logger.info('WLSDPLY-06361', datasource, class_name=_class_name, method_name=_method_name)
90+
_logger.info('WLSDPLY-06361', typedef.get_domain_type(), datasource, class_name=_class_name,
91+
method_name=_method_name)
9192
else:
9293
_logger.info('WLSDPLY-06341', datasource, class_name=_class_name, method_name=_method_name)
9394
result[datasource] = OrderedDict()
@@ -175,7 +176,8 @@ def get_file_stores(self):
175176
name_token = self._alias_helper.get_name_token(location)
176177
for file_store in file_stores:
177178
if typedef.is_system_file_store(file_store):
178-
_logger.info('WLSDPLY-06363', file_store, class_name=_class_name, method_name=_method_name)
179+
_logger.info('WLSDPLY-06363', typedef.get_domain_type(), file_store, class_name=_class_name,
180+
method_name=_method_name)
179181
else:
180182
_logger.info('WLSDPLY-06347', file_store, class_name=_class_name, method_name=_method_name)
181183
result[file_store] = OrderedDict()
@@ -309,7 +311,8 @@ def get_wldf_system_resources(self):
309311
name_token = self._alias_helper.get_name_token(location)
310312
for wldf_resource in wldf_resources:
311313
if typedef.is_system_wldf(wldf_resource):
312-
_logger.info('WLSDPLY-06362', wldf_resource, class_name=_class_name, method_name=_method_name)
314+
_logger.info('WLSDPLY-06362', typedef.get_domain_type(), wldf_resource, class_name=_class_name,
315+
method_name=_method_name)
313316
else:
314317
_logger.info('WLSDPLY-06358', wldf_resource, class_name=_class_name, method_name=_method_name)
315318
location.add_name_token(name_token, wldf_resource)

core/src/main/python/wlsdeploy/tool/discover/deployments_discoverer.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def get_shared_libraries(self):
6868
name_token = self._alias_helper.get_name_token(location)
6969
for library in libraries:
7070
if typedef.is_system_shared_library(library):
71-
_logger.info('WLSDPLY-06401', library, class_name=_class_name, method_name=_method_name)
71+
_logger.info('WLSDPLY-06401', typedef.get_domain_type(), library, class_name=_class_name,
72+
method_name=_method_name)
7273
else:
7374
_logger.info('WLSDPLY-06382', library, class_name=_class_name, method_name=_method_name)
7475
location.add_name_token(name_token, library)
@@ -193,10 +194,10 @@ def get_applications(self):
193194
name_token = self._alias_helper.get_name_token(location)
194195
for application in applications:
195196
if typedef.is_system_app(application):
196-
_logger.info('WLSDPLY-06400', application, class_name=_class_name, method_name=_method_name)
197+
_logger.info('WLSDPLY-06400', typedef.get_domain_type(), application, class_name=_class_name,
198+
method_name=_method_name)
197199
else:
198200
_logger.info('WLSDPLY-06392', application, class_name=_class_name, method_name=_method_name)
199-
print(" application: " + str(application) + ": " + str(typedef.is_system_app(application)))
200201
location.add_name_token(name_token, application)
201202
result[application] = OrderedDict()
202203
self._populate_model_parameters(result[application], location)

core/src/main/python/wlsdeploy/tool/discover/global_resources_discoverer.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def get_startup_classes(self):
8686
name_token = self._alias_helper.get_name_token(location)
8787
for startup_class in startup_classes:
8888
if typedef.is_system_startup_class(startup_class):
89-
_logger.info('WLSDPLY-06447', startup_class, class_name=_class_name, method_name=_method_name)
89+
_logger.info('WLSDPLY-06447', typedef.get_domain_type(), startup_class, class_name=_class_name,
90+
method_name=_method_name)
9091
else:
9192
_logger.info('WLSDPLY-06443', startup_class, class_name=_class_name, method_name=_method_name)
9293
result[startup_class] = OrderedDict()
@@ -115,7 +116,8 @@ def get_shutdown_classes(self):
115116
name_token = self._alias_helper.get_name_token(location)
116117
for shutdown_class in shutdown_classes:
117118
if typedef.is_system_shutdown_class(shutdown_class):
118-
_logger.info('WLSDPLY-06448', shutdown_class, class_name=_class_name, method_name=_method_name)
119+
_logger.info('WLSDPLY-06448', typedef.get_domain_type(), shutdown_class, class_name=_class_name,
120+
method_name=_method_name)
119121
else:
120122
_logger.info('WLSDPLY-06446', shutdown_class, class_name=_class_name, method_name=_method_name)
121123
result[shutdown_class] = OrderedDict()

core/src/main/python/wlsdeploy/tool/discover/jms_resources_discoverer.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ def get_jms_servers(self):
6565
name_token = self._alias_helper.get_name_token(location)
6666
for jms_server in jms_servers:
6767
if typedef.is_system_jms_server(jms_server):
68-
_logger.info('WLSDPLY-06490', jms_server, class_name=_class_name, method_name=_method_name)
68+
_logger.info('WLSDPLY-06490', typedef.get_domain_type(), jms_server, class_name=_class_name,
69+
method_name=_method_name)
6970
else:
7071
_logger.info('WLSDPLY-06471', jms_server, class_name=_class_name, method_name=_method_name)
7172
location.add_name_token(name_token, jms_server)
@@ -169,7 +170,8 @@ def get_jms_system_resources(self):
169170
name_token = self._alias_helper.get_name_token(location)
170171
for jms_resource in jms_resources:
171172
if typedef.is_system_jms(jms_resource):
172-
_logger.info('WLSDPLY-06491', jms_resource, class_name=_class_name, method_name=_method_name)
173+
_logger.info('WLSDPLY-06491', typedef.get_domain_type(), jms_resource, class_name=_class_name,
174+
method_name=_method_name)
173175
else:
174176
_logger.info('WLSDPLY-06479', jms_resource, class_name=_class_name, method_name=_method_name)
175177
result[jms_resource] = OrderedDict()

core/src/main/resources/oracle/weblogic/deploy/messages/wlsdeploy_rb.properties

+10-10
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ WLSDPLY-06319=Added Coherence Cluster {0} cache configuration file from location
483483
WLSDPLY-06320=Added Coherence Cluster {0} persistence directory {1} type {2} to archive file
484484
WLSDPLY-06321=Unable to access Coherence Cluster {0} cache configuration file {1} and will not add the file to \
485485
the archive : {2}
486-
WLSDPLY-06322=Skipping system Coherence Cluster System Resource {0}
486+
WLSDPLY-06322=Skipping {0} Coherence Cluster System Resource {1}
487487

488488
# common_resources_discoverer.py
489489
WLSDPLY-06340=Discovering {0} JDBC System Resources
@@ -507,9 +507,9 @@ WLSDPLY-06357=Discovering {0} WLDF System Resources
507507
WLSDPLY-06358=Adding WLDF System Resource {0}
508508
WLSDPLY-06359=Collect script from location {0} for WLDF script action {1}
509509
WLSDPLY-06360=Unable to locate and add {0} Script file {1} to archive file : {2}
510-
WLSDPLY-06361=Skipping system JDBC System Resource {0}
511-
WLSDPLY-06362=Skipping system WLDF System Resource {0}
512-
WLSDPLY-06363=Skipping system File Store {0}
510+
WLSDPLY-06361=Skipping {0} JDBC System Resource {1}
511+
WLSDPLY-06362=Skipping {0} WLDF System Resource {1}
512+
WLSDPLY-06363=Skipping {0} File Store {1}
513513

514514
# deployments_discoverer.py
515515
WLSDPLY-06380=Discovering domain model deployments
@@ -537,8 +537,8 @@ WLSDPLY-06397=Unable to add application {0} binary {1} to archive : {2}
537537
WLSDPLY-06398=Application {0} has new source path location {1} which will match the archive file deployment location
538538
WLSDPLY-06399=Application {0} plan deployment has new source path location {1} which will match the \
539539
archive file deployment location
540-
WLSDPLY-06400=Skipping system application {0}
541-
WLSDPLY-06401=Skipping system shared library {0}
540+
WLSDPLY-06400=Skipping {0} application {1}
541+
WLSDPLY-06401=Skipping {0} shared library {1}
542542

543543
# domain_info_discoverer.py
544544
WLSDPLY-06420=Add the java archive files from the domain library {0} to the archive file
@@ -552,8 +552,8 @@ WLSDPLY-06442=Discovering {0} Startup Classes
552552
WLSDPLY-06443=Adding StartupClass {0}
553553
WLSDPLY-06445=Discovering {0} Shutdown Classes
554554
WLSDPLY-06446=Adding ShutdownClass {0}
555-
WLSDPLY-06447=Skipping system Startup Class {0}
556-
WLSDPLY-06448=Skipping system Shutdown Class {0}
555+
WLSDPLY-06447=Skipping {0} Startup Class {1}
556+
WLSDPLY-06448=Skipping {0} Shutdown Class {1}
557557

558558
# jms_resources_discoverer.py
559559
WLSDPLY-06460=Discovering JMS Resources
@@ -576,8 +576,8 @@ WLSDPLY-06487=Adding Group Param with Sub-Deployment name {0} to {1}
576576
WLSDPLY-06488=Key missing for Foreign JNDI Property Foreign Server {0} to {1}. The JNDI Property \
577577
will not be added to the discovered model.
578578
WLSDPLY-06489=Adding JNDI Property with name {0} to {1}
579-
WLSDPLY-06490=Skipping system JMS Server {0}
580-
WLSDPLY-06491=Skipping system JMS System Resource {0}
579+
WLSDPLY-06490=Skipping {0} JMS Server {1}
580+
WLSDPLY-06491=Skipping {0} JMS System Resource {1}
581581

582582
# topology_discoverer.py
583583
WLSDPLY-06600=Discovering domain model topology

0 commit comments

Comments
 (0)