Package tigase.conf

Interface ConfigRepositoryIfc

    • Method Detail

      • getItemsForComponent

        Set<ConfigItem> getItemsForComponent​(String compName)
        Get set of config items stored for component
        Returns:
        set of component items
      • get

        Object get​(String compName,
                   String node,
                   String key,
                   Object def)
        Returns a configuration setting for a given component, node and key. If the configuration parameters is not found, returns given default value.
        Returns:
        value
      • set

        void set​(String compName,
                 String node,
                 String key,
                 Object value)
        Puts/sets/adds/updates a configuration setting to the configuration repository.
      • getCompNames

        String[] getCompNames()
        Returns all component names for which there are some configuration settings available.
        Returns:
        array of component names
      • getKeys

        String[] getKeys​(String compName,
                         String node)
        Returns an array of all configuration keys for a given component and configuration node.
        Returns:
        array of keys for component and node
      • remove

        void remove​(String compName,
                    String node,
                    String key)
        Removes a configuration setting from the configuration repository.
      • setDefHostname

        void setDefHostname​(String hostname)
        This is used to load a configuration for a selected cluster node. The configuration repository (file or database) may contain settings for all cluster nodes, some of the settings may be exclusive to one or another cluster node. This method informs the repository what node name (hostname) it is running on.