Examples of JmxConfigurator


Examples of ch.qos.logback.classic.jmx.JMXConfigurator

    if(!MBeanUtil.isRegistered(mbs, objectName)) {
      // register only of the named JMXConfigurator has not been previously
      // registered. Unregistering an MBean within invocation of itself
      // caused jconsole to throw an NPE. (This occurs when the reload* method
      // unregisters the
      JMXConfigurator jmxConfigurator = new JMXConfigurator((LoggerContext) context, mbs,
          objectName);
      try {    
        mbs.registerMBean(jmxConfigurator, objectName);
      } catch (Exception e) {
        addError("Failed to create mbean", e);
View Full Code Here

Examples of ch.qos.logback.classic.jmx.JMXConfigurator

    if(!MBeanUtil.isRegistered(mbs, objectName)) {
      // register only of the named JMXConfigurator has not been previously
      // registered. Unregistering an MBean within invocation of itself
      // caused jconsole to throw an NPE. (This occurs when the reload* method
      // unregisters the
      JMXConfigurator jmxConfigurator = new JMXConfigurator((LoggerContext) context, mbs,
          objectName);
      try {    
        mbs.registerMBean(jmxConfigurator, objectName);
      } catch (Exception e) {
        addError("Failed to create mbean", e);
View Full Code Here

Examples of ch.qos.logback.classic.jmx.JMXConfigurator

        final MBeanServer server = ManagementFactory.getPlatformMBeanServer();
        try {
            final ObjectName objectName = new ObjectName("io.dropwizard:type=Logging");
            if (!server.isRegistered(objectName)) {
                server.registerMBean(new JMXConfigurator(root.getLoggerContext(),
                                                         server,
                                                         objectName),
                                     objectName);
            }
        } catch (MalformedObjectNameException | InstanceAlreadyExistsException |
View Full Code Here

Examples of ch.qos.logback.classic.jmx.JMXConfigurator

    if(!MBeanUtil.isRegistered(mbs, objectName)) {
      // register only of the named JMXConfigurator has not been previously
      // registered. Unregistering an MBean within invocation of itself
      // caused jconsole to throw an NPE. (This occurs when the reload* method
      // unregisters the
      JMXConfigurator jmxConfigurator = new JMXConfigurator((LoggerContext) context, mbs,
          objectName);
      try {    
        mbs.registerMBean(jmxConfigurator, objectName);
      } catch (Exception e) {
        addError("Failed to create mbean", e);
View Full Code Here

Examples of ch.qos.logback.classic.jmx.JMXConfigurator

    if(!MBeanUtil.isRegistered(mbs, objectName)) {
      // register only of the named JMXConfigurator has not been previously
      // registered. Unregistering an MBean within invocation of itself
      // caused jconsole to throw an NPE. (This occurs when the reload* method
      // unregisters the
      JMXConfigurator jmxConfigurator = new JMXConfigurator((LoggerContext) context, mbs,
          objectName);
      try {    
        mbs.registerMBean(jmxConfigurator, objectName);
      } catch (Exception e) {
        addError("Failed to create mbean", e);
View Full Code Here

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

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

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

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

Examples of org.objectweb.speedo.jmx.JMXConfigurator

              + LocaleHelper.getSpeedoRB().getString("start"));
    configure(pmfProps);
    delegate.getProperties().putAll(pmfProps);
        Fractal.getLifeCycleController(speedo).startFc();
    if (jmxOn) {
        new JMXConfigurator(speedo, logger).init();
    }
      logger.log(BasicLevel.INFO, "Speedo " + SpeedoVersion.SPEEDO_VERSION
              + LocaleHelper.getSpeedoRB().getString("ready"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.