01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package javax.management;
10:
11: import java.io.Serializable;
12:
13: /**
14: * Represents a query expression. Query expressions are created with the {@link Query} class.
15: *
16: * @version $Revision: 1.7 $
17: */
18: public interface QueryExp extends Serializable {
19: /**
20: * Applies this expression on the specified MBean.
21: *
22: * @param name The <code>ObjectName</code> of the <code>MBean</code> on which the expression is applied.
23: * @return True if the query was successfully applied, false otherwise.
24: */
25: public boolean apply(ObjectName name)
26: throws BadStringOperationException,
27: BadBinaryOpValueExpException,
28: BadAttributeValueExpException, InvalidApplicationException;
29:
30: /**
31: * Sets the <code>MBeanServer</code> used (possibly) to apply the query expression, for example to retrieve
32: * the value of an attribute for the MBean specified in {@link #apply}
33: */
34: public void setMBeanServer(MBeanServer server);
35: }
|