Package javax.management.modelmbean

Examples of javax.management.modelmbean.ModelMBeanInfoSupport


        operations.add(new ModelMBeanOperationInfo(
                "unregisterMBean", "unregisterMBean",
                new MBeanParameterInfo[0], void.class.getName(),
                ModelMBeanOperationInfo.ACTION));

        return new ModelMBeanInfoSupport(
                className, description,
                attributes.toArray(new ModelMBeanAttributeInfo[attributes.size()]),
                constructors,
                operations.toArray(new ModelMBeanOperationInfo[operations.size()]),
                notifications);
View Full Code Here


        operations.add(new ModelMBeanOperationInfo(
                "unregisterMBean", "unregisterMBean",
                new MBeanParameterInfo[0], void.class.getName(),
                ModelMBeanOperationInfo.ACTION));

        return new ModelMBeanInfoSupport(
                className, description,
                attributes.toArray(new ModelMBeanAttributeInfo[attributes.size()]),
                constructors,
                operations.toArray(new ModelMBeanOperationInfo[operations.size()]),
                notifications);
View Full Code Here

    /**
     * Create and return a default <code>ModelMBeanInfo</code> object.
     */
    protected ModelMBeanInfo createDefaultModelMBeanInfo() {

        return (new ModelMBeanInfoSupport(this.getClass().getName(),
                                          "Default ModelMBean",
                                          null, null, null, null));

    }
View Full Code Here

        if (list.size() > operations.length)
            operations =
                (ModelMBeanOperationInfo[]) list.toArray(operations);

        // Construct and return a new ModelMBeanInfo object
        info = new ModelMBeanInfoSupport
            (getClassName(), getDescription(),
             attributes, constructors, operations, notifications);
        return (info);

    }
View Full Code Here

        operations.add(new ModelMBeanOperationInfo(
                "unregisterMBean", "unregisterMBean",
                new MBeanParameterInfo[0], void.class.getName(),
                ModelMBeanOperationInfo.ACTION));

        return new ModelMBeanInfoSupport(
                className, description,
                attributes.toArray(new ModelMBeanAttributeInfo[attributes.size()]),
                constructors,
                operations.toArray(new ModelMBeanOperationInfo[operations.size()]),
                notifications);
View Full Code Here

        // load each topic
        final Configuration[] topicsConfig = config.getChildren( "topic" );
        for( int i = 0; i < topicsConfig.length; i++ )
        {
            final ModelMBeanInfoSupport topic =
                buildTopic( topicsConfig[ i ], beanInfo );
            target.addTopic( topic );
        }

        // load each proxy
        final Configuration[] proxysConfig = config.getChildren( "proxy" );
        for( int i = 0; i < proxysConfig.length; i++ )
        {
            final ModelMBeanInfoSupport topic =
                buildProxyTopic( proxysConfig[ i ], managedClass );
            target.addTopic( topic );
        }

    }
View Full Code Here

            final ModelMBeanNotificationInfo[] notifications =
                new ModelMBeanNotificationInfo[ 0 ];

            final String shortName = getShortName( interfaceClass.getName() );
            final ModelMBeanInfoSupport topic =
                new ModelMBeanInfoSupport( REQ_MODEL_MBEAN,
                                           shortName,
                                           attributes,
                                           constructors,
                                           operationList,
                                           notifications );

            // add it to target
            final String message = REZ.getString( "mxinfo.debug.adding.topic", topic.getDescription() );
            getLogger().debug( message );

            target.addTopic( topic );
        }
        catch( final Exception e )
View Full Code Here

        final ModelMBeanNotificationInfo[] notifications =
            new ModelMBeanNotificationInfo[ 0 ];

        final String name = config.getAttribute( "name" );
        final ModelMBeanInfoSupport topic =
            new ModelMBeanInfoSupport( REQ_MODEL_MBEAN,
                                       name,
                                       attributes,
                                       constructors,
                                       operations,
                                       notifications );
View Full Code Here

            final Class proxyClass = managedClass.getClassLoader().loadClass( proxyName );
            final Configuration classConfig = loadMxInfo( proxyClass );
            final Configuration topicConfig = classConfig.getChild( "topic" );
            final BeanInfo info = Introspector.getBeanInfo( proxyClass );
            final ModelMBeanInfoSupport topic = buildTopic( topicConfig, info );
            final Descriptor mBeanDescriptor = topic.getMBeanDescriptor();
            mBeanDescriptor.setField( "proxyClassName", proxyName );
            topic.setMBeanDescriptor( mBeanDescriptor );

            return topic;
        }
        catch( final Exception e )
        {
View Full Code Here

    /**
     * Create and return a default <code>ModelMBeanInfo</code> object.
     */
    protected ModelMBeanInfo createDefaultModelMBeanInfo() {

        return (new ModelMBeanInfoSupport(this.getClass().getName(),
                                          "Default ModelMBean",
                                          null, null, null, null));

    }
View Full Code Here

TOP

Related Classes of javax.management.modelmbean.ModelMBeanInfoSupport

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.