Package javax.management.openmbean

Examples of javax.management.openmbean.CompositeType.keySet()


        Boolean b = (Boolean)value;
        jg.writeBoolean(b);
      } else if(value instanceof CompositeData) {
        CompositeData cds = (CompositeData)value;
        CompositeType comp = cds.getCompositeType();
        Set<String> keys = comp.keySet();
        jg.writeStartObject();
        for(String key: keys) {
          writeAttribute(jg, key, cds.get(key));
        }
        jg.writeEndObject();
View Full Code Here


        Boolean b = (Boolean)value;
        jg.writeBoolean(b);
      } else if(value instanceof CompositeData) {
        CompositeData cds = (CompositeData)value;
        CompositeType comp = cds.getCompositeType();
        Set<String> keys = comp.keySet();
        jg.writeStartObject();
        for(String key: keys) {
          writeAttribute(jg, key, cds.get(key));
        }
        jg.writeEndObject();
View Full Code Here

        Boolean b = (Boolean)value;
        jg.writeBoolean(b);
      } else if(value instanceof CompositeData) {
        CompositeData cds = (CompositeData)value;
        CompositeType comp = cds.getCompositeType();
        Set<String> keys = comp.keySet();
        jg.writeStartObject();
        for(String key: keys) {
          writeAttribute(jg, key, cds.get(key));
        }
        jg.writeEndObject();
View Full Code Here

        Boolean b = (Boolean)value;
        jg.writeBoolean(b);
      } else if(value instanceof CompositeData) {
        CompositeData cds = (CompositeData)value;
        CompositeType comp = cds.getCompositeType();
        Set<String> keys = comp.keySet();
        jg.writeStartObject();
        for(String key: keys) {
          writeAttribute(jg, key, cds.get(key));
        }
        jg.writeEndObject();
View Full Code Here

                  Boolean b = (Boolean)value;
                  jg.writeBoolean(b);
              } else if(value instanceof CompositeData) {
                  CompositeData cds = (CompositeData)value;
                  CompositeType comp = cds.getCompositeType();
                  Set<String> keys = comp.keySet();
                  jg.writeStartObject();
                  for(String key: keys) {
                      writeAttribute(jg, key, cds.get(key));
                  }
                  jg.writeEndObject();
View Full Code Here

        if (propertyPrefix == null)
            propertyPrefix = "";
        if (result instanceof CompositeDataSupport) {
            CompositeDataSupport data = (CompositeDataSupport) result;
            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) {
View Full Code Here

        if (propertyPrefix == null)
            propertyPrefix = "";
        if (result instanceof CompositeDataSupport) {
            CompositeDataSupport data = (CompositeDataSupport) result;
            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) {
View Full Code Here

  }

  private void report(CompositeDataSupport data, PrintStream out) {
    CompositeType type = data.getCompositeType();
    out.print('{');
    for(Iterator it = type.keySet().iterator();it.hasNext();){
      String key = (String) it.next();
      if(data.containsKey(key))
        out.print(key+'='+data.get(key));
      if(it.hasNext())
        out.print(';');
View Full Code Here

  public CompositeDataPropertySource(CompositeData cd) {
    this.cd = cd;
    List<IPropertyDescriptor> properties = new ArrayList<IPropertyDescriptor>();
    final CompositeType compositeType = cd.getCompositeType();
    Set<?> keys = compositeType.keySet();
    for (Object key : keys) {
      String keyText = key.toString();
      keyNames.add(keyText);
      final OpenType<?> type = compositeType.getType(keyText);
      if (type != null) {
View Full Code Here

        if (propertyPrefix == null)
            propertyPrefix = "";
        if (result instanceof CompositeDataSupport) {
            CompositeDataSupport data = (CompositeDataSupport) result;
            CompositeType compositeType = data.getCompositeType();
            Set<String> keys = compositeType.keySet();
            for (Iterator<String> iter = keys.iterator(); iter.hasNext();) {
                String key = iter.next();
                Object value = data.get(key);
                OpenType<?> type = compositeType.getType(key);
                if (type instanceof SimpleType<?>) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.