public class DiscoveryNodeFilters
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DiscoveryNodeFilters.OpType |
Modifier and Type | Field and Description |
---|---|
static java.util.function.Consumer<Settings> |
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. |
Modifier and Type | Method and Description |
---|---|
static DiscoveryNodeFilters |
buildFromKeyValue(DiscoveryNodeFilters.OpType opType,
java.util.Map<java.lang.String,java.lang.String> filters) |
static DiscoveryNodeFilters |
buildFromSettings(DiscoveryNodeFilters.OpType opType,
java.lang.String prefix,
Settings settings) |
boolean |
match(DiscoveryNode node) |
java.lang.String |
toString()
Generates a human-readable string for the DiscoverNodeFilters.
|
public static DiscoveryNodeFilters buildFromSettings(DiscoveryNodeFilters.OpType opType, java.lang.String prefix, Settings settings)
public static DiscoveryNodeFilters buildFromKeyValue(DiscoveryNodeFilters.OpType opType, java.util.Map<java.lang.String,java.lang.String> filters)
public boolean match(DiscoveryNode node)
public java.lang.String toString()
_id:"id1 OR blah",name:"blah OR name2"
toString
in class java.lang.Object