|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.remoting.event.ClassQueryExp
ClassQueryExp is a QueryExp implementation that allows you to check the ObjectName on a query against one or more class names to make sure that they are the instanceof one or more classes.
Example code:
The query in the above example will only return MBean ObjectInstances that
are an instanceof MyMBean class.
ClassQueryExp query=new ClassQueryExp(MyMBean.class);
Set beans=mbeanserver.queryMBeans(new ObjectName("*:*"),query);
Field Summary | |
static int |
AND
|
static int |
OR
|
Constructor Summary | |
ClassQueryExp(java.lang.Class cl)
default will create using a AND operator |
|
ClassQueryExp(java.lang.Class[] cl)
default will create using a AND operator |
|
ClassQueryExp(java.lang.Class[] cl,
int operator)
|
|
ClassQueryExp(java.lang.Class cl,
int operator)
|
Method Summary | |
boolean |
apply(ObjectName (src) objectName)
Apply this query expression to an MBean. |
void |
setMBeanServer(MBeanServer (src) mBeanServer)
called by MBeanServer prior to apply |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int AND
public static final int OR
Constructor Detail |
public ClassQueryExp(java.lang.Class[] cl)
cl
- public ClassQueryExp(java.lang.Class cl)
cl
- public ClassQueryExp(java.lang.Class cl, int operator)
public ClassQueryExp(java.lang.Class[] cl, int operator)
Method Detail |
public boolean apply(ObjectName (src) objectName) throws BadStringOperationException (src) , BadBinaryOpValueExpException (src) , BadAttributeValueExpException (src) , InvalidApplicationException (src)
QueryExp (src)
apply
in interface QueryExp (src)
objectName
- the object name of the mbean
InvalidApplicationException (src)
- when trying to apply a subquery
expression to an MBean or an attribute expression to an
MBean of the wrong class.
BadStringOperationException (src)
- when an invalid string operation
is used during query construction
BadAttributeValueExpException (src)
- when an invalid MBean attribute
is used during query construction
BadBinaryOpValueExpException (src)
- when an invalid binary operation
is used during query constructionpublic void setMBeanServer(MBeanServer (src) mBeanServer)
setMBeanServer
in interface QueryExp (src)
mBeanServer
-
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |