@@ -94,6 +94,34 @@ def get(self, attribute):
9494 self .__logger .finest ('WLSDPLY-00006' , attribute , class_name = self .__class_name , method_name = _method_name )
9595 return result
9696
97+ def is_set (self , attribute ):
98+ """
99+ Determine if the specified attribute has been set.
100+ In online WLST, attributes may return values that did not originate in config.xml (not set).
101+ For offline WLST, return True always.
102+ :param attribute: name of the WLST attribute
103+ :return: True if the value has been set or in offline mode, False otherwise
104+ :raises: Exception for the specified tool type: if a WLST error occurs
105+ """
106+ _method_name = 'is_set'
107+ self .__logger .finest ('WLSDPLY-00124' , attribute , class_name = self .__class_name , method_name = _method_name )
108+
109+ if not self .__check_online_connection ():
110+ return True
111+
112+ try :
113+ mbean_path = self .get_pwd ()
114+ mbean = self .get_mbean_for_wlst_path (mbean_path )
115+ result = mbean .isSet (attribute )
116+ except (self .__load_global ('WLSTException' ), offlineWLSTException ), e :
117+ pwe = exception_helper .create_exception (self .__exception_type , 'WLSDPLY-00125' , attribute ,
118+ self .__get_exception_mode (e ), _format_exception (e ), error = e )
119+ self .__logger .throwing (class_name = self .__class_name , method_name = _method_name , error = pwe )
120+ raise pwe
121+
122+ self .__logger .finest ('WLSDPLY-00126' , attribute , class_name = self .__class_name , method_name = _method_name )
123+ return result
124+
97125 def set_if_needed (self , wlst_name , wlst_value , masked = False ):
98126 """
99127 Set the WLST attribute to the specified value if the name and value are not None.
0 commit comments