Examples of CanonicalResourceKey


Examples of org.rhq.core.pc.plugin.CanonicalResourceKey

            Resource resource = container.getResource();
            if (resource != null) {
                Resource parent = resource.getParentResource();
                if (parent != null) {
                    try {
                        CanonicalResourceKey currentCanonicalId = new CanonicalResourceKey(resource, parent);
                        if (currentCanonicalId.equals(canonicalId)) {
                            resourceContainer = container;
                            break;
                        }
                    } catch (PluginContainerException ignore) {
                        // TODO not sure what to do here, when would this ever happen? for now, ignore
View Full Code Here

Examples of org.rhq.core.pc.plugin.CanonicalResourceKey

        PropertyList list = new PropertyList("classloaders");
        info.getComplexResults().put(numClassLoaders);
        info.getComplexResults().put(list);

        for (Entry<CanonicalResourceKey, ClassLoader> entry : classloaders.entrySet()) {
            CanonicalResourceKey canonicalId = entry.getKey();
            ClassLoader classloader = entry.getValue();
            String[] data = canonicalIdMap.get(canonicalId);
            PropertyMap map = new PropertyMap("classloader");
            map.put(new PropertySimple("resourceName", data[0]));
            map.put(new PropertySimple("resourceId", data[1]));
            map.put(new PropertySimple("resourceUuid", data[2]));
            map.put(new PropertySimple("canonicalId", canonicalId.toString()));
            map.put(new PropertySimple("classloaderInfo", classloader));
            list.add(map);
        }

        classloaders.clear(); // don't need this shallow copy anymore, help the GC clean up
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.