MBeanServerDelegateTest.java 文件源码

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

项目:freeVM 作者:
/**
 * Initialize the notofocation listener and filter.
 */
public void init() {
    listener = new SimpleNotificationListener();
    AttributeChangeNotificationFilter filter = new AttributeChangeNotificationFilter();
    filter.enableAttribute("Attribute1");
    filter.disableAttribute("Attribute2");
    this.filter = filter;
    mbsd = new MBeanServerDelegate();
    n1 = new AttributeChangeNotification(this, 1, System
        .currentTimeMillis(), "Attribute1 changed", "Attribute1",
        "java.lang.String", "oldVal1", "newVal1");
    n2 = new AttributeChangeNotification(this, 2, System
        .currentTimeMillis(), "Attribute2 changed", "Attribute2",
        "java.lang.String", "oldVal2", "newVal2");
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号