Class MBeansObjectNameQueryFilter

java.lang.Object
org.apache.activemq.console.filter.AbstractQueryFilter
org.apache.activemq.console.filter.MBeansObjectNameQueryFilter
All Implemented Interfaces:
QueryFilter

public class MBeansObjectNameQueryFilter extends AbstractQueryFilter
  • Field Details

  • Constructor Details

    • MBeansObjectNameQueryFilter

      public MBeansObjectNameQueryFilter(MBeanServerConnection jmxConnection)
      Creates an mbeans object name query filter that will query on the given JMX connection
      Parameters:
      jmxConnection - - JMX connection to use
  • Method Details

    • query

      public List query(List queries) throws MalformedObjectNameException, IOException
      Queries the JMX service using a mapping of keys and values to construct the object name
      Parameters:
      queries - - mapping of keys and values
      Returns:
      collection of ObjectInstance that matches the query
      Throws:
      MalformedObjectNameException - - if the given string is an invalid object name
      IOException - - if there is a problem querying the JMX context
    • queryMBeans

      protected List queryMBeans(ObjectName objName, String queryExpStr) throws IOException
      Advance query that enables you to specify both the object name and the query expression to use. Note: Query expression is currently unsupported.
      Parameters:
      objName - - object name to use for query
      queryExpStr - - query expression string
      Returns:
      set of mbeans that matches the query
      Throws:
      IOException - - if there is a problem querying the JMX context
    • createQueryExp

      protected QueryExp createQueryExp(String queryExpStr)
      Creates a query expression based on the query expression string Note: currently unsupported
      Parameters:
      queryExpStr - - query expression string
      Returns:
      the created query expression