Package org.rhq.core.clientapi.agent.metadata

Examples of org.rhq.core.clientapi.agent.metadata.PluginDependencyGraph.reduceGraph()


            log.error(errorBuffer.toString());
            if (log.isDebugEnabled()) {
                log.debug(dependencyGraph.toString());
            }
            // reduce the graph down to only those plugins and their deps that exist and only register those
            dependencyGraph = dependencyGraph.reduceGraph();
            pluginsToBeRegistered.retainAll(dependencyGraph.getPlugins());
        }
        if (pluginsToBeRegistered.size() > 0) {
            registerPlugins(dependencyGraph, pluginsToBeRegistered);
        }
View Full Code Here


        assert graph.getPlugins().contains("Z");
        assert !graph.isComplete(error);
        assert error.indexOf("[C]") > -1;

        // reduce the graph - only 1,2,3,Z should be left since all of their required dependencies are satified
        graph = graph.reduceGraph();

        assert graph.getPlugins().size() == 4 : graph;
        assert graph.getPlugins().contains("1") : graph;
        assert graph.getPlugins().contains("2") : graph;
        assert graph.getPlugins().contains("3") : graph;
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.