Package org.nanocontainer.remoting.jmx

Examples of org.nanocontainer.remoting.jmx.JMXRegistrationInfo


                }

                final ObjectName _objectName = ObjectName.getInstance(domain_ + ":" + _manageable.getJMXObjectName());
                final JMXManageableXMBean _xmbean = new JMXManageableXMBean(_manageable, _url);
               
                return new JMXRegistrationInfo(_objectName, _xmbean);
            } catch (MalformedObjectNameException e)
            {
                _exception = e;
            } catch (NotCompliantMBeanException e)
            {
View Full Code Here


            Exception _exception = null;

            try
            {
                return new JMXRegistrationInfo(ObjectName.getInstance(domain_ + ":"
                        + _manageable.getJMXObjectName()), new BroadcastSupportMBeanDecorator(
                        _manageable));
            } catch (MalformedObjectNameException e)
            {
                _exception = e;
View Full Code Here

        delegate_ = delegate;
    }

    public JMXRegistrationInfo provide(PicoContainer picoContainer, ComponentAdapter componentAdapter)
    {
        final JMXRegistrationInfo _info = delegate_.provide(picoContainer, componentAdapter);

        if (_info != null)
        {
            try
            {
                final JMXManageable manageable =
                    (JMXManageable) componentAdapter.getComponentInstance(picoContainer);

                manageable.registerDisposable(new Disposable()
                {
                    public void dispose()
                    {
                        try
                        {
                            logger_.info("Unregister MBean " + _info.getObjectName());

                            mbeanServer_.unregisterMBean(_info.getObjectName());
                        } catch (InstanceNotFoundException e)
                        {
                            logger_.error("Error while unregistering MBean "
                                    + _info.getObjectName(), e);
                        } catch (MBeanRegistrationException e)
                        {
                            logger_.error("Error while unregistering MBean "
                                    + _info.getObjectName(), e);
                        }
                    }
                });
            } catch (ClassCastException e)
            {
View Full Code Here

                }

                final ObjectName _objectName = ObjectName.getInstance(domain_ + ":" + _manageable.getJMXObjectName());
                final JMXManageableXMBean _xmbean = new JMXManageableXMBean(_manageable, _url);
               
                return new JMXRegistrationInfo(_objectName, _xmbean);
            } catch (MalformedObjectNameException e)
            {
                _exception = e;
            } catch (NotCompliantMBeanException e)
            {
View Full Code Here

        delegate_ = delegate;
    }

    public JMXRegistrationInfo provide(PicoContainer picoContainer, ComponentAdapter componentAdapter)
    {
        final JMXRegistrationInfo _info = delegate_.provide(picoContainer, componentAdapter);

        if (_info != null)
        {
            try
            {
                final JMXManageable manageable =
                    (JMXManageable) componentAdapter.getComponentInstance(picoContainer);

                manageable.registerDisposable(new Disposable()
                {
                    public void dispose()
                    {
                        try
                        {
                            logger_.info("Unregister MBean " + _info.getObjectName());

                            mbeanServer_.unregisterMBean(_info.getObjectName());
                        } catch (InstanceNotFoundException e)
                        {
                            logger_.error("Error while unregistering MBean "
                                    + _info.getObjectName(), e);
                        } catch (MBeanRegistrationException e)
                        {
                            logger_.error("Error while unregistering MBean "
                                    + _info.getObjectName(), e);
                        }
                    }
                });
            } catch (ClassCastException e)
            {
View Full Code Here

                }

                final ObjectName _objectName = ObjectName.getInstance(domain_ + ":" + _manageable.getJMXObjectName());
                final JMXManageableXMBean _xmbean = new JMXManageableXMBean(_manageable, _url);
               
                return new JMXRegistrationInfo(_objectName, _xmbean);
            } catch (MalformedObjectNameException e)
            {
                _exception = e;
            } catch (NotCompliantMBeanException e)
            {
View Full Code Here

        delegate_ = delegate;
    }

    public JMXRegistrationInfo provide(PicoContainer picoContainer, ComponentAdapter componentAdapter)
    {
        final JMXRegistrationInfo _info = delegate_.provide(picoContainer, componentAdapter);

        if (_info != null)
        {
            try
            {
                final JMXManageable manageable =
                    (JMXManageable) componentAdapter.getComponentInstance(picoContainer);

                manageable.registerDisposable(new Disposable()
                {
                    public void dispose()
                    {
                        try
                        {
                            logger_.info("Unregister MBean " + _info.getObjectName());

                            mbeanServer_.unregisterMBean(_info.getObjectName());
                        } catch (InstanceNotFoundException e)
                        {
                            logger_.error("Error while unregistering MBean "
                                    + _info.getObjectName(), e);
                        } catch (MBeanRegistrationException e)
                        {
                            logger_.error("Error while unregistering MBean "
                                    + _info.getObjectName(), e);
                        }
                    }
                });
            } catch (ClassCastException e)
            {
View Full Code Here

                }

                final ObjectName _objectName = ObjectName.getInstance(domain_ + ":" + _manageable.getJMXObjectName());
                final JMXManageableXMBean _xmbean = new JMXManageableXMBean(_manageable, _url);
               
                return new JMXRegistrationInfo(_objectName, _xmbean);
            } catch (MalformedObjectNameException e)
            {
                _exception = e;
            } catch (NotCompliantMBeanException e)
            {
View Full Code Here

            Exception _exception = null;

            try
            {
                return new JMXRegistrationInfo(ObjectName.getInstance(domain_ + ":"
                        + _manageable.getJMXObjectName()), new BroadcastSupportMBeanDecorator(
                        _manageable));
            } catch (MalformedObjectNameException e)
            {
                _exception = e;
View Full Code Here

        delegate_ = delegate;
    }

    public JMXRegistrationInfo provide(PicoContainer picoContainer, ComponentAdapter componentAdapter)
    {
        final JMXRegistrationInfo _info = delegate_.provide(picoContainer, componentAdapter);

        if (_info != null)
        {
            try
            {
                final JMXManageable manageable =
                    (JMXManageable) componentAdapter.getComponentInstance(picoContainer);

                manageable.registerDisposable(new Disposable()
                {
                    public void dispose()
                    {
                        try
                        {
                            logger_.info("Unregister MBean " + _info.getObjectName());

                            mbeanServer_.unregisterMBean(_info.getObjectName());
                        } catch (InstanceNotFoundException e)
                        {
                            logger_.error("Error while unregistering MBean "
                                    + _info.getObjectName(), e);
                        } catch (MBeanRegistrationException e)
                        {
                            logger_.error("Error while unregistering MBean "
                                    + _info.getObjectName(), e);
                        }
                    }
                });
            } catch (ClassCastException e)
            {
View Full Code Here

TOP

Related Classes of org.nanocontainer.remoting.jmx.JMXRegistrationInfo

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.