Class DiscoveryNodeFilters

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

public class DiscoveryNodeFilters extends Object
  • Field Details

    • IP_VALIDATOR

      public static final BiConsumer<String,String> IP_VALIDATOR
      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.
  • Method Details

    • buildFromKeyValue

      public static DiscoveryNodeFilters buildFromKeyValue(DiscoveryNodeFilters.OpType opType, Map<String,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