org.jboss.mx.util
Class InstanceOfQueryExp
java.lang.Object
org.jboss.mx.util.InstanceOfQueryExp
- All Implemented Interfaces:
- javax.management.QueryExp, Serializable
- public class InstanceOfQueryExp
- extends Object
- implements javax.management.QueryExp
MBean QueryExp to find all classes of a particular instance
- Version:
- $Revision: 1.2 $
- Author:
- bill@jboss.org
- See Also:
- Serialized Form
Method Summary |
boolean |
apply(javax.management.ObjectName name)
Apply this query expression to an MBean. |
void |
setMBeanServer(javax.management.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 |
InstanceOfQueryExp
public InstanceOfQueryExp(String classname)
apply
public boolean apply(javax.management.ObjectName name)
throws javax.management.BadStringOperationException,
javax.management.BadBinaryOpValueExpException,
javax.management.BadAttributeValueExpException,
javax.management.InvalidApplicationException
- Description copied from interface:
javax.management.QueryExp
- Apply this query expression to an MBean.
- Specified by:
apply
in interface javax.management.QueryExp
- Parameters:
name
- the object name of the mbean
- Returns:
- true or false as the result of the query expression.
- Throws:
javax.management.BadAttributeValueExpException
- when an invalid MBean attribute
is used during query construction
javax.management.InvalidApplicationException
- when trying to apply a subquery
expression to an MBean or an attribute expression to an
MBean of the wrong class.
javax.management.BadBinaryOpValueExpException
- when an invalid binary operation
is used during query construction
javax.management.BadStringOperationException
- when an invalid string operation
is used during query construction
setMBeanServer
public void setMBeanServer(javax.management.MBeanServer server)
- Description copied from interface:
javax.management.QueryExp
- Set the MBeanServer for this query. Only MBeans registered in
this server can be used in queries.
- Specified by:
setMBeanServer
in interface javax.management.QueryExp
- Parameters:
server
- the MBeanServer
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.