Class MBeansRegExQueryFilter
- java.lang.Object
-
- org.apache.activemq.console.filter.AbstractQueryFilter
-
- org.apache.activemq.console.filter.RegExQueryFilter
-
- org.apache.activemq.console.filter.MBeansRegExQueryFilter
-
- All Implemented Interfaces:
QueryFilter
public class MBeansRegExQueryFilter extends RegExQueryFilter
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.console.filter.RegExQueryFilter
REGEX_PREFIX
-
Fields inherited from class org.apache.activemq.console.filter.AbstractQueryFilter
next
-
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER
-
-
Constructor Summary
Constructors Constructor Description MBeansRegExQueryFilter(QueryFilter next)
Creates a regular expression query that is able to match the values of specific mbeans
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
matches(Object data, Map regex)
Try to match the object data using the regular expression map.protected boolean
matches(AttributeList data, Map regex)
Try to match the attribute list using the regular expression mapprotected boolean
matches(ObjectInstance data, Map regex)
Try to match the object instance using the regular expression mapprotected boolean
matches(ObjectName data, Map regex)
Try to match the object name instance using the regular expression map-
Methods inherited from class org.apache.activemq.console.filter.RegExQueryFilter
compileQuery, filterCollectionUsingRegEx, isRegularExpression, query
-
Methods inherited from class org.apache.activemq.console.filter.AbstractQueryFilter
query
-
-
-
-
Constructor Detail
-
MBeansRegExQueryFilter
public MBeansRegExQueryFilter(QueryFilter next)
Creates a regular expression query that is able to match the values of specific mbeans- Parameters:
next
- - next query filter
-
-
Method Detail
-
matches
protected boolean matches(Object data, Map regex) throws Exception
Try to match the object data using the regular expression map. The regex map contains a key-value mapping of an attribute key to a regular expression the value of the key should match. The basic rule of matching is that the data must contain a property key that is included in the regex map, and that the value of the property key should match the regex specified.- Specified by:
matches
in classRegExQueryFilter
- Parameters:
data
- - object data to matchregex
- - regex map- Returns:
- true if the data matches the regex map specified
- Throws:
Exception
-
matches
protected boolean matches(ObjectInstance data, Map regex)
Try to match the object instance using the regular expression map- Parameters:
data
- - object instance to matchregex
- - regex map- Returns:
- true if the object instance matches the regex map
-
matches
protected boolean matches(ObjectName data, Map regex)
Try to match the object name instance using the regular expression map- Parameters:
data
- - object name to matchregex
- - regex map- Returns:
- true if the object name matches the regex map
-
matches
protected boolean matches(AttributeList data, Map regex)
Try to match the attribute list using the regular expression map- Parameters:
data
- - attribute list to matchregex
- - regex map- Returns:
- true if the attribute list matches the regex map
-
-