Class DiscoveryNodeFilters

java.lang.Object
org.elasticsearch.cluster.node.DiscoveryNodeFilters

public class DiscoveryNodeFilters extends Object
  • Method Details

    • validateIpValue

      public static void validateIpValue(String propertyKey, List<String> values)
      Validates the IP addresses in a group of Settings by looking for the keys "_ip", "_host_ip", and "_publish_ip" and ensuring each of their comma separated values that has no wildcards is a valid IP address.
    • buildFromKeyValues

      public static DiscoveryNodeFilters buildFromKeyValues(DiscoveryNodeFilters.OpType opType, Map<String,List<String>> filters)
    • trimTier

      @Nullable public static DiscoveryNodeFilters trimTier(@Nullable DiscoveryNodeFilters original)
      Removes any filters that should not be considered, returning a new DiscoveryNodeFilters object. If the filtered object has no filters after trimming, null is returned.
    • match

      public boolean match(DiscoveryNode node)
    • isOnlyAttributeValueFilter

      public boolean isOnlyAttributeValueFilter()
      Returns:
      true if this filter only contains attribute values, i.e., no node specific info.
    • toString

      public String toString()
      Generates a human-readable string for the DiscoverNodeFilters. Example: _id:"id1 OR blah",name:"blah OR name2"
      Overrides:
      toString in class Object