javax.management.Query.and()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(7.8k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中javax.management.Query.and方法的一些代码示例,展示了Query.and的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.and方法的具体详情如下:
包路径:javax.management.Query
类名称:Query
方法名:and

Query.and介绍

暂无

代码示例

代码示例来源:origin: apache/geode

@Override
public Set<ObjectName> queryNames(ObjectName name, QueryExp query) {
 if (query != null)
  return mbs.queryNames(name, Query.and(query, notAccessControlMBean));
 else
  return mbs.queryNames(name, notAccessControlMBean);
}

代码示例来源:origin: apache/geode

@Override
public Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query) {
 // We need to filter out the AccessControlMXBean so that the clients wouldn't see it
 if (query != null)
  return mbs.queryMBeans(name, Query.and(query, notAccessControlMBean));
 else
  return mbs.queryMBeans(name, notAccessControlMBean);
}

代码示例来源:origin: apache/geode

/**
 * Builds the QueryExp used to identify the target MBean.
 *
 * @param pidAttribute the name of the MBean attribute with the process id to compare against
 * @param attributes the names of additional MBean attributes to compare with expected values
 * @param values the expected values of the specified MBean attributes
 *
 * @return the main QueryExp for matching the target MBean
 */
private QueryExp buildQueryExp(final String pidAttribute, final String[] attributes,
  final Object[] values) {
 QueryExp optionalAttributes = buildOptionalQueryExp(attributes, values);
 QueryExp constraint;
 if (optionalAttributes != null) {
  constraint =
    Query.and(optionalAttributes, Query.eq(Query.attr(pidAttribute), Query.value(pid)));
 } else {
  constraint = Query.eq(Query.attr(pidAttribute), Query.value(pid));
 }
 return constraint;
}

代码示例来源:origin: apache/geode

