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

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


org.jboss.mx.util
Class InstanceOfQueryExp

java.lang.Object
  extended byorg.jboss.mx.util.InstanceOfQueryExp
All Implemented Interfaces:
QueryExp, Serializable

public class InstanceOfQueryExp
extends Object
implements QueryExp

MBean QueryExp to find all classes of a particular instance

Version:
$Revision: 1.2 $
Author:
bill@jboss.org
See Also:
Serialized Form

Constructor Summary
InstanceOfQueryExp(String classname)
           
 
Method Summary
 boolean apply(ObjectName name)
          Apply this query expression to an MBean.
 void setMBeanServer(MBeanServer server)
          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

InstanceOfQueryExp

public InstanceOfQueryExp(String classname)
Method Detail

apply

public boolean apply(ObjectName name)
              throws BadStringOperationException,
                     BadBinaryOpValueExpException,
                     BadAttributeValueExpException,
                     InvalidApplicationException
Description copied from interface: QueryExp
Apply this query expression to an MBean.

Specified by:
apply in interface QueryExp
Parameters:
name - the object name of the mbean
Returns:
true or false as the result of the query expression.
Throws:
BadStringOperationException - when an invalid string operation is used during query construction
InvalidApplicationException - when trying to apply a subquery expression to an MBean or an attribute expression to an MBean of the wrong class.
BadAttributeValueExpException - when an invalid MBean attribute is used during query construction
BadBinaryOpValueExpException - when an invalid binary operation is used during query construction

setMBeanServer

public void setMBeanServer(MBeanServer server)
Description copied from interface: QueryExp
Set the MBeanServer for this query. Only MBeans registered in this server can be used in queries.

Specified by:
setMBeanServer in interface QueryExp
Parameters:
server - the MBeanServer


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