javax.management
public interface QueryExp extends Serializable
where
clauses of databases to an
ObjectName
. Instances of this class are usually
returned by the static methods of the Query
classes.
If a custom implementation is required, it is better to
extend the QueryEval
class, rather than simply
implementing this interface, in order to ensure that
the setMBeanServer(MBeanServer)
method functions
correctly.Modifier and Type | Method and Description |
---|---|
boolean |
apply(ObjectName name)
Applies the query to the specified management bean.
|
void |
setMBeanServer(MBeanServer server)
Changes the
MBeanServer on which this query is performed. |
boolean apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException
name
- the name of the management bean.BadStringOperationException
- if an invalid string
operation is used by
the query.BadBinaryOpValueExpException
- if an invalid expression
is used by the query.BadAttributeValueExpException
- if an invalid attribute
is used by the query.InvalidApplicationException
- if the query is applied
to the wrong type of bean.void setMBeanServer(MBeanServer server)
MBeanServer
on which this query is performed.server
- the new server to use.