Class TopologyCacheFilter


  • public class TopologyCacheFilter
    extends Object
    Class used to filter what we look for in the topology cache. This is done in particular to avoid problems of performance when we know what we are looking for. It is particularly useful to avoid searching for monitoring information.
    • Constructor Detail

      • TopologyCacheFilter

        public TopologyCacheFilter()
    • Method Detail

      • setSearchBaseDNInformation

        public void setSearchBaseDNInformation​(boolean searchBaseDNInformation)
        Sets whether we must search for base DN information or not.
        Parameters:
        searchBaseDNInformation - whether we must search for base DN information or not.
      • setSearchMonitoringInformation

        public void setSearchMonitoringInformation​(boolean searchMonitoringInformation)
        Sets whether we must search for monitoring information or not.
        Parameters:
        searchMonitoringInformation - whether we must search for monitoring information or not.
      • addBaseDNToSearch

        public void addBaseDNToSearch​(DN dn)
        Adds one of the base DNs we must search for. If at least one baseDN is added using this method, only the added baseDNs are searched. If no base DN is added, all the base DNs will be retrieved.
        Parameters:
        dn - the base DN to look for.
      • addBaseDNsToSearch

        public void addBaseDNsToSearch​(Collection<DN> dns)
        Adds all the base DNs we must search for. If at least one baseDN is added using this method, only the added baseDNs are searched. If no base DN is added, all the base DNs will be retrieved.
        Parameters:
        dns - the base DNs to look for.
      • getBaseDNsToSearch

        public Set<DN> getBaseDNsToSearch()
        Returns the list of base DNs that will be searched for. If the list is empty we will search for all the base DNs.
        Returns:
        the list of base DNs we will search for.