Package org.rhq.enterprise.server.resource

Examples of org.rhq.enterprise.server.resource.ResourceManagerLocal.disambiguate()


        allMissing.addAll(missingScriptsList.getList());

        if (allMissing.size() > 0) {
            ResourceManagerLocal resourceManager = LookupUtil.getResourceManager();

            List<DisambiguationReport<Property>> disambiguated = resourceManager.disambiguate(allMissing,
                new IntExtractor<Property>() {
                    @Override
                    public int extract(Property object) {
                        PropertyMap map = (PropertyMap) object;
                        return map.getSimple(PROP_RESOURCE_ID).getIntegerValue();
View Full Code Here


            if (range != -1) {
                // range encoded as hours (UI shows days)
                ts = System.currentTimeMillis() - (range * 60 * 60 * 1000);
            }

            platformList = DisambiguatedRecentlyAddedResourceComposite.fromResolution(resourceManager.disambiguate(
                resourceManager.findRecentlyAddedPlatforms(subject, ts, recentlyApprovedPreferences.range),
                RESOURCE_ID_EXTRACTOR, DefaultDisambiguationUpdateStrategies.getDefault()));

            Map<Integer, DisambiguatedRecentlyAddedResourceComposite> platformMap;
            platformMap = new HashMap<Integer, DisambiguatedRecentlyAddedResourceComposite>();
View Full Code Here

                }
                DisambiguatedRecentlyAddedResourceComposite miniPlatform = platformMap.get(platformId);
                if (miniPlatform != null) {
                    miniPlatform.getOriginal().setShowChildren(true);
                    miniPlatform.setChildren(DisambiguatedRecentlyAddedResourceComposite.fromResolution(
                        resourceManager.disambiguate(resourceManager
                        .findRecentlyAddedServers(subject, ts, platformId.intValue()), RESOURCE_ID_EXTRACTOR,
                        DefaultDisambiguationUpdateStrategies.getDefault())));
                } else {
                    removeExpandedPlatforms.add(expandedPlatform);
                }
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.