Package javax.management.openmbean

Examples of javax.management.openmbean.OpenType


       
        mm.enter( mom.registrationDebug(), "makeTypeConverter", type, mom ) ;
       
        TypeConverter result = null ;
        try {
            final OpenType stype = simpleTypeMap.get( type ) ;
            if (stype != null) {
                result = handleSimpleType( type, stype ) ;
            } else if (type instanceof EvaluatedClassDeclaration) {
                EvaluatedClassDeclaration cls = (EvaluatedClassDeclaration)type ;
                final ManagedObject mo = mom.getFirstAnnotationOnClass( cls,
View Full Code Here


        ArrayType result ;

        if (ot instanceof ArrayType) {
            ArrayType atype = (ArrayType)ot ;
            int dim = atype.getDimension() ;
            OpenType lowestComponentType = atype.getElementOpenType() ;
            result = new ArrayType( dim + 1, lowestComponentType ) ;
        } else {
            result = new ArrayType( 1, ot ) ;
        }
View Full Code Here

        TypeConverter result = null ;
        try {
            final EvaluatedType ctype = type.componentType() ;
            final TypeConverter ctypeTc = mom.getTypeConverter( ctype ) ;
            final OpenType cotype = ctypeTc.getManagedType() ;
            final OpenType ot = getArrayType( cotype ) ;

            mm.info( mom.registrationDebug(), "ctype=", ctype,
    "ctypeTc=", ctypeTc, "cotype=", cotype, "ot=", ot ) ;

            result = new TypeConverterImpl( type, ot ) {
View Full Code Here

  private static OpenType getOpenType(Class type)
  {
    try {
      if (type.isArray()) {
        OpenType component = getOpenType(type.getComponentType());

        if (component != null)
          return new ArrayType(1, component);
        else
          return null;
View Full Code Here

    Collections.addAll(all, items);

    int size = all.size();
    String names[] = new String[size];
    String descriptions[] = new String[size];
    OpenType types[] = new OpenType[size];

    int m = 0;
    for (Item item : all) {
      names[m] = item.name;
      descriptions[m] = item.description;
View Full Code Here

            CompositeType compositeType = data.getCompositeType();
            Set keys = compositeType.keySet();
            for (Iterator iter = keys.iterator(); iter.hasNext();) {
                String key = (String) iter.next();
                Object value = data.get(key);
                OpenType type = compositeType.getType(key);
                if (type instanceof SimpleType) {
                    setProperty(propertyPrefix + "." + key, value);
                } else {
                    createProperty(propertyPrefix + "." + key, value);
                }
            }
        } else if (result instanceof TabularDataSupport) {
            TabularDataSupport data = (TabularDataSupport) result;
            for (Iterator iter = data.keySet().iterator(); iter.hasNext();) {
                Object key = iter.next();
                for (Iterator iter1 = ((List) key).iterator(); iter1.hasNext();) {
                    Object key1 = iter1.next();
                    CompositeData valuedata = data.get(new Object[] { key1 });
                    Object value = valuedata.get("value");
                    OpenType type = valuedata.getCompositeType().getType(
                            "value");
                    if (type instanceof SimpleType) {
                        setProperty(propertyPrefix + "." + key1, value);
                    } else {
                        createProperty(propertyPrefix + "." + key1, value);
View Full Code Here

TOP

Related Classes of javax.management.openmbean.OpenType

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.