Package org.jgroups.jmx

Examples of org.jgroups.jmx.JmxConfigurator


     
      if(isExposeChannels() && getServer() != null && channelId != null && channelId.length() > 0)
      {
         allNames = new ArrayList<ObjectName>();
         ObjectName channelName = new ObjectName(getDomain() + ":type=channel,cluster=" + channelId);
         JmxConfigurator conf = new JmxConfigurator();
         getServer().registerMBean(conf.asDynamicMBean(ch), channelName);
         allNames.add(channelName);
         if (isExposeProtocols())
         {
            String baseName = getDomain() + ":type=protocol,cluster=" + channelId;
            ProtocolStack stack=ch.getProtocolStack();
            List<Protocol> protocols=stack.getProtocols();
           
            for(Protocol prot : protocols)
            {                               
                ObjectName prot_name=new ObjectName(baseName + ",protocol=" + prot.getName());
                server.registerMBean(conf.asDynamicMBean(prot), prot_name);
                allNames.add(prot_name);
            }
         }
      }
     
View Full Code Here


     
      if(isExposeChannels() && getServer() != null && channelId != null && channelId.length() > 0)
      {
         allNames = new ArrayList<ObjectName>();
         ObjectName channelName = new ObjectName(getDomain() + ":type=channel,cluster=" + channelId);
         JmxConfigurator conf = new JmxConfigurator();
         getServer().registerMBean(conf.asDynamicMBean(ch), channelName);
         allNames.add(channelName);
         if (isExposeProtocols())
         {
            String baseName = getDomain() + ":type=protocol,cluster=" + channelId;
            ProtocolStack stack=ch.getProtocolStack();
            List<Protocol> protocols=stack.getProtocols();
           
            for(Protocol prot : protocols)
            {                               
                ObjectName prot_name=new ObjectName(baseName + ",protocol=" + prot.getName());
                server.registerMBean(conf.asDynamicMBean(prot), prot_name);
                allNames.add(prot_name);
            }
         }
      }
     
View Full Code Here

     
      if(isExposeChannels() && getServer() != null && channelId != null && channelId.length() > 0)
      {
         allNames = new ArrayList<ObjectName>();
         ObjectName channelName = new ObjectName(getDomain() + ":type=channel,cluster=" + channelId);
         JmxConfigurator conf = new JmxConfigurator();
         getServer().registerMBean(conf.asDynamicMBean(ch), channelName);
         allNames.add(channelName);
         if (isExposeProtocols())
         {
            String baseName = getDomain() + ":type=protocol,cluster=" + channelId;
            ProtocolStack stack=ch.getProtocolStack();
            List<Protocol> protocols=stack.getProtocols();
           
            for(Protocol prot : protocols)
            {                               
                ObjectName prot_name=new ObjectName(baseName + ",protocol=" + prot.getName());
                server.registerMBean(conf.asDynamicMBean(prot), prot_name);
                allNames.add(prot_name);
            }
         }
      }
     
View Full Code Here

     
      if(isExposeChannels() && getServer() != null && channelId != null && channelId.length() > 0)
      {
         allNames = new ArrayList<ObjectName>();
         ObjectName channelName = new ObjectName(getDomain() + ":type=channel,cluster=" + channelId);
         JmxConfigurator conf = new JmxConfigurator();
         getServer().registerMBean(conf.asDynamicMBean(ch), channelName);
         allNames.add(channelName);
         if (isExposeProtocols())
         {
            String baseName = getDomain() + ":type=protocol,cluster=" + channelId;
            ProtocolStack stack=ch.getProtocolStack();
            List<Protocol> protocols=stack.getProtocols();
           
            for(Protocol prot : protocols)
            {                               
                ObjectName prot_name=new ObjectName(baseName + ",protocol=" + prot.getName());
                server.registerMBean(conf.asDynamicMBean(prot), prot_name);
                allNames.add(prot_name);
            }
         }
      }
     
View Full Code Here

TOP

Related Classes of org.jgroups.jmx.JmxConfigurator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.