Examples of root()


Examples of org.destecs.core.parsers.dcl.ScriptParser.root()

    ((ScriptLexer) lexer).enableErrorMessageCollection(true);
    thisParser.enableErrorMessageCollection(true);

    try
    {
      List<INode> toplevel = thisParser.root();

      if (((ScriptLexer) lexer).hasExceptions())
      {
        List<RecognitionException> exps = ((ScriptLexer) lexer).getExceptions();
        addErrorsLexer(source, exps);
View Full Code Here

Examples of org.eclipse.sapphire.Element.root()

               
                final ModelPath.Segment segment = path.segment( i );
               
                if( segment instanceof ModelPath.ModelRootSegment )
                {
                    element = element.root();
                }
                else if( segment instanceof ModelPath.ParentElementSegment )
                {
                    element = element.parent().element();
                }
View Full Code Here

Examples of org.eclipse.sapphire.Element.root()

                else
                {
                    element = cast( operand( 0 ), Element.class );
                }
               
                return element.root();
            }
        };
    }
   
}
View Full Code Here

Examples of org.elasticsearch.index.mapper.DocumentMapper.root()

    @Test
    public void testMergeObjectDynamic() throws Exception {
        DocumentMapperParser parser = createIndex("test").mapperService().documentMapperParser();
        String objectMapping = XContentFactory.jsonBuilder().startObject().startObject("type1").endObject().endObject().string();
        DocumentMapper mapper = parser.parse(objectMapping);
        assertThat(mapper.root().dynamic(), equalTo(ObjectMapper.Dynamic.TRUE));

        String withDynamicMapping = XContentFactory.jsonBuilder().startObject().startObject("type1").field("dynamic", "false").endObject().endObject().string();
        DocumentMapper withDynamicMapper = parser.parse(withDynamicMapping);
        assertThat(withDynamicMapper.root().dynamic(), equalTo(ObjectMapper.Dynamic.FALSE));
View Full Code Here

Examples of org.geoserver.config.GeoServerDataDirectory.root()

       
        if (!logFile.isAbsolute()) {
            // locate the geoserver.log file
            GeoServerDataDirectory dd = getGeoServerApplication().getBeanOfType(
                    GeoServerDataDirectory.class);
            logFile = new File(dd.root(), logFile.getPath());
        }
       
        if (!logFile.exists()) {
            error("Could not find the GeoServer log file: " + logFile.getAbsolutePath());
        }
View Full Code Here

Examples of org.openstack.client.common.OpenstackComputeClient.root()

            waitOperation(terminateOperation);
          }

          try {
            log.info("Deleting security group: " + securityGroup.getId());
            computeClient.root().securityGroups().securityGroup(securityGroup.getId()).delete();
          } catch (OpenstackNotFoundException e) {
            log.info("Ignoring not-found error while deleting security group: " + securityGroup.getId());
          }
        }
      }
View Full Code Here

Examples of org.openstack.client.common.OpenstackComputeClient.root()

  public Server findServerById(OpenstackCloud cloud, String serverId) throws OpsException {
    OpenstackComputeClient computeClient = getComputeClient(cloud);

    try {
      log.info("Getting server info for: " + serverId);
      Server server = computeClient.root().servers().server(serverId).show();
      return server;
    } catch (OpenstackNotFoundException e) {
      return null;
    } catch (OpenstackException e) {
      throw new OpsException("Error getting server", e);
View Full Code Here

Examples of org.openstack.client.common.OpenstackComputeClient.root()

        if (recipe != null) {
          operatingSystem = recipe.getOperatingSystem();
        }

        log.info("Listing images to pick best image");
        Iterable<Image> images = computeClient.root().images().list();
        if (cloudBehaviours.isHpCloud()) {
          // TODO: We need a better solution here!!
          Set<String> imageNames = Sets.newHashSet("Debian Squeeze 6.0.3 Server 64-bit 20120123");
          log.warn("Hard coding image name (presuming HP cloud)");
View Full Code Here

Examples of org.openstack.client.common.OpenstackComputeClient.root()

        List<ImageFormat> formats = Collections.singletonList(ImageFormat.DiskQcow2);
        CloudImage image = imageFactory.getOrCreateImageId(cloud, formats, request.recipeId);

        String imageId = image.getId();
        log.info("Getting image details for image: " + imageId);
        foundImage = computeClient.root().images().image(imageId).show();
        if (foundImage == null) {
          throw new IllegalArgumentException("Could not find image: " + imageId);
        }
      }
View Full Code Here

Examples of org.openstack.client.common.OpenstackComputeClient.root()

        SecurityGroup createTemplate = new SecurityGroup();
        createTemplate.setName(SECURITY_GROUP_PREFIX + serverName);
        createTemplate.setDescription("Security group for instance: " + serverName);
        try {
          log.info("Creating security group: " + createTemplate.getName());
          createdSecurityGroup = computeClient.root().securityGroups().create(createTemplate);
        } catch (OpenstackException e) {
          for (SecurityGroup candidate : computeClient.root().securityGroups().list()) {
            if (Objects.equal(candidate.getName(), createTemplate.getName())) {
              createdSecurityGroup = candidate;
              break;
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.