站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jmx API Documentation 英文版文档

QueryEval (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档


javax.management
Class QueryEval

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

public abstract class QueryEval
extends Object
implements Serializable

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

Revisions:

20020317 Adrian Brock:

Version:
$Revision: 1.8 $
Author:
Adrian Brock.
See Also:
Serialized Form

Constructor Summary
QueryEval()
           
 
Method Summary
static MBeanServer getMBeanServer()
          Return the MBean server that was most recently given to the setMBeanServer method by this thread.
 void setMBeanServer(MBeanServer 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 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 mbeanServer)
Set the MBeanServer for this query. Only MBeans registered in this server can be used in queries.

Parameters:
mbeanServer - the MBeanServer


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.