本文整理汇总了Java中javax.management.MBeanOperationInfo.UNKNOWN属性的典型用法代码示例。如果您正苦于以下问题:Java MBeanOperationInfo.UNKNOWN属性的具体用法?Java MBeanOperationInfo.UNKNOWN怎么用?Java MBeanOperationInfo.UNKNOWN使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.management.MBeanOperationInfo
的用法示例。
在下文中一共展示了MBeanOperationInfo.UNKNOWN属性的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: createModelMBeanOperationInfo
/**
* Creates an instance of {@code ModelMBeanOperationInfo} for the
* given method. Populates the parameter info for the operation.
* @param method the {@code Method} to create a {@code ModelMBeanOperationInfo} for
* @param name the logical name for the operation (method name or property name);
* not used by the default implementation but possibly by subclasses
* @param beanKey the key associated with the MBean in the beans map
* of the {@code MBeanExporter}
* @return the {@code ModelMBeanOperationInfo}
*/
protected ModelMBeanOperationInfo createModelMBeanOperationInfo(Method method, String name, String beanKey) {
MBeanParameterInfo[] params = getOperationParameters(method, beanKey);
if (params.length == 0) {
return new ModelMBeanOperationInfo(getOperationDescription(method, beanKey), method);
}
else {
return new ModelMBeanOperationInfo(method.getName(),
getOperationDescription(method, beanKey),
getOperationParameters(method, beanKey),
method.getReturnType().getName(),
MBeanOperationInfo.UNKNOWN);
}
}