Examples of toUri()


Examples of org.apache.hadoop.fs.Path.toUri()

      Path path = entry.getKey();
      errors.print("This sidelined region dir should be bulk loaded: "
        + path.toString());
      errors.print("Bulk load command looks like: "
        + "hbase org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles "
        + path.toUri().getPath() + " "+ tableName);
    }
  }

  public Multimap<byte[], HbckInfo> getOverlapGroups(
      String table) {
View Full Code Here

Examples of org.apache.hdt.core.internal.hdfs.HDFSFileStore.toURI()

          }
        }
      case IResource.FILE:
        if (store.isLocalFile()) {
          File file = store.getLocalFile();
          HDFSManager.INSTANCE.startServerOperation(store.toURI().toString());
          try{
            if (file.exists()) {
              file.delete();
              UploadFileJob.deleteFoldersIfEmpty(file.getParentFile());
            }
View Full Code Here

Examples of org.apache.http.HttpHost.toURI()

                HttpHost target = (HttpHost) localContext.getAttribute(ExecutionContext.HTTP_TARGET_HOST);
                URI redirectURI = req.getURI();
                if (redirectURI.isAbsolute()){
                    res.setURL(redirectURI.toURL());
                } else {
                    res.setURL(new URL(new URL(target.toURI()),redirectURI.toString()));
                }
            }

            // Store any cookies received in the cookie manager:
            saveConnectionCookies(httpResponse, res.getURL(), getCookieManager());
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.TestFile.toURI()

        surefireLauncher.executeTest();
        surefireLauncher.reset();
        OutputValidator validator = surefireLauncher.addSurefireReportGoal().executeCurrentGoals();

        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        final URI uri = siteFile.toURI();

        final WebClient webClient = new WebClient();
        webClient.setJavaScriptEnabled( true );
        final HtmlPage page = webClient.getPage( uri.toURL() );
View Full Code Here

Examples of org.apache.shindig.common.uri.UriBuilder.toUri()

          !securityTokenOnQuery);
    }

    addExtras(uri, gadget);

    return uri.toUri();
  }

  protected String generateSecurityToken(Gadget gadget) {
    // Find a security token in the context
    try {
View Full Code Here

Examples of org.apache.sis.xml.ValueConverter.toURI()

         * '/' and '.' since they are part of UCUM representation.
         */
        final Context context = Context.current();
        final ValueConverter converter = Context.converter(context);
        if (uom.indexOf(':') >= 0) {
            final URI uri = converter.toURI(context, uom);
            String part = uri.getFragment();
            if (part != null) {
                uom = part;
                int i = uom.lastIndexOf("@gml:id=");
                if (i >= 0) {
View Full Code Here

Examples of org.apache.tapestry.Link.toURI()

                _typeCoercer);
        factory.addListener(listener);

        Link link = factory.createActionLink(element, eventName, false, context);

        assertEquals(link.toURI(), ENCODED);
        assertSame(link, holder.get());

        verify();
    }
}
View Full Code Here

Examples of org.apache.tapestry5.Link.toURI()

        Link link = new LinkImpl("/foo/bar", true, false, response, optimizer);
        link.setAnchor("wilma");

        assertSame(link.getAnchor(), "wilma");

        assertEquals(link.toURI(), ENCODED + "#" + "wilma");

        verify();
    }

    @Test
View Full Code Here

Examples of org.apache.tools.ant.util.FileUtils.toURI()

                  while(i < pathElements.length)
                  {
                      String pathElement = pathElements[i];
                      URL url;
            try {
              url = new URL(fu.toURI(pathElement));
            } catch (MalformedURLException e) {
              throw new BuildException("Unable to load class path at path="+pathElement, e);
            }
                      List urls = Arrays.asList(((URLClassLoader)loader).getURLs());
                      if (!urls.contains(url)) {
View Full Code Here

Examples of org.apache.twill.filesystem.Location.toURI()

          location = copyFromURL(url, createTempLocation(Paths.appendSuffix(url.getFile(), localFile.getName())));
          LOG.debug("Done {} : {}", runnableName, url);
        }

        localFiles.put(runnableName,
                       new DefaultLocalFile(localFile.getName(), location.toURI(), location.lastModified(),
                                            location.length(), localFile.isArchive(), localFile.getPattern()));
      }
    }
    LOG.debug("Done Runnable LocalFiles");
  }
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.