Package com.hazelcast.config.matcher
Class MatchingPointConfigPatternMatcher
java.lang.Object
com.hazelcast.config.matcher.MatchingPointConfigPatternMatcher
- All Implemented Interfaces:
ConfigPatternMatcher
This
ConfigPatternMatcher
supports a simplified wildcard matching.
See "Config.md ## Using Wildcard" for details about the syntax options.
In addition the candidates are weighted by the best match. The best result is returned.
Throws InvalidConfigurationException
is multiple configurations are found.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MatchingPointConfigPatternMatcher
public MatchingPointConfigPatternMatcher()
-
-
Method Details
-
matches
public String matches(Iterable<String> configPatterns, String itemName) throws InvalidConfigurationException Description copied from interface:ConfigPatternMatcher
Returns the best match for an item name out of a list of configuration patterns.- Specified by:
matches
in interfaceConfigPatternMatcher
- Parameters:
configPatterns
- list of known configuration patternsitemName
- item name to match- Returns:
- a key of configPatterns which matches
the item name or
null
if there is no match - Throws:
InvalidConfigurationException
- if ambiguous configurations are found
-
equals
-
hashCode
public int hashCode()
-