Exemplo n.º 1
0
 def __init__(self,
              model_context,
              resource_dictionary,
              base_location,
              wlst_mode=WlstModes.OFFLINE,
              aliases=None):
     """
     Initialize this discoverer instance with the specific information needed to discover coherence resources.
     :param model_context: context about the model for this instance of discover domain
     :param resource_dictionary: was provided on the discover call, else use initialized resources
     :param base_location: current context for discover or new context if not provided
     """
     Discoverer.__init__(self, model_context, base_location, wlst_mode,
                         aliases)
     self._dictionary = resource_dictionary
     self._add_att_handler(
         model_constants.COHERENCE_CUSTOM_CLUSTER_CONFIGURATION,
         self._add_custom_configuration_to_archive)
     self._add_att_handler(model_constants.COHERENCE_CACHE_CONFIG_FILE,
                           self._add_cache_config)
     self._add_att_handler(model_constants.COHERENCE_ACTIVE_DIRECTORY,
                           self._add_active_directory)
     self._add_att_handler(model_constants.COHERENCE_SNAPSHOT_DIRECTORY,
                           self._add_snapshot_directory)
     self._add_att_handler(model_constants.COHERENCE_TRASH_DIRECTORY,
                           self._add_trash_directory)
Exemplo n.º 2
0
 def __init__(self,
              model,
              model_context,
              base_location,
              wlst_mode=WlstModes.OFFLINE,
              aliases=None):
     Discoverer.__init__(self, model_context, base_location, wlst_mode,
                         aliases)
     self._model = model
 def __init__(self,
              model_context,
              resource_dictionary,
              base_location,
              wlst_mode=WlstModes.OFFLINE,
              aliases=None):
     Discoverer.__init__(self, model_context, base_location, wlst_mode,
                         aliases)
     self._dictionary = resource_dictionary
Exemplo n.º 4
0
    def __init__(self, model_context, resource_dictionary, base_location,
                 wlst_mode=WlstModes.OFFLINE, aliases=None, variable_injector=None):
        """

        :param model_context: context about the model for this instance of the discover domain
        :param resource_dictionary: to populate with global resources. Uses the initialized resources if none passed
        """
        Discoverer.__init__(self, model_context, base_location, wlst_mode, aliases, variable_injector)
        self._dictionary = resource_dictionary
 def __init__(self,
              model_context,
              topology_dictionary,
              base_location,
              wlst_mode=WlstModes.OFFLINE,
              aliases=None,
              credential_injector=None):
     Discoverer.__init__(self, model_context, base_location, wlst_mode,
                         aliases, credential_injector)
     self._dictionary = topology_dictionary
Exemplo n.º 6
0
 def __init__(self,
              model_context,
              domain_info_dictionary,
              base_location,
              wlst_mode=WlstModes.OFFLINE,
              aliases=None,
              variable_injector=None):
     Discoverer.__init__(self, model_context, base_location, wlst_mode,
                         aliases, variable_injector)
     self._dictionary = domain_info_dictionary
Exemplo n.º 7
0
    def __init__(self, model_context, resource_dictionary, base_location, wlst_mode=WlstModes.OFFLINE, aliases=None):
        """

        :param model_context: context about the model for this instance of discover domain
        :param resource_dictionary: to populate the common resources. By default, populates the initialized resources
        :param base_location: to look for common weblogic resources. By default this is the global path or '/'
        """
        Discoverer.__init__(self, model_context, base_location, wlst_mode, aliases)
        self._dictionary = resource_dictionary
        self._add_att_handler(model_constants.PATH_TO_SCRIPT, self._add_wldf_script)
Exemplo n.º 8
0
 def __init__(self, model_context, topology_dictionary, base_location,
              wlst_mode=WlstModes.OFFLINE, aliases=None, variable_injector=None):
     """
     Instantiate an instance of the TopologyDiscoverer class with the runtime information provided by
     the init parameters.
     :param model_context: containing the arguments for this discover
     :param topology_dictionary: dictionary in which to add discovered topology information
     :param wlst_mode: indicates whether this discover is run in online or offline mode
     """
     Discoverer.__init__(self, model_context, base_location, wlst_mode, aliases, variable_injector)
     self._dictionary = topology_dictionary
     self._add_att_handler(model_constants.CLASSPATH, self._add_classpath_libraries_to_archive)
     self._add_att_handler(model_constants.CUSTOM_IDENTITY_KEYSTORE_FILE, self._add_keystore_file_to_archive)
     self._add_att_handler(model_constants.CUSTOM_TRUST_KEYSTORE_FILE, self._add_keystore_file_to_archive)