Skip to content

Commit fea2479

Browse files
continuing work on alias definition changes
1 parent 6242872 commit fea2479

25 files changed

+667
-941
lines changed

core/src/main/python/wlsdeploy/tool/util/attribute_setter.py

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from wlsdeploy.aliases.model_constants import CAPACITY
2222
from wlsdeploy.aliases.model_constants import CLUSTER
23+
from wlsdeploy.aliases.model_constants import COHERENCE_CLUSTER_SYSTEM_RESOURCE
2324
from wlsdeploy.aliases.model_constants import CONTEXT_REQUEST_CLASS
2425
from wlsdeploy.aliases.model_constants import DISTRIBUTED_QUEUE
2526
from wlsdeploy.aliases.model_constants import DISTRIBUTED_TOPIC
@@ -59,6 +60,7 @@
5960
from wlsdeploy.aliases.model_constants import SECURITY_CONFIGURATION
6061
from wlsdeploy.aliases.model_constants import SELF_TUNING
6162
from wlsdeploy.aliases.model_constants import SERVER
63+
from wlsdeploy.aliases.model_constants import SERVER_TEMPLATE
6264
from wlsdeploy.aliases.model_constants import SMTP_NOTIFICATION
6365
from wlsdeploy.aliases.model_constants import SNMP_NOTIFICATION
6466
from wlsdeploy.aliases.model_constants import TEMPLATE
@@ -291,6 +293,19 @@ def set_server_mbean(self, location, key, value, wlst_value):
291293
self.set_attribute(location, key, mbean, wlst_merge_value=wlst_value, use_raw_value=True)
292294
return
293295

296+
def set_server_template_mbean(self, location, key, value, wlst_value):
297+
"""
298+
Set the Server Template MBean.
299+
:param location: the location
300+
:param key: the attribute name
301+
:param value: the string value
302+
:param wlst_value: the existing value of the attribute from WLST
303+
:raises BundleAwareException of the specified type: if the server template is not found
304+
"""
305+
mbean = self.__find_in_location(LocationContext(), SERVER_TEMPLATE, value, required=True)
306+
self.set_attribute(location, key, mbean, wlst_merge_value=wlst_value, use_raw_value=True)
307+
return
308+
294309
def set_cluster_mbean(self, location, key, value, wlst_value):
295310
"""
296311
Set the Cluster MBean.
@@ -304,6 +319,19 @@ def set_cluster_mbean(self, location, key, value, wlst_value):
304319
self.set_attribute(location, key, mbean, wlst_merge_value=wlst_value, use_raw_value=True)
305320
return
306321

322+
def set_coherence_cluster_mbean(self, location, key, value, wlst_value):
323+
"""
324+
Set the Log Filter MBean.
325+
:param location: the location
326+
:param key: the attribute name
327+
:param value: the string value
328+
:param wlst_value: the existing value of the attribute from WLST
329+
:raises BundleAwareException of the specified type: if store is not found
330+
"""
331+
mbean = self.__find_in_location(LocationContext(), COHERENCE_CLUSTER_SYSTEM_RESOURCE, value, required=True)
332+
self.set_attribute(location, key, mbean, wlst_merge_value=wlst_value, use_raw_value=True)
333+
return
334+
307335
def set_machine_mbean(self, location, key, value, wlst_value):
308336
"""
309337
Set the Machine MBean.
@@ -645,8 +673,8 @@ def __find_log_filter_mbean(self, location, filter_name):
645673
Find the domain level log filter with the specified name and return its WLST mbean.
646674
:param location: the WLST location of the attribute
647675
:param filter_name: the name of the log filter to find
648-
:return: the mbean for the store
649-
:raises BundleAwareException of the specified type: if store is not found
676+
:return: the mbean for the log filter
677+
:raises BundleAwareException of the specified type: if log filter is not found
650678
"""
651679
method_name = '__find_log_filter_mbean'
652680
domain_location = self.__get_domain_location(location)

core/src/main/resources/oracle/weblogic/deploy/aliases/category_modules/AppDeployment.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"ParallelDeployModules": [ {"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "ParallelDeployModules", "wlst_path": "WP001", "value": {"default": "false"}, "wlst_type": "boolean" } ],
3737
"PlanDir": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "PlanDir", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string", "access": "${:RO}", "uses_path_tokens": "true" } ],
3838
"PlanPath": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "PlanPath", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string", "access": "${:RO}", "uses_path_tokens": "true" } ],
39-
"PlanStagingMode": [ {"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "PlanStagingMode", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string" } ],
39+
"PlanStagingMode": [ {"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "PlanStagingMode", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string", "access": "${:RO}"} ],
4040
"RootStagingDir": [ {"version": "[10,)", "wlst_mode": "online", "wlst_name": "RootStagingDir", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string", "get_method": "GET", "uses_path_tokens": "true", "access": "RO" } ],
4141
"SecurityDDModel": [ {"version": "[10,12.1.2)", "wlst_mode": "both", "wlst_name": "Security${Dd:DD}Model", "wlst_path": "WP001", "value": {"default": "DDOnly"}, "wlst_type": "string", "access": "${:RO}" },
4242
{"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "SecurityDDModel", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string", "access": "${:RO}" }],

0 commit comments

Comments
 (0)