KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > management > ValueExp


1 /*
2  * @(#)ValueExp.java 4.21 04/05/18
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.management;
9
10
11 /**
12  * Represents values that can be passed as arguments to
13  * relational expressions. Strings, numbers, attributes are valid values
14  * and should be represented by implementations of <CODE>ValueExp</CODE>.
15  *
16  * @since 1.5
17  */

18 public interface ValueExp extends java.io.Serializable JavaDoc {
19
20     /**
21      * Applies the ValueExp on a MBean.
22      *
23      * @param name The name of the MBean on which the ValueExp will be applied.
24      *
25      * @return The <CODE>ValueExp</CODE>.
26      *
27      * @exception BadStringOperationException
28      * @exception BadBinaryOpValueExpException
29      * @exception BadAttributeValueExpException
30      * @exception InvalidApplicationException
31      */

32     public ValueExp JavaDoc apply(ObjectName JavaDoc name) throws BadStringOperationException JavaDoc, BadBinaryOpValueExpException JavaDoc,
33     BadAttributeValueExpException JavaDoc, InvalidApplicationException JavaDoc ;
34
35     /**
36      * Sets the MBean server on which the query is to be performed.
37      *
38      * @param s The MBean server on which the query is to be performed.
39      *
40      * @deprecated This method is not needed because a
41      * <code>ValueExp</code> can access the MBean server in which it
42      * is being evaluated by using {@link QueryEval#getMBeanServer()}.
43      */

44     @Deprecated JavaDoc
45     public void setMBeanServer(MBeanServer JavaDoc s) ;
46  }
47
Popular Tags