本文整理汇总了Java中org.springframework.jmx.export.metadata.JmxMetadataUtils类的典型用法代码示例。如果您正苦于以下问题:Java JmxMetadataUtils类的具体用法?Java JmxMetadataUtils怎么用?Java JmxMetadataUtils使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JmxMetadataUtils类属于org.springframework.jmx.export.metadata包,在下文中一共展示了JmxMetadataUtils类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getNotificationInfo
点赞 2
import org.springframework.jmx.export.metadata.JmxMetadataUtils; //导入依赖的package包/类
/**
* Reads the {@link ManagedNotification} metadata from the {@code Class} of the managed resource
* and generates and returns the corresponding {@link ModelMBeanNotificationInfo} metadata.
*/
@Override
protected ModelMBeanNotificationInfo[] getNotificationInfo(Object managedBean, String beanKey) {
ManagedNotification[] notificationAttributes =
this.attributeSource.getManagedNotifications(getClassToExpose(managedBean));
ModelMBeanNotificationInfo[] notificationInfos =
new ModelMBeanNotificationInfo[notificationAttributes.length];
for (int i = 0; i < notificationAttributes.length; i++) {
ManagedNotification attribute = notificationAttributes[i];
notificationInfos[i] = JmxMetadataUtils.convertToModelMBeanNotificationInfo(attribute);
}
return notificationInfos;
}
开发者ID:lamsfoundation,
项目名称:lams,
代码行数:19,
代码来源:MetadataMBeanInfoAssembler.java
示例2: setNotificationInfos
点赞 2
import org.springframework.jmx.export.metadata.JmxMetadataUtils; //导入依赖的package包/类
public void setNotificationInfos(ManagedNotification[] notificationInfos) {
ModelMBeanNotificationInfo[] infos = new ModelMBeanNotificationInfo[notificationInfos.length];
for (int i = 0; i < notificationInfos.length; i++) {
ManagedNotification notificationInfo = notificationInfos[i];
infos[i] = JmxMetadataUtils.convertToModelMBeanNotificationInfo(notificationInfo);
}
this.notificationInfos = infos;
}
开发者ID:lamsfoundation,
项目名称:lams,
代码行数:9,
代码来源:AbstractConfigurableMBeanInfoAssembler.java