Ejemplo n.º 1
0
        private void MapBean(ObjectName originalBeanName)
        {
            Dictionary <string, string> props = new Dictionary <string, string>(originalBeanName.KeyPropertyList);

            props.Add(_proxyIndicatorProperty, "true");
            ObjectName proxyName = new ObjectName(originalBeanName.Domain, props);

            MBeanInfo originalInfo = _server.GetMBeanInfo(originalBeanName);

            if (!(originalInfo is NetMX.OpenMBean.IOpenMBeanInfo))
            {
                ProxyBean proxyBean = new ProxyBean(originalInfo, originalBeanName, _typeCache);
                _server.RegisterMBean(proxyBean, proxyName);
            }
        }
Ejemplo n.º 2
0
        private void MapBean(ObjectName originalBeanName)
        {
            Dictionary<string, string> props = new Dictionary<string, string>(originalBeanName.KeyPropertyList);
             props.Add(_proxyIndicatorProperty, "true");
             ObjectName proxyName = new ObjectName(originalBeanName.Domain, props);

             MBeanInfo originalInfo = _server.GetMBeanInfo(originalBeanName);
             if (!(originalInfo is NetMX.OpenMBean.IOpenMBeanInfo))
             {
            ProxyBean proxyBean = new ProxyBean(originalInfo, originalBeanName, _typeCache);
            _server.RegisterMBean(proxyBean, proxyName);
             }
        }