本文整理汇总了Java中javax.management.MBeanOperationInfo.ACTION_INFO属性的典型用法代码示例。如果您正苦于以下问题:Java MBeanOperationInfo.ACTION_INFO属性的具体用法?Java MBeanOperationInfo.ACTION_INFO怎么用?Java MBeanOperationInfo.ACTION_INFO使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.management.MBeanOperationInfo
的用法示例。
在下文中一共展示了MBeanOperationInfo.ACTION_INFO属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getImpactString
public static String getImpactString(int impact) {
switch (impact) {
case MBeanOperationInfo.ACTION:
return IMPACT_ACTION;
case MBeanOperationInfo.ACTION_INFO:
return IMPACT_ACTION_INFO;
case MBeanOperationInfo.INFO:
return IMPACT_INFO;
case MBeanOperationInfo.UNKNOWN:
default:
return IMPACT_UNKNOWN;
}
}
示例2: makeOpInfos
static private MBeanOperationInfo[] makeOpInfos(String[][] spec) {
final MBeanOperationInfo[] result =
new MBeanOperationInfo[spec.length];
final MBeanParameterInfo[] pars = makeParInfos(parameters);
for (int i=0;i<result.length;i++) {
System.out.println("\tCreate an MBeanOperationInfo: " +
spec[i][0]);
final MBeanOperationInfo item =
new MBeanOperationInfo(spec[i][2],spec[i][0],pars,spec[i][1],
MBeanOperationInfo.ACTION_INFO);
result[i]=item;
}
return result;
}