javax.management
Interface QueryExp

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ClassQueryExp (src) , CompositeQueryExp (src) , InstanceOfQueryExp (src) , NetworkRegistryQuery (src) , ObjectName (src)

public interface QueryExp
extends java.io.Serializable

A query expression.

An implementation of this interface can be used in a query. Multiple query expressions can be used together to form a more complex query.


Method Summary
 boolean apply(ObjectName (src)  name)
          Apply this query expression to an MBean.
 void setMBeanServer(MBeanServer (src)  server)
          Set the MBeanServer for this query.
 

Method Detail

apply

public boolean apply(ObjectName (src)  name)
              throws BadStringOperationException (src) ,
                     BadBinaryOpValueExpException (src) ,
                     BadAttributeValueExpException (src) ,
                     InvalidApplicationException (src) 
Apply this query expression to an MBean.

Parameters:
name - the object name of the mbean
Returns:
true or false as the result of the query expression.
Throws:
BadStringOperationException (src) - when an invalid string operation is used during query construction
BadBinaryOpValueExpException (src) - when an invalid binary operation is used during query construction
BadAttributeValueExpException (src) - when an invalid MBean attribute is used during query construction
InvalidApplicationException (src) - when trying to apply a subquery expression to an MBean or an attribute expression to an MBean of the wrong class.

setMBeanServer

public void setMBeanServer(MBeanServer (src)  server)
Set the MBeanServer for this query. Only MBeans registered in this server can be used in queries.

Parameters:
server - the MBeanServer