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