Package javax.management.openmbean

Examples of javax.management.openmbean.ArrayType


            String[] itemNames = FeaturesServiceMBean.REPOSITORY;
            OpenType[] itemTypes = new OpenType[itemNames.length];
            String[] itemDescriptions = new String[itemNames.length];
            itemTypes[0] = SimpleType.STRING;
            itemTypes[1] = SimpleType.STRING;
            itemTypes[2] = new ArrayType(1, SimpleType.STRING);
            itemTypes[3] = JmxFeature.FEATURE_IDENTIFIER_TABLE;

            itemDescriptions[0] = "The name of the repository";
            itemDescriptions[1] = "The uri of the repository";
            itemDescriptions[2] = "The dependent repositories";
View Full Code Here


        }

        protected void init() throws OpenDataException {
            super.init();
            addItem("BodyLength", "Body length", SimpleType.LONG);
            addItem("BodyPreview", "Body preview", new ArrayType(1,SimpleType.BYTE));
        }
View Full Code Here

        @Override
        protected void init() throws OpenDataException {
            super.init();
            addItem(BODY_LENGTH, "Body length", SimpleType.LONG);
            addItem(BODY_PREVIEW, "Body preview", new ArrayType(1, SimpleType.BYTE));
        }
View Full Code Here

            OpenType[] itemTypes = new OpenType[itemNames.length];
            String[] itemDescriptions = new String[itemNames.length];
            itemTypes[0] = SimpleType.STRING;
            itemTypes[1] = SimpleType.STRING;
            itemTypes[2] = FEATURE_IDENTIFIER_TABLE;
            itemTypes[3] = new ArrayType(1, SimpleType.STRING);
            itemTypes[4] = FEATURE_CONFIG_TABLE;
            itemTypes[5] = FEATURE_CONFIG_FILES_TABLE;
            itemTypes[6] = SimpleType.BOOLEAN;

            itemDescriptions[0] = "The name of the feature";
View Full Code Here

   *            The element type
   * @return A new Array Type
   */
  public static ArrayType arrayType(int dim, OpenType elementType) {
    try {
      return new ArrayType(dim, elementType);
    } catch (OpenDataException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

                OpenType[] typeTypes = { SimpleType.LONG, SimpleType.STRING,
                        SimpleType.STRING, SimpleType.BOOLEAN,
                        SimpleType.BOOLEAN, SimpleType.LONG, SimpleType.LONG,
                        SimpleType.LONG, SimpleType.LONG, SimpleType.STRING,
                        SimpleType.LONG, SimpleType.STRING,
                        new ArrayType(1, getStackTraceElementCompositeType()) };
                THREADINFO_COMPOSITETYPE = new CompositeType(ThreadInfo.class
                        .getName(), ThreadInfo.class.getName(), typeNames,
                        typeDescs, typeTypes);
            } catch (OpenDataException e) {
                if (ManagementUtils.VERBOSE_MODE) {
View Full Code Here

   // JAVAX.MANAGEMENT.OPENMBEAN
   //

   public ArrayType createArrayType() throws OpenDataException
   {
      return new ArrayType(5, SimpleType.BIGDECIMAL);
   }
View Full Code Here

   // Tests ---------------------------------------------------------------------

   public void testArrayTypeOpenType()
      throws Exception
   {
      ArrayType arrayType = new ArrayType(3, SimpleType.STRING);
      assertEquals("[[[Ljava.lang.String;", arrayType.getClassName());
      assertEquals("3-dimension array of java.lang.String", arrayType.getDescription());
      assertEquals("[[[Ljava.lang.String;", arrayType.getTypeName());
      assertTrue("Composite type should be an array", arrayType.isArray());
   }
View Full Code Here

   }

   public void testGetDimension()
      throws Exception
   {
      ArrayType arrayType = new ArrayType(3, SimpleType.STRING);
      assertTrue("Dimension should be 3", arrayType.getDimension() == 3);
   }
View Full Code Here

   }

   public void testElementOpenType()
      throws Exception
   {
      ArrayType arrayType = new ArrayType(3, SimpleType.STRING);
      assertTrue("Element OpenType should be " + SimpleType.STRING, arrayType.getElementOpenType().equals(SimpleType.STRING));
   }
View Full Code Here

TOP

Related Classes of javax.management.openmbean.ArrayType

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.