java.lang.Object
org.elasticsearch.cluster.node.DiscoveryNodeFilters
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DiscoveryNodeFilters
buildFromKeyValues
(DiscoveryNodeFilters.OpType opType, Map<String, List<String>> filters) boolean
boolean
boolean
match
(DiscoveryNode node) toString()
Generates a human-readable string for the DiscoverNodeFilters.static DiscoveryNodeFilters
trimTier
(DiscoveryNodeFilters original) Removes any filters that should not be considered, returning a newDiscoveryNodeFilters
object.static void
validateIpValue
(String propertyKey, List<String> values) Validates the IP addresses in a group ofSettings
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.
-
Field Details
-
SINGLE_NODE_NAMES
-
-
Method Details
-
validateIpValue
Validates the IP addresses in a group ofSettings
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
Removes any filters that should not be considered, returning a newDiscoveryNodeFilters
object. If the filtered object has no filters after trimming,null
is returned. -
match
-
isOnlyAttributeValueFilter
public boolean isOnlyAttributeValueFilter()- Returns:
- true if this filter only contains attribute values, i.e., no node specific info.
-
isSingleNodeFilter
public boolean isSingleNodeFilter()- Returns:
- true if filter is for a single node
-
toString
Generates a human-readable string for the DiscoverNodeFilters. Example:_id:"id1 OR blah",name:"blah OR name2"
-