Examples of fetch()


Examples of com.sun.mail.imap.IMAPFolder.fetch()

        folder.open(Folder.READ_WRITE);
        Message msgs[] = folder.getMessages();
        FetchProfile fp = new FetchProfile();
        fp.add(IMAPFolder.FetchProfileItem.FLAGS);
        fp.add(UIDFolder.FetchProfileItem.UID);
        folder.fetch(msgs, fp);
        this.handleIMAPMessageArray(msgs, folder, folderID, accountVO, store, cvdal);
      }
    } catch (Exception e) {
      logger.error("[checkIMAPFolder] Exception thrown.", e);
    } finally {
View Full Code Here

Examples of com.sun.mail.pop3.POP3Folder.fetch()

        final POP3Folder inbox = (POP3Folder) store.getFolder("INBOX");
        inbox.open(Folder.READ_WRITE);
        final FetchProfile profile = new FetchProfile();
        profile.add(UIDFolder.FetchProfileItem.UID);
        final Message[] messages = inbox.getMessages();
        inbox.fetch(messages, profile);

        if ((path == null) || path.equals("") || path.equals("/")) {
            if (Method.GET.equals(request.getMethod())
                    || Method.HEAD.equals(request.getMethod())) {
                // Set the result document
View Full Code Here

Examples of com.taobao.tddl.dbsync.binlog.FileLogFetcher.fetch()

        try {
            fetcher.open(current, binlogPosition);
            context.setLogPosition(new LogPosition(binlogfilename, binlogPosition));
            while (running) {
                boolean needContinue = true;
                while (fetcher.fetch()) {
                    LogEvent event = decoder.decode(fetcher, context);
                    if (event == null) {
                        throw new CanalParseException("parse failed");
                    }
                    if (!func.sink(event)) {
View Full Code Here

Examples of com.tuenti.supernanny.repo.Repository.fetch()

  private boolean fetchArtifact(Set<String> expectedDirs, Artifact artifact) throws IOException {
    Repository repository = artifact.getOrigin();
    boolean isUpdated = isUpdated(artifact);
    if (!isUpdated) {
      File destination = new File(util.getDepsFolder(), artifact.getName());
      repository.fetch(artifact, destination);
    }

    // store repo temp dir
    if (repository.getTmpDir() != null) {
      expectedDirs.add(repository.getTmpDir());
View Full Code Here

Examples of com.urswolfer.intellij.plugin.gerrit.git.RevisionFetcher.fetch()

            RevisionFetcher revisionFetcher = new RevisionFetcher(gerritUtil, gerritGitUtil, notificationService, project, gitRepository)
                    .addRevision(currentRevision);
            if (baseRevision.isPresent()) {
                revisionFetcher.addRevision(baseRevision.get().getSecond());
            }
            revisionFetcher.fetch(new Callable<Void>() {
                @Override
                public Void call() throws Exception {
                    final List<GitCommit> gitCommits;
                    try {
                        List<String> hashes = Lists.newArrayList();
View Full Code Here

Examples of de.kunysch.localimdb.RatingsParser.fetch()

      pw.println("BAR RATINGS REPORT");
      pw.println("      1111111111 1234567   1.0  Also not parsed (0000)");
      pw.close();
      final MoviesBuilder builder = new MoviesBuilder();
      final RatingsParser parser = new TempfileRatingsParser(file, builder);
      final int count = parser.fetch(file.getParentFile().toURL(), null);
      assertEquals(3, count);
      final Movies movies = builder.getMovies();
      assertEquals(3, movies.getTitleCount());
      assertEquals(3, movies.getMovieCount());
      assertEquals(1, movies.findByTitle("one").length);
View Full Code Here

Examples of freenet.client.HighLevelSimpleClient.fetch()

        uri = new FreenetURI("KSK@" + uid + "-" + dateFormat.format(targetDate.getTime()));
        System.out.println("PULLING " + uri);

        try {
          t1 = System.currentTimeMillis();
          client.fetch(uri);
          t2 = System.currentTimeMillis();

          System.out.println("PULL-TIME-" + i + ":" + (t2 - t1));
          csvLine.add(String.valueOf(t2 - t1));
        } catch (FetchException e) {
View Full Code Here

Examples of freenet.client.HighLevelSimpleClient.fetch()

              }
              inserted++;
              try {
                t1 = System.currentTimeMillis();
                FetchWaiter fw = new FetchWaiter(requestContext);
                client.fetch(insertedURIs[j], 32768, fw, fctx);
                fw.waitForCompletion();
                t2 = System.currentTimeMillis();
               
                System.out.println("PULL-TIME FOR BLOCK "+j+": " + (t2 - t1));
                csvLine.add(String.valueOf(t2 - t1));
View Full Code Here

Examples of freenet.client.HighLevelSimpleClient.fetch()

       
        System.out.println("PULLING " + uri);

        try {
          t1 = System.currentTimeMillis();
          client.fetch(uri);
          t2 = System.currentTimeMillis();

          System.out.println("PULL-TIME-" + i + ":" + (t2 - t1));
          csvLine.add(String.valueOf(t2 - t1));
        } catch (FetchException e) {
View Full Code Here

Examples of freenet.client.HighLevelSimpleClient.fetch()

        // Fetch the data
        long startFetchTime = System.currentTimeMillis();
        HighLevelSimpleClient client = secondNode.clientCore.makeClient((short)0, false, false);
        try {
      client.fetch(uri);
    } catch (FetchException e) {
      System.err.println("FETCH FAILED: "+e);
      e.printStackTrace();
      System.exit(EXIT_FETCH_FAILED);
      return;
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.