-  
       
- All Superinterfaces:
 -  
         
Serializable 
- 所有已知实现类:
 -  
         
ObjectName 
public interface QueryExp extends Serializable
表示类似于数据库查询“where子句”的关系约束。 QueryExp的实例由
Query类的静态方法返回。通过实现此接口可以(但不建议)创建自定义查询。 在这种情况下,扩展
QueryEval类比直接实现接口更好,这样setMBeanServer(javax.management.MBeanServer)方法可以正常工作。- 从以下版本开始:
 - 1.5
 - 另请参见:
 -  
         
MBeanServer.queryNames 
 
-  
        
       
-  
             
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 booleanapply(ObjectName name)在MBean上应用QueryExp。voidsetMBeanServer(MBeanServer s)设置要在其上执行查询的MBean服务器。 
 -  
             
 
-  
        
       
-  
             
方法详细信息
-  
apply
boolean apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException
在MBean上应用QueryExp。- 参数
 -  
              
name- 将应用QueryExp的MBean的名称。 - 结果
 - 如果查询已成功应用于MBean,则为True,否则为false
 - 异常
 -  
              
BadStringOperationException- 将无效的字符串操作传递给构造查询的方法时 -  
              
BadBinaryOpValueExpException- 将无效表达式传递给构造查询的方法时 -  
              
BadAttributeValueExpException- 将无效的MBean特性传递给查询构造方法时 -  
              
InvalidApplicationException- 尝试无效申请时 
 
-  
setMBeanServer
void setMBeanServer(MBeanServer s)
设置要在其上执行查询的MBean服务器。- 参数
 -  
              
s- 要在其上执行查询的MBean服务器。 
 
 -  
 
 -