Package org.elasticsearch.cluster.node
Class DiscoveryNodeFilters
java.lang.Object
org.elasticsearch.cluster.node.DiscoveryNodeFilters
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic BiConsumer<String,String>Validates the IP addresses in a group ofSettingsby 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 Summary
Modifier and TypeMethodDescriptionstatic DiscoveryNodeFiltersbuildFromKeyValue(DiscoveryNodeFilters.OpType opType, Map<String,String> filters)booleanbooleanmatch(DiscoveryNode node)toString()Generates a human-readable string for the DiscoverNodeFilters.static DiscoveryNodeFilterstrimTier(DiscoveryNodeFilters original)Removes any filters that should not be considered, returning a newDiscoveryNodeFiltersobject.
-
Field Details
-
IP_VALIDATOR
Validates the IP addresses in a group ofSettingsby 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
Removes any filters that should not be considered, returning a newDiscoveryNodeFiltersobject. If the filtered object has no filters after trimming,nullis returned. -
match
-
isOnlyAttributeValueFilter
public boolean isOnlyAttributeValueFilter()- Returns:
- true if this filter only contains attribute values, i.e., no node specific info.
-
toString
Generates a human-readable string for the DiscoverNodeFilters. Example:_id:"id1 OR blah",name:"blah OR name2"
-