Examples of matchRelative()


Examples of org.rhq.augeas.tree.AugeasTree.matchRelative()

                     throws InvalidPluginConfigurationException, Exception {
             
                   AugeasTree tree = context.getParentResourceComponent().getAugeasTree();
                      String tableName = context.getParentResourceComponent().getTableName();
             
                      List<AugeasNode> nodes = tree.matchRelative(tree.getRootNode(), File.separatorChar+tableName+File.separatorChar+"settings"+File.separatorChar+"chain");
                      ResourceType resourceType = context.getResourceType();
                    
                      Set<DiscoveredResourceDetails> resources = new HashSet<DiscoveredResourceDetails>();
                
                     for (AugeasNode nd : nodes){
View Full Code Here

Examples of org.rhq.augeas.tree.AugeasTree.matchRelative()

                //fill in the plugin config
                String url = "http://" + addr.host + ":" + addr.port + "/";
                vhostPluginConfig.put(new PropertySimple(ApacheVirtualHostServiceComponent.URL_CONFIG_PROP, url));

                //determine the sequence number of the new vhost
                List<AugeasNode> existingVhosts = tree.matchRelative(tree.getRootNode(), "<VirtualHost");
                int seq = existingVhosts.size() + 1;

                Configuration pluginConfig = resourceContext.getPluginConfiguration();
                String creationType = pluginConfig.getSimpleValue(PLUGIN_CONFIG_PROP_VHOST_CREATION_POLICY,
                    PLUGIN_CONFIG_VHOST_PER_FILE_PROP_VALUE);
View Full Code Here

Examples of org.rhq.augeas.tree.AugeasTree.matchRelative()

                            //the file wouldn't be loaded by augeas
                            moduleConfig.addIncludedGlob(vhostFile);
                            //this also means that there was no include
                            //that would load the file, so we have to
                            //add the include directive to the main conf.
                            List<AugeasNode> includes = tree.matchRelative(tree.getRootNode(), "Include");
                            AugeasNode include = tree.createNode(tree.getRootNode(), "Include", null,
                                includes.size() + 1);
                            tree.createNode(include, "param", vhostFile, 0);
                            tree.save();
                        }
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.