javax.management
public interface QueryExp extends Serializable
where
clauses of databases to an
{@link ObjectName}. Instances of this class are usually
returned by the static methods of the {@link Query} classes.
If a custom implementation is required, it is better to
extend the {@link QueryEval} class, rather than simply
implementing this interface, in order to ensure that
the {@link #setMBeanServer(MBeanServer)} method functions
correctly.
Since: 1.5
Method Summary | |
---|---|
boolean | apply(ObjectName name)
Applies the query to the specified management bean.
|
void | setMBeanServer(MBeanServer server)
Changes the {@link MBeanServer} on which this query is performed.
|
Parameters: name the name of the management bean.
Returns: true if the query was applied successfully.
Throws: 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.
Parameters: server the new server to use.