Package org.springframework.jmx.export.assembler

Examples of org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler


    public void unregister(ObjectName name) throws JMException {
        server.unregisterMBean(name);
    }

    protected void doStart() throws Exception {
        assembler = new MetadataMBeanInfoAssembler();
        assembler.setAttributeSource(new AnnotationJmxAttributeSource());

        // create mbean server if is has not be injected.
        if (server == null) {
            finalizeSettings();
View Full Code Here


  private String jmxDomainName = null;
  private int jmxConnectorPort = 0;
    private CamelNamingStrategy namingStrategy;

    public InstrumentationAgentImpl() {
      assembler = new MetadataMBeanInfoAssembler();
      assembler.setAttributeSource(new AnnotationJmxAttributeSource());
            //naming = new CamelNamingStrategy(agent.getMBeanServer().getDefaultDomain());
        namingStrategy = new CamelNamingStrategy();
    }
View Full Code Here

        final GenericBeanDefinition bean = new GenericBeanDefinition();
        bean.setBeanClass(MBeanExporter.class);
        MutablePropertyValues properties = new MutablePropertyValues();
        properties.add("server", ManagementFactory.getPlatformMBeanServer());
        properties.add("autodetectMode", MBeanExporter.AUTODETECT_ASSEMBLER);
        properties.add("assembler", new MetadataMBeanInfoAssembler(annotationSource));
        properties.add("namingStrategy", new MBeanNamingStrategy(annotationSource).setDefaultDomain(defaultDomain));
        bean.setPropertyValues(properties);
        return bean;
    }
View Full Code Here

      }
     
      // assemble MBean info (from annotations by default)
      ModelMBean modelMBean = new RequiredModelMBean();
      modelMBean.setManagedResource(mbean, MR_TYPE_OBJECT_REFERENCE);
      MBeanInfoAssembler mBeanInfoAssembler = new MetadataMBeanInfoAssembler(new AnnotationJmxAttributeSource());
      modelMBean.setModelMBeanInfo(mBeanInfoAssembler.getMBeanInfo(mbean, objectName.getCanonicalName()));
      registrar.doRegister(modelMBean, objectName);
    }
    catch (Exception e) {
      throw new JmxRegisterException("error registering MBean", e);
    }
View Full Code Here

  public BatchMBeanExporter() {
    super();
    setAutodetect(false);
    setNamingStrategy(new MetadataNamingStrategy(attributeSource));
    setAssembler(new MetadataMBeanInfoAssembler(attributeSource));
  }
View Full Code Here

    public void unregister(ObjectName name) throws JMException {
        server.unregisterMBean(name);
    }

    protected void doStart() throws Exception {
        assembler = new MetadataMBeanInfoAssembler();
        assembler.setAttributeSource(new AnnotationJmxAttributeSource());

        // create mbean server if is has not be injected.
        if (server == null) {
            finalizeSettings();
View Full Code Here

        final GenericBeanDefinition bean = new GenericBeanDefinition();
        bean.setBeanClass(MBeanExporter.class);
        MutablePropertyValues properties = new MutablePropertyValues();
        properties.add("server", ManagementFactory.getPlatformMBeanServer());
        properties.add("autodetectMode", MBeanExporter.AUTODETECT_ASSEMBLER);
        properties.add("assembler", new MetadataMBeanInfoAssembler(annotationSource));
        properties.add("namingStrategy", new MBeanNamingStrategy(annotationSource).setDefaultDomain(defaultDomain));
        bean.setPropertyValues(properties);
        return bean;
    }
View Full Code Here

        final GenericBeanDefinition bean = new GenericBeanDefinition();
        bean.setBeanClass(MBeanExporter.class);
        MutablePropertyValues properties = new MutablePropertyValues();
        properties.add("server", ManagementFactory.getPlatformMBeanServer());
        properties.add("autodetectMode", MBeanExporter.AUTODETECT_ASSEMBLER);
        properties.add("assembler", new MetadataMBeanInfoAssembler(annotationSource));
        properties.add("namingStrategy", new MBeanNamingStrategy(annotationSource).setDefaultDomain(defaultDomain));
        bean.setPropertyValues(properties);
        return bean;
    }
View Full Code Here

        return server.isRegistered(name);
    }

    protected void doStart() throws Exception {
        ObjectHelper.notNull(camelContext, "CamelContext");
        assembler = new MetadataMBeanInfoAssembler();
        assembler.setAttributeSource(new AnnotationJmxAttributeSource());

        // create mbean server if is has not be injected.
        if (server == null) {
            finalizeSettings();
View Full Code Here

TOP

Related Classes of org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler

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.