RelationService.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:jdk8u-jdk 作者:
/**
 * Returns a NotificationInfo object containing the name of the Java class
 * of the notification and the notification types sent.
 */
public MBeanNotificationInfo[] getNotificationInfo() {

    RELATION_LOGGER.entering(RelationService.class.getName(),
            "getNotificationInfo");

    String ntfClass = "javax.management.relation.RelationNotification";

    String[] ntfTypes = new String[] {
        RelationNotification.RELATION_BASIC_CREATION,
        RelationNotification.RELATION_MBEAN_CREATION,
        RelationNotification.RELATION_BASIC_UPDATE,
        RelationNotification.RELATION_MBEAN_UPDATE,
        RelationNotification.RELATION_BASIC_REMOVAL,
        RelationNotification.RELATION_MBEAN_REMOVAL,
    };

    String ntfDesc = "Sent when a relation is created, updated or deleted.";

    MBeanNotificationInfo ntfInfo =
        new MBeanNotificationInfo(ntfTypes, ntfClass, ntfDesc);

    RELATION_LOGGER.exiting(RelationService.class.getName(),
            "getNotificationInfo");
    return new MBeanNotificationInfo[] {ntfInfo};
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号