Package javax.management.openmbean

Examples of javax.management.openmbean.ArrayType


                    SimpleType.LONG,
                    SimpleType.LONG,
                    SimpleType.STRING,
                    SimpleType.LONG,
                    SimpleType.STRING,
                    new ArrayType(1, createGoodStackTraceElementCompositeType()) };
            result = new CompositeType(ThreadInfo.class.getName(),
                    ThreadInfo.class.getName(), typeNames, typeDescs, typeTypes);
        } catch (OpenDataException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
View Full Code Here


                stackTraceElementData, "additionalValue" };
        OpenType[] types = { 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, stackTraceElementType),
                SimpleType.STRING };
        CompositeType compositeType = new CompositeType(ThreadInfo.class
                .getName(), ThreadInfo.class.getName(), names, names, types);
        CompositeData data = new CompositeDataSupport(compositeType, names,
                values);
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

                                                               true,
                                                               false,
                                                               false );
            attributes[3] = new OpenMBeanAttributeInfoSupport( ATTR_PACKAGES,
                                                               "List of Packages",
                                                               new ArrayType( 1,
                                                                              SimpleType.STRING ),
                                                               true,
                                                               false,
                                                               false );
            //No arg constructor               
View Full Code Here

                                                               true,
                                                               false,
                                                               false );
            attributes[3] = new OpenMBeanAttributeInfoSupport( ATTR_PACKAGES,
                                                               "List of Packages",
                                                               new ArrayType( 1,
                                                                              SimpleType.STRING ),
                                                               true,
                                                               false,
                                                               false );
            //No arg constructor               
View Full Code Here

 
  public void test(TestHarness h)
  {
    try
      {
  ArrayType type = new ArrayType(SimpleType.STRING, true);
  h.fail("Non-primitive type allowed.");
      }
    catch (OpenDataException e)
      {
  h.check(true, "Exception thrown for primitive array with non-primitive type");
      }
    try
      {
  h.checkPoint("Primitive integer array");
  ArrayType type = new ArrayType(SimpleType.INTEGER, true);
  h.check(type.getClassName(), "[I");
  h.check(type.getTypeName(), "[I");
  h.check(type.getElementOpenType().getClassName(), "java.lang.Integer");
  h.check(type.getDescription(), "1-dimension array of int");
      }
    catch (OpenDataException e)
      {
  h.debug(e);
      }
    try
      {
  h.checkPoint("String array");
  ArrayType type = new ArrayType(SimpleType.STRING, false);
  h.check(type.getClassName(), "[Ljava.lang.String;");
  h.check(type.getTypeName(), "[Ljava.lang.String;");
  h.check(type.getElementOpenType().getClassName(), "java.lang.String");
  h.check(type.getDescription(), "1-dimension array of java.lang.String");
      }
    catch (OpenDataException e)
      {
  h.debug(e);
      }
View Full Code Here

  implements Testlet
{
 
  public void test(TestHarness h)
  {
    ArrayType type = null;
    try
      {
  h.checkPoint("1-dimensional integer array");
  type = ArrayType.getArrayType(SimpleType.INTEGER);
  h.check(type.getClassName(), "[Ljava.lang.Integer;");
  h.check(type.getTypeName(), "[Ljava.lang.Integer;");
  h.check(type.getElementOpenType().getClassName(), "java.lang.Integer");
  h.check(type.getDescription(), "1-dimension array of java.lang.Integer");
      }
    catch (OpenDataException e)
      {
  h.debug(e);
      }
    try
      {
  h.checkPoint("2-dimensional integer array");
  type = ArrayType.getArrayType(type);
  h.check(type.getClassName(), "[[Ljava.lang.Integer;");
  h.check(type.getTypeName(), "[[Ljava.lang.Integer;");
  h.check(type.getElementOpenType().getClassName(), "java.lang.Integer");
  h.check(type.getDescription(), "2-dimension array of java.lang.Integer");
      }
    catch (OpenDataException e)
      {
  h.debug(e);
      }
    try
      {
  h.checkPoint("3-dimensional integer array");
  type = ArrayType.getArrayType(type);
  h.check(type.getClassName(), "[[[Ljava.lang.Integer;");
  h.check(type.getTypeName(), "[[[Ljava.lang.Integer;");
  h.check(type.getElementOpenType().getClassName(), "java.lang.Integer");
  h.check(type.getDescription(), "3-dimension array of java.lang.Integer");
      }
    catch (OpenDataException e)
      {
  h.debug(e);
      }
View Full Code Here

         */
        final OpenType[] producerInfoMonitorItemTypes = {
          SimpleType.STRING,    // connection ID
          SimpleType.LONG,    // creation time
          SimpleType.STRING,    // dest name
          new ArrayType(1,
        SimpleType.STRING)// dest names
          SimpleType.STRING,    // dest type
          SimpleType.BOOLEAN,    // flow paused
          SimpleType.STRING,    // host
          SimpleType.LONG,    // num msgs
View Full Code Here

          SimpleType.STRING,    // client ID
          SimpleType.STRING,    // connection ID
          SimpleType.STRING,    // consumer ID
          SimpleType.LONG,    // creation time
          SimpleType.STRING,    // dest name
          new ArrayType(1,
        SimpleType.STRING)// dest names
          SimpleType.STRING,    // dest type
          SimpleType.BOOLEAN,    // durable
          SimpleType.BOOLEAN,    // durable active
          SimpleType.STRING,    // durable name
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.