org.apache.activemq.console.filter
Class MBeansRegExQueryFilter

java.lang.Object
  extended by org.apache.activemq.console.filter.AbstractQueryFilter
      extended by org.apache.activemq.console.filter.RegExQueryFilter
          extended by 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
MBeansRegExQueryFilter(QueryFilter next)
          Creates a regular expression query that is able to match the values of specific mbeans
 
Method Summary
protected  boolean matches(AttributeList data, Map regex)
          Try to match the attribute list using the regular expression map
protected  boolean matches(ObjectInstance data, Map regex)
          Try to match the object instance using the regular expression map
protected  boolean matches(Object data, Map regex)
          Try to match the object data using the regular expression map.
protected  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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 class RegExQueryFilter
Parameters:
data - - object data to match
regex - - 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 match
regex - - 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 match
regex - - 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 match
regex - - regex map
Returns:
true if the attribute list matches the regex map


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.