本文整理匯總了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;
}