Package javax.management.openmbean

Examples of javax.management.openmbean.OpenMBeanAttributeInfoSupport


                    setter.getDescriptor());
        }

        final MBeanAttributeInfo ai;
        if (canUseOpenInfo(originalType)) {
            ai = new OpenMBeanAttributeInfoSupport(attributeName,
                                                   description,
                                                   openType,
                                                   isReadable,
                                                   isWritable,
                                                   isIs,
View Full Code Here


        final String escapedName = NameConverter.convertToCamelCase(name);
        ModelNode attribute = providedDescription.require(ATTRIBUTES).require(name);
        AttributeAccess access = resourceRegistration.getAttributeAccess(PathAddress.EMPTY_ADDRESS, name);
        final boolean writable = standalone && (access != null && access.getAccessType() == AccessType.READ_WRITE);

        return new OpenMBeanAttributeInfoSupport(
                escapedName,
                getDescription(attribute),
                converters.convertToMBeanType(attribute),
                true,
                writable,
View Full Code Here

        OpenMBeanOperationInfoSupport[] operations = new OpenMBeanOperationInfoSupport[2];
        MBeanNotificationInfo[] notifications = new MBeanNotificationInfo[0];

        try {
            // Define the attributes
            attributes[0] = new OpenMBeanAttributeInfoSupport( ATTR_ID,
                                                               "Knowledge Base Id",
                                                               SimpleType.STRING,
                                                               true,
                                                               false,
                                                               false );
            attributes[1] = new OpenMBeanAttributeInfoSupport( ATTR_SESSION_COUNT,
                                                               "Number of created sessions for this Knowledge Base",
                                                               SimpleType.LONG,
                                                               true,
                                                               false,
                                                               false );
            attributes[2] = new OpenMBeanAttributeInfoSupport( ATTR_GLOBALS,
                                                               "List of globals",
                                                               globalsTableType,
                                                               true,
                                                               false,
                                                               false );
            attributes[3] = new OpenMBeanAttributeInfoSupport( ATTR_PACKAGES,
                                                               "List of Packages",
                                                               new ArrayType( 1,
                                                                              SimpleType.STRING ),
                                                               true,
                                                               false,
View Full Code Here

      else
      {
         openType = MXBeanUtils.getOpenType(setter.getGenericParameterTypes()[0]);
      }
     
      return new OpenMBeanAttributeInfoSupport(attrName, attrName, openType, isReadable, isWritable, isIs);
   }
View Full Code Here

        if (!standalone) {
            writable = false;
        } else {
            writable = access != null ? access.getAccessType() == AccessType.READ_WRITE : false;
        }
        return new OpenMBeanAttributeInfoSupport(
                escapedName,
                getDescription(attribute),
                TypeConverter.convertToMBeanType(attribute),
                true,
                writable,
View Full Code Here

                new MBeanConstructorInfo[] {mbci1, mbci2},
                new MBeanOperationInfo[] {mboi1, mboi2},
                new MBeanNotificationInfo[] {mbni1, mbni2});

        ombai1 =
            new OpenMBeanAttributeInfoSupport("name", "descr", INTEGER,
                                              true, false, false);
        ombai2 =
            new OpenMBeanAttributeInfoSupport("name", "descr", INTEGER,
                                              true, false, false, 5);
        ombai3 =
            new OpenMBeanAttributeInfoSupport("name", "descr", INTEGER,
                                              true, false, false, 5, 1, 6);
        ombai4 =
            new OpenMBeanAttributeInfoSupport("name", "descr", INTEGER,
                                              true, false, false, 5,
                                              new Integer[] {2, 3, 5, 7});
        ombpi1 =
            new OpenMBeanParameterInfoSupport("name1", "descr", INTEGER);
        ombpi2 =
View Full Code Here

                      String description) {
        if (equal(description, ai.getDescription()))
            return ai;
        if (ai instanceof OpenMBeanAttributeInfo) {
            OpenMBeanAttributeInfo oai = (OpenMBeanAttributeInfo) ai;
            return new OpenMBeanAttributeInfoSupport(ai.getName(),
                                                     description,
                                                     oai.getOpenType(),
                                                     ai.isReadable(),
                                                     ai.isWritable(),
                                                     ai.isIs(),
View Full Code Here

/*     */     else
/*     */     {
/* 341 */       openType = MXBeanUtils.getOpenType(setter.getGenericParameterTypes()[0]);
/*     */     }
/*     */
/* 344 */     return new OpenMBeanAttributeInfoSupport(attrName, attrName, openType, isReadable, isWritable, isIs);
/*     */   }
View Full Code Here

        OpenMBeanOperationInfoSupport[] operations = new OpenMBeanOperationInfoSupport[2];
        MBeanNotificationInfo[] notifications = new MBeanNotificationInfo[0];

        try {
            // Define the attributes
            attributes[0] = new OpenMBeanAttributeInfoSupport( ATTR_ID,
                                                               "Knowledge Base Id",
                                                               SimpleType.STRING,
                                                               true,
                                                               false,
                                                               false );
            attributes[1] = new OpenMBeanAttributeInfoSupport( ATTR_SESSION_COUNT,
                                                               "Number of created sessions for this Knowledge Base",
                                                               SimpleType.LONG,
                                                               true,
                                                               false,
                                                               false );
            attributes[2] = new OpenMBeanAttributeInfoSupport( ATTR_GLOBALS,
                                                               "List of globals",
                                                               globalsTableType,
                                                               true,
                                                               false,
                                                               false );
            attributes[3] = new OpenMBeanAttributeInfoSupport( ATTR_PACKAGES,
                                                               "List of Packages",
                                                               new ArrayType( 1,
                                                                              SimpleType.STRING ),
                                                               true,
                                                               false,
View Full Code Here

        OpenMBeanOperationInfoSupport[] operations = new OpenMBeanOperationInfoSupport[2];
        MBeanNotificationInfo[] notifications = new MBeanNotificationInfo[0];

        try {
            // Define the attributes
            attributes[0] = new OpenMBeanAttributeInfoSupport( ATTR_ID,
                                                               "Knowledge Base Id",
                                                               SimpleType.STRING,
                                                               true,
                                                               false,
                                                               false );
            attributes[1] = new OpenMBeanAttributeInfoSupport( ATTR_SESSION_COUNT,
                                                               "Number of created sessions for this Knowledge Base",
                                                               SimpleType.LONG,
                                                               true,
                                                               false,
                                                               false );
            attributes[2] = new OpenMBeanAttributeInfoSupport( ATTR_GLOBALS,
                                                               "List of globals",
                                                               globalsTableType,
                                                               true,
                                                               false,
                                                               false );
            attributes[3] = new OpenMBeanAttributeInfoSupport( ATTR_PACKAGES,
                                                               "List of Packages",
                                                               new ArrayType( 1,
                                                                              SimpleType.STRING ),
                                                               true,
                                                               false,
View Full Code Here

TOP

Related Classes of javax.management.openmbean.OpenMBeanAttributeInfoSupport

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.