JMXFlagDecorator.java 文件源码

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

项目:Pogamut3 作者:
/**
 * 
 * @param flag Flag to be exposed through JMX.
 * @param source MBean or ObjectName of the object where the flag resides.
 * @param nbs NotificationBroadcasterSupport through which the events will be send.
 */
public JMXFlagDecorator(Flag<T> flag, ObjectName source, MBeanServer mbs, String flagName) throws MalformedObjectNameException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException {
    this.flag = flag;
    this.source = source;
    this.flagName = flagName;
    ObjectName name = PogamutJMX.getObjectName(source, flagName, PogamutJMX.FLAGS_SUBTYPE);
    mbs.registerMBean(this, name);
    flag.addListener(listener);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号