queryExp = Query.eq(Query.attr(attributes[i]), Query.value((Boolean) values[i]));
} else {
 queryExp = Query.and(queryExp,
   Query.eq(Query.attr(attributes[i]), Query.value((Boolean) values[i])));
 queryExp = Query.eq(Query.attr(attributes[i]), Query.value((Number) values[i]));
} else {
 queryExp = Query.and(queryExp,
   Query.eq(Query.attr(attributes[i]), Query.value((Number) values[i])));
 queryExp = Query.eq(Query.attr(attributes[i]), Query.value((String) values[i]));
} else {
 queryExp = Query.and(queryExp,
   Query.eq(Query.attr(attributes[i]), Query.value((String) values[i])));

代码示例来源:origin: org.objectweb.jonas/jonas-ejb-2.1

String jndiName = (String) jdbcResourceRefJndiNames.get(i);
QueryExp match = Query.match(Query.attr("jndiName"), Query.value(jndiName));
QueryExp query = Query.and(match, new DataSourcePropertiesQueryExp());
Set objectNames = mbeanServer.queryNames(J2eeObjectName.getResourceAdapters(J2eeObjectName.ALL, null), query);

代码示例来源:origin: io.snappydata/gemfire-junit

constraint = Query.and(
  Query.eq(Query.attr("Process"),Query.value(true)),
  Query.eq(Query.attr("Pid"),Query.value(pid)));
constraint = Query.and(
  Query.eq(Query.attr("Process"),Query.value(false)),
  Query.eq(Query.attr("Pid"),Query.value(pid)));

代码示例来源:origin: org.apache.geode/gemfire-core

/**
 * Builds the QueryExp used to identify the target MBean.
 * 
 * @param pidAttribute the name of the MBean attribute with the process id to compare against
 * @param attributes the names of additional MBean attributes to compare with expected values
 * @param values the expected values of the specified MBean attributes
 *
 * @return the main QueryExp for matching the target MBean
 */
private QueryExp buildQueryExp(final String pidAttribute, final String[] attributes, final Object[] values) {
 final QueryExp optionalAttributes = buildOptionalQueryExp(attributes, values);
 QueryExp constraint;
 if (optionalAttributes != null) {
  constraint = Query.and(optionalAttributes, Query.eq(
   Query.attr(pidAttribute),
   Query.value(this.pid)));
 } else {
  constraint = Query.eq(
    Query.attr(pidAttribute),
    Query.value(this.pid));
 }
 return constraint;
}

代码示例来源:origin: org.apache.geode/gemfire-core

/**
 * Builds the QueryExp used to identify the target MBean.
 * 
 * @param pidAttribute the name of the MBean attribute with the process id to compare against
 * @param attributes the names of additional MBean attributes to compare with expected values
 * @param values the expected values of the specified MBean attributes
 *
 * @return the main QueryExp for matching the target MBean
 */
private QueryExp buildQueryExp(final String pidAttribute, final String[] attributes, final Object[] values) {
 final QueryExp optionalAttributes = buildOptionalQueryExp(attributes, values);
 QueryExp constraint;
 if (optionalAttributes != null) {
  constraint = Query.and(optionalAttributes, Query.eq(
   Query.attr(pidAttribute),
   Query.value(this.pid)));
 } else {
  constraint = Query.eq(
    Query.attr(pidAttribute),
    Query.value(this.pid));
 }
 return constraint;
}

代码示例来源:origin: io.snappydata/gemfire-core

/**
 * Builds the QueryExp used to identify the target MBean.
 * 
 * @param pidAttribute the name of the MBean attribute with the process id to compare against
 * @param attributes the names of additional MBean attributes to compare with expected values
 * @param values the expected values of the specified MBean attributes
 *
 * @return the main QueryExp for matching the target MBean
 */
private QueryExp buildQueryExp(final String pidAttribute, final String[] attributes, final Object[] values) {
 final QueryExp optionalAttributes = buildOptionalQueryExp(attributes, values);
 QueryExp constraint;
 if (optionalAttributes != null) {
  constraint = Query.and(optionalAttributes, Query.eq(
   Query.attr(pidAttribute),
   Query.value(this.pid)));
 } else {
  constraint = Query.eq(
    Query.attr(pidAttribute),
    Query.value(this.pid));
 }
 return constraint;
}

代码示例来源:origin: io.snappydata/gemfire-core

/**
 * Builds the QueryExp used to identify the target MBean.
 * 
 * @param pidAttribute the name of the MBean attribute with the process id to compare against
 * @param attributes the names of additional MBean attributes to compare with expected values
 * @param values the expected values of the specified MBean attributes
 *
 * @return the main QueryExp for matching the target MBean
 */
private QueryExp buildQueryExp(final String pidAttribute, final String[] attributes, final Object[] values) {
 final QueryExp optionalAttributes = buildOptionalQueryExp(attributes, values);
 QueryExp constraint;
 if (optionalAttributes != null) {
  constraint = Query.and(optionalAttributes, Query.eq(
   Query.attr(pidAttribute),
   Query.value(this.pid)));
 } else {
  constraint = Query.eq(
    Query.attr(pidAttribute),
    Query.value(this.pid));
 }
 return constraint;
}

代码示例来源:origin: io.snappydata/gemfire-core

Query.value(((Boolean) values[i])));
} else {
 queryExp = Query.and(queryExp, 
   Query.eq(Query.attr(attributes[i]), 
   Query.value(((Boolean) values[i]))));
   Query.value((Number)values[i]));
} else {
 queryExp = Query.and(queryExp, 
   Query.eq(Query.attr(attributes[i]), 
   Query.value((Number)values[i])));
   Query.value((String)values[i]));
} else {
 queryExp = Query.and(queryExp, 
   Query.eq(Query.attr(attributes[i]), 
   Query.value((String)values[i])));

代码示例来源:origin: org.apache.geode/gemfire-core

Query.value(((Boolean) values[i])));
} else {
 queryExp = Query.and(queryExp, 
   Query.eq(Query.attr(attributes[i]), 
   Query.value(((Boolean) values[i]))));
   Query.value((Number)values[i]));
} else {
 queryExp = Query.and(queryExp, 
   Query.eq(Query.attr(attributes[i]), 
   Query.value((Number)values[i])));
   Query.value((String)values[i]));
} else {
 queryExp = Query.and(queryExp, 
   Query.eq(Query.attr(attributes[i]), 
   Query.value((String)values[i])));

代码示例来源:origin: org.apache.geode/gemfire-core

Query.value(((Boolean) values[i])));
} else {
 queryExp = Query.and(queryExp, 
   Query.eq(Query.attr(attributes[i]), 
   Query.value(((Boolean) values[i]))));
   Query.value((Number)values[i]));
} else {
 queryExp = Query.and(queryExp, 
   Query.eq(Query.attr(attributes[i]), 
   Query.value((Number)values[i])));
   Query.value((String)values[i]));
} else {
 queryExp = Query.and(queryExp, 
   Query.eq(Query.attr(attributes[i]), 
   Query.value((String)values[i])));

代码示例来源:origin: io.snappydata/gemfire-core

Query.value(((Boolean) values[i])));
} else {
 queryExp = Query.and(queryExp, 
   Query.eq(Query.attr(attributes[i]), 
   Query.value(((Boolean) values[i]))));
   Query.value((Number)values[i]));
} else {
 queryExp = Query.and(queryExp, 
   Query.eq(Query.attr(attributes[i]), 
   Query.value((Number)values[i])));
   Query.value((String)values[i]));
} else {
 queryExp = Query.and(queryExp, 
   Query.eq(Query.attr(attributes[i]), 
   Query.value((String)values[i])));

代码示例来源:origin: apache/helix

final QueryExp exp2 = Query.and(
  Query.not(Query.match(Query.attr("SensorName"), Query.value("MessageQueueStatus.*"))),
  exp1);

相关文章