Package javax.management.openmbean

Examples of javax.management.openmbean.CompositeDataSupport


        HashMap<String, Object> items = new HashMap<String, Object>();
        items.put(BlueprintMetadataMBean.STRING_VALUE, stringValue);
        items.put(BlueprintMetadataMBean.TYPE, type);

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


        return items;
    }

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

        return items;
    }

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

        items.put(BlueprintMetadataMBean.INDEX, index);
        items.put(BlueprintMetadataMBean.VALUE, Util.bpMetadata2BoxedBinary(value));
        items.put(BlueprintMetadataMBean.VALUE_TYPE, valueType);

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

        items.put(BlueprintStateMBean.REPLAY, replay);
        items.put(BlueprintStateMBean.TIMESTAMP, timestamp);
        items.put(BlueprintStateMBean.DEPENDENCIES, dependencies);
        items.put(BlueprintStateMBean.EXCEPTION_MESSAGE, exceptionMessage);
        try {
            return new CompositeDataSupport(BlueprintStateMBean.OSGI_BLUEPRINT_EVENT_TYPE, items);
        } catch (OpenDataException e) {
            throw new IllegalStateException("Cannot form blueprint event open data", e);
        }
    }
View Full Code Here

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

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

    public CompositeData asCompositeData() {
        HashMap<String, Object> items = new HashMap<String, Object>();
        items.put(BlueprintMetadataMBean.COMPONENT_ID, componentId);

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

    public CompositeData asCompositeData() {
        HashMap<String, Object> items = new HashMap<String, Object>();
        items.put(BlueprintMetadataMBean.COMPONENT_ID, componentId);

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

        return items;
    }

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

            cd_entries[i] = entries[i].asCompositeData();
        }
        items.put(BlueprintMetadataMBean.ENTRIES, cd_entries);

        try {
            return new CompositeDataSupport(BlueprintMetadataMBean.MAP_METADATA_TYPE, items);
        } catch (OpenDataException e) {
            throw new RuntimeException(e);
        }
    }
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.