javax.management
Class QueryEval

java.lang.Object
  extended byjavax.management.QueryEval
All Implemented Interfaces:
java.io.Serializable

public abstract class QueryEval
extends java.lang.Object
implements java.io.Serializable

Support for evaluting a query in the context of an MBeanServer.

Revisions:

20020317 Adrian Brock:

See Also:
Serialized Form

Constructor Summary
QueryEval()
           
 
Method Summary
static MBeanServer (src) getMBeanServer()
          Return the MBean server that was most recently given to the setMBeanServer method by this thread.
 void setMBeanServer(MBeanServer (src)  mbeanServer)
          Set the MBeanServer for this query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryEval

public QueryEval()
Method Detail

getMBeanServer

public static MBeanServer (src)  getMBeanServer()
Return the MBean server that was most recently given to the setMBeanServer method by this thread. If this thread never called that method, the result is the value its parent thread would have obtained from getMBeanServer at the moment of the creation of this thread, or null if there is no parent thread.

Returns:
the current MBeanServer thread association.

setMBeanServer

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

Parameters:
mbeanServer - the MBeanServer