Package javax.management.openmbean

Examples of javax.management.openmbean.CompositeDataSupport


        HashMap<String, Object> items = new HashMap<String, Object>();
        items.put(BlueprintMetadataMBean.NAME, name);
        items.put(BlueprintMetadataMBean.VALUE, Util.bpMetadata2BoxedBinary(value));

        try {
            return new CompositeDataSupport(BlueprintMetadataMBean.BEAN_PROPERTY_TYPE, items);
        } catch (OpenDataException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here


        items.put(BlueprintMetadataMBean.UNBIND_METHOD, unbindMethod);

        items.put(BlueprintMetadataMBean.LISTENER_COMPONENT, Util.bpMetadata2BoxedBinary(listenerComponent));

        try {
            return new CompositeDataSupport(BlueprintMetadataMBean.REFERENCE_LISTENER_TYPE, items);
        } catch (OpenDataException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

        //do nothing ?
    }

    public CompositeData asCompositeData() {
        try {
      return new CompositeDataSupport(
          BlueprintMetadataMBean.NULL_METADATA_TYPE,
          new String[]{BlueprintMetadataMBean.PLACEHOLDER},
          new Object[]{null});
    } catch (OpenDataException e) {
      throw new RuntimeException(e);
View Full Code Here

        return items;
    }

    public CompositeData asCompositeData() {
        try {
            return new CompositeDataSupport(BlueprintMetadataMBean.SERVICE_METADATA_TYPE, getItemsMap());
        } catch (OpenDataException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

        items.put(BlueprintMetadataMBean.UNREGISTRATION_METHOD, unregistrationMethod);

        items.put(BlueprintMetadataMBean.LISTENER_COMPONENT, Util.bpMetadata2BoxedBinary(listenerComponent));

        try {
            return new CompositeDataSupport(BlueprintMetadataMBean.REGISTRATION_LISTENER_TYPE, items);
        } catch (OpenDataException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

        }
        HashMap<String, Object> items = new HashMap<String, Object>();
        items.put(BlueprintMetadataMBean.ENTRIES, cd_entries);

        try {
            return new CompositeDataSupport(BlueprintMetadataMBean.PROPS_METADATA_TYPE, items);
        } catch (OpenDataException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

            arrays[i] = Util.bpMetadata2BoxedBinary(values[i]);
        }
        items.put(BlueprintMetadataMBean.VALUES, arrays);

        try {
            return new CompositeDataSupport(BlueprintMetadataMBean.COLLECTION_METADATA_TYPE, items);
        } catch (OpenDataException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

    Object[] itemValues = { success, statusCode, errorCode };

    try {
      CompositeType changeMasterBrokerCompositeType = new CompositeType("ChangeMasterBrokerResult",
          "ChangeMasterBrokerResult", itemNames, itemDescriptions, itemTypes);
      result = new CompositeDataSupport(changeMasterBrokerCompositeType, itemNames, itemValues);

    } catch (Exception e) {
      handleOperationException(ClusterOperations.GET_BROKER_INFO_BY_ID, e);
      // does not return
    }
View Full Code Here

            monitorCompType = new CompositeType("TransactionMonitorInfo", "TransactionMonitorInfo",
                        transactionInfoMonitorItemNames, transactionInfoMonitorItemDesc,
        transactionInfoMonitorItemTypes);
        }

  cd = new CompositeDataSupport(monitorCompType,
      transactionInfoMonitorItemNames, transactionInfoMonitorItemValues);
 
  return (cd);
    }
View Full Code Here

        List<Message> messages = getSubscriberMessages(view);
        CompositeType ct = factory.getCompositeType();
        TabularType tt = new TabularType("MessageList", "MessageList", ct, new String[] {"JMSMessageID"});
        TabularDataSupport rc = new TabularDataSupport(tt);
        for (int i = 0; i < messages.size(); i++) {
            rc.put(new CompositeDataSupport(ct, factory.getFields(messages.get(i))));
        }
        return rc;
    }
View Full Code Here

TOP

Related Classes of javax.management.openmbean.CompositeDataSupport

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.