Java Code Examples for com.sun.jmx.mbeanserver.Util#wildmatch()
The following examples show how to use
com.sun.jmx.mbeanserver.Util#wildmatch() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ObjectName.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
private final boolean matchDomains(ObjectName name) { if (_domain_pattern) { // wildmatch domains // This ObjectName is the pattern // The other ObjectName is the string. return Util.wildmatch(name.getDomain(),getDomain()); } return getDomain().equals(name.getDomain()); }
Example 2
Source File: ObjectName.java From Java8CN with Apache License 2.0 | 5 votes |
private final boolean matchDomains(ObjectName name) { if (_domain_pattern) { // wildmatch domains // This ObjectName is the pattern // The other ObjectName is the string. return Util.wildmatch(name.getDomain(),getDomain()); } return getDomain().equals(name.getDomain()); }
Example 3
Source File: ObjectName.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private final boolean matchDomains(ObjectName name) { if (_domain_pattern) { // wildmatch domains // This ObjectName is the pattern // The other ObjectName is the string. return Util.wildmatch(name.getDomain(),getDomain()); } return getDomain().equals(name.getDomain()); }
Example 4
Source File: ObjectName.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private final boolean matchDomains(ObjectName name) { if (_domain_pattern) { // wildmatch domains // This ObjectName is the pattern // The other ObjectName is the string. return Util.wildmatch(name.getDomain(),getDomain()); } return getDomain().equals(name.getDomain()); }
Example 5
Source File: ObjectName.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private final boolean matchDomains(ObjectName name) { if (_domain_pattern) { // wildmatch domains // This ObjectName is the pattern // The other ObjectName is the string. return Util.wildmatch(name.getDomain(),getDomain()); } return getDomain().equals(name.getDomain()); }
Example 6
Source File: ObjectName.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private final boolean matchDomains(ObjectName name) { if (_domain_pattern) { // wildmatch domains // This ObjectName is the pattern // The other ObjectName is the string. return Util.wildmatch(name.getDomain(),getDomain()); } return getDomain().equals(name.getDomain()); }
Example 7
Source File: ObjectName.java From JDKSourceCode1.8 with MIT License | 5 votes |
private final boolean matchDomains(ObjectName name) { if (_domain_pattern) { // wildmatch domains // This ObjectName is the pattern // The other ObjectName is the string. return Util.wildmatch(name.getDomain(),getDomain()); } return getDomain().equals(name.getDomain()); }
Example 8
Source File: ObjectName.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private final boolean matchDomains(ObjectName name) { if (_domain_pattern) { // wildmatch domains // This ObjectName is the pattern // The other ObjectName is the string. return Util.wildmatch(name.getDomain(),getDomain()); } return getDomain().equals(name.getDomain()); }
Example 9
Source File: ObjectName.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private final boolean matchDomains(ObjectName name) { if (isDomainPattern()) { // wildmatch domains // This ObjectName is the pattern // The other ObjectName is the string. return Util.wildmatch(name.getDomain(),getDomain()); } return getDomain().equals(name.getDomain()); }
Example 10
Source File: ObjectName.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private final boolean matchDomains(ObjectName name) { if (_domain_pattern) { // wildmatch domains // This ObjectName is the pattern // The other ObjectName is the string. return Util.wildmatch(name.getDomain(),getDomain()); } return getDomain().equals(name.getDomain()); }
Example 11
Source File: ObjectName.java From Java8CN with Apache License 2.0 | 4 votes |
private final boolean matchKeys(ObjectName name) { // If key property value pattern but not key property list // pattern, then the number of key properties must be equal // if (_property_value_pattern && !_property_list_pattern && (name._ca_array.length != _ca_array.length)) return false; // If key property value pattern or key property list pattern, // then every property inside pattern should exist in name // if (_property_value_pattern || _property_list_pattern) { final Map<String,String> nameProps = name._getKeyPropertyList(); final Property[] props = _ca_array; final String cn = _canonicalName; for (int i = props.length - 1; i >= 0 ; i--) { // Find value in given object name for key at current // index in receiver // final Property p = props[i]; final String k = p.getKeyString(cn); final String v = nameProps.get(k); // Did we find a value for this key ? // if (v == null) return false; // If this property is ok (same key, same value), go to next // if (_property_value_pattern && (p instanceof PatternProperty)) { // wildmatch key property values // p is the property pattern, v is the string if (Util.wildmatch(v,p.getValueString(cn))) continue; else return false; } if (v.equals(p.getValueString(cn))) continue; return false; } return true; } // If no pattern, then canonical names must be equal // final String p1 = name.getCanonicalKeyPropertyListString(); final String p2 = getCanonicalKeyPropertyListString(); return (p1.equals(p2)); }
Example 12
Source File: ObjectName.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private final boolean matchKeys(ObjectName name) { // If key property value pattern but not key property list // pattern, then the number of key properties must be equal // if (_property_value_pattern && !_property_list_pattern && (name._ca_array.length != _ca_array.length)) return false; // If key property value pattern or key property list pattern, // then every property inside pattern should exist in name // if (_property_value_pattern || _property_list_pattern) { final Map<String,String> nameProps = name._getKeyPropertyList(); final Property[] props = _ca_array; final String cn = _canonicalName; for (int i = props.length - 1; i >= 0 ; i--) { // Find value in given object name for key at current // index in receiver // final Property p = props[i]; final String k = p.getKeyString(cn); final String v = nameProps.get(k); // Did we find a value for this key ? // if (v == null) return false; // If this property is ok (same key, same value), go to next // if (_property_value_pattern && (p instanceof PatternProperty)) { // wildmatch key property values // p is the property pattern, v is the string if (Util.wildmatch(v,p.getValueString(cn))) continue; else return false; } if (v.equals(p.getValueString(cn))) continue; return false; } return true; } // If no pattern, then canonical names must be equal // final String p1 = name.getCanonicalKeyPropertyListString(); final String p2 = getCanonicalKeyPropertyListString(); return (p1.equals(p2)); }
Example 13
Source File: ObjectName.java From hottub with GNU General Public License v2.0 | 4 votes |
private final boolean matchKeys(ObjectName name) { // If key property value pattern but not key property list // pattern, then the number of key properties must be equal // if (_property_value_pattern && !_property_list_pattern && (name._ca_array.length != _ca_array.length)) return false; // If key property value pattern or key property list pattern, // then every property inside pattern should exist in name // if (_property_value_pattern || _property_list_pattern) { final Map<String,String> nameProps = name._getKeyPropertyList(); final Property[] props = _ca_array; final String cn = _canonicalName; for (int i = props.length - 1; i >= 0 ; i--) { // Find value in given object name for key at current // index in receiver // final Property p = props[i]; final String k = p.getKeyString(cn); final String v = nameProps.get(k); // Did we find a value for this key ? // if (v == null) return false; // If this property is ok (same key, same value), go to next // if (_property_value_pattern && (p instanceof PatternProperty)) { // wildmatch key property values // p is the property pattern, v is the string if (Util.wildmatch(v,p.getValueString(cn))) continue; else return false; } if (v.equals(p.getValueString(cn))) continue; return false; } return true; } // If no pattern, then canonical names must be equal // final String p1 = name.getCanonicalKeyPropertyListString(); final String p2 = getCanonicalKeyPropertyListString(); return (p1.equals(p2)); }
Example 14
Source File: ObjectName.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private final boolean matchKeys(ObjectName name) { // If key property value pattern but not key property list // pattern, then the number of key properties must be equal // if (_property_value_pattern && !_property_list_pattern && (name._ca_array.length != _ca_array.length)) return false; // If key property value pattern or key property list pattern, // then every property inside pattern should exist in name // if (_property_value_pattern || _property_list_pattern) { final Map<String,String> nameProps = name._getKeyPropertyList(); final Property[] props = _ca_array; final String cn = _canonicalName; for (int i = props.length - 1; i >= 0 ; i--) { // Find value in given object name for key at current // index in receiver // final Property p = props[i]; final String k = p.getKeyString(cn); final String v = nameProps.get(k); // Did we find a value for this key ? // if (v == null) return false; // If this property is ok (same key, same value), go to next // if (_property_value_pattern && (p instanceof PatternProperty)) { // wildmatch key property values // p is the property pattern, v is the string if (Util.wildmatch(v,p.getValueString(cn))) continue; else return false; } if (v.equals(p.getValueString(cn))) continue; return false; } return true; } // If no pattern, then canonical names must be equal // final String p1 = name.getCanonicalKeyPropertyListString(); final String p2 = getCanonicalKeyPropertyListString(); return (p1.equals(p2)); }
Example 15
Source File: ObjectName.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private final boolean matchKeys(ObjectName name) { // If key property value pattern but not key property list // pattern, then the number of key properties must be equal // if (_property_value_pattern && !_property_list_pattern && (name._ca_array.length != _ca_array.length)) return false; // If key property value pattern or key property list pattern, // then every property inside pattern should exist in name // if (_property_value_pattern || _property_list_pattern) { final Map<String,String> nameProps = name._getKeyPropertyList(); final Property[] props = _ca_array; final String cn = _canonicalName; for (int i = props.length - 1; i >= 0 ; i--) { // Find value in given object name for key at current // index in receiver // final Property p = props[i]; final String k = p.getKeyString(cn); final String v = nameProps.get(k); // Did we find a value for this key ? // if (v == null) return false; // If this property is ok (same key, same value), go to next // if (_property_value_pattern && (p instanceof PatternProperty)) { // wildmatch key property values // p is the property pattern, v is the string if (Util.wildmatch(v,p.getValueString(cn))) continue; else return false; } if (v.equals(p.getValueString(cn))) continue; return false; } return true; } // If no pattern, then canonical names must be equal // final String p1 = name.getCanonicalKeyPropertyListString(); final String p2 = getCanonicalKeyPropertyListString(); return (p1.equals(p2)); }
Example 16
Source File: ObjectName.java From JDKSourceCode1.8 with MIT License | 4 votes |
private final boolean matchKeys(ObjectName name) { // If key property value pattern but not key property list // pattern, then the number of key properties must be equal // if (_property_value_pattern && !_property_list_pattern && (name._ca_array.length != _ca_array.length)) return false; // If key property value pattern or key property list pattern, // then every property inside pattern should exist in name // if (_property_value_pattern || _property_list_pattern) { final Map<String,String> nameProps = name._getKeyPropertyList(); final Property[] props = _ca_array; final String cn = _canonicalName; for (int i = props.length - 1; i >= 0 ; i--) { // Find value in given object name for key at current // index in receiver // final Property p = props[i]; final String k = p.getKeyString(cn); final String v = nameProps.get(k); // Did we find a value for this key ? // if (v == null) return false; // If this property is ok (same key, same value), go to next // if (_property_value_pattern && (p instanceof PatternProperty)) { // wildmatch key property values // p is the property pattern, v is the string if (Util.wildmatch(v,p.getValueString(cn))) continue; else return false; } if (v.equals(p.getValueString(cn))) continue; return false; } return true; } // If no pattern, then canonical names must be equal // final String p1 = name.getCanonicalKeyPropertyListString(); final String p2 = getCanonicalKeyPropertyListString(); return (p1.equals(p2)); }
Example 17
Source File: ObjectName.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private final boolean matchKeys(ObjectName name) { // If key property value pattern but not key property list // pattern, then the number of key properties must be equal // if (_property_value_pattern && !_property_list_pattern && (name._ca_array.length != _ca_array.length)) return false; // If key property value pattern or key property list pattern, // then every property inside pattern should exist in name // if (_property_value_pattern || _property_list_pattern) { final Map<String,String> nameProps = name._getKeyPropertyList(); final Property[] props = _ca_array; final String cn = _canonicalName; for (int i = props.length - 1; i >= 0 ; i--) { // Find value in given object name for key at current // index in receiver // final Property p = props[i]; final String k = p.getKeyString(cn); final String v = nameProps.get(k); // Did we find a value for this key ? // if (v == null) return false; // If this property is ok (same key, same value), go to next // if (_property_value_pattern && (p instanceof PatternProperty)) { // wildmatch key property values // p is the property pattern, v is the string if (Util.wildmatch(v,p.getValueString(cn))) continue; else return false; } if (v.equals(p.getValueString(cn))) continue; return false; } return true; } // If no pattern, then canonical names must be equal // final String p1 = name.getCanonicalKeyPropertyListString(); final String p2 = getCanonicalKeyPropertyListString(); return (p1.equals(p2)); }
Example 18
Source File: ObjectName.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
private final boolean matchKeys(ObjectName name) { // If key property value pattern but not key property list // pattern, then the number of key properties must be equal // if (_property_value_pattern && !_property_list_pattern && (name._ca_array.length != _ca_array.length)) return false; // If key property value pattern or key property list pattern, // then every property inside pattern should exist in name // if (_property_value_pattern || _property_list_pattern) { final Map<String,String> nameProps = name._getKeyPropertyList(); final Property[] props = _ca_array; final String cn = _canonicalName; for (int i = props.length - 1; i >= 0 ; i--) { // Find value in given object name for key at current // index in receiver // final Property p = props[i]; final String k = p.getKeyString(cn); final String v = nameProps.get(k); // Did we find a value for this key ? // if (v == null) return false; // If this property is ok (same key, same value), go to next // if (_property_value_pattern && (p instanceof PatternProperty)) { // wildmatch key property values // p is the property pattern, v is the string if (Util.wildmatch(v,p.getValueString(cn))) continue; else return false; } if (v.equals(p.getValueString(cn))) continue; return false; } return true; } // If no pattern, then canonical names must be equal // final String p1 = name.getCanonicalKeyPropertyListString(); final String p2 = getCanonicalKeyPropertyListString(); return (p1.equals(p2)); }
Example 19
Source File: ObjectName.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
private final boolean matchKeys(ObjectName name) { // If key property value pattern but not key property list // pattern, then the number of key properties must be equal // if (_property_value_pattern && !_property_list_pattern && (name._ca_array.length != _ca_array.length)) return false; // If key property value pattern or key property list pattern, // then every property inside pattern should exist in name // if (_property_value_pattern || _property_list_pattern) { final Map<String,String> nameProps = name._getKeyPropertyList(); final Property[] props = _ca_array; final String cn = _canonicalName; for (int i = props.length - 1; i >= 0 ; i--) { // Find value in given object name for key at current // index in receiver // final Property p = props[i]; final String k = p.getKeyString(cn); final String v = nameProps.get(k); // Did we find a value for this key ? // if (v == null) return false; // If this property is ok (same key, same value), go to next // if (_property_value_pattern && (p instanceof PatternProperty)) { // wildmatch key property values // p is the property pattern, v is the string if (Util.wildmatch(v,p.getValueString(cn))) continue; else return false; } if (v.equals(p.getValueString(cn))) continue; return false; } return true; } // If no pattern, then canonical names must be equal // final String p1 = name.getCanonicalKeyPropertyListString(); final String p2 = getCanonicalKeyPropertyListString(); return (p1.equals(p2)); }
Example 20
Source File: ObjectName.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private final boolean matchKeys(ObjectName name) { // If key property value pattern but not key property list // pattern, then the number of key properties must be equal // if (_property_value_pattern && !_property_list_pattern && (name._ca_array.length != _ca_array.length)) return false; // If key property value pattern or key property list pattern, // then every property inside pattern should exist in name // if (_property_value_pattern || _property_list_pattern) { final Map<String,String> nameProps = name._getKeyPropertyList(); final Property[] props = _ca_array; final String cn = _canonicalName; for (int i = props.length - 1; i >= 0 ; i--) { // Find value in given object name for key at current // index in receiver // final Property p = props[i]; final String k = p.getKeyString(cn); final String v = nameProps.get(k); // Did we find a value for this key ? // if (v == null) return false; // If this property is ok (same key, same value), go to next // if (_property_value_pattern && (p instanceof PatternProperty)) { // wildmatch key property values // p is the property pattern, v is the string if (Util.wildmatch(v,p.getValueString(cn))) continue; else return false; } if (v.equals(p.getValueString(cn))) continue; return false; } return true; } // If no pattern, then canonical names must be equal // final String p1 = name.getCanonicalKeyPropertyListString(); final String p2 = getCanonicalKeyPropertyListString(); return (p1.equals(p2)); }