Package com.google.enterprise.connector.util

Examples of com.google.enterprise.connector.util.TraversalTimer


  final DocumentList getDocumentList(Checkpoint checkpoint)
      throws RepositoryException {
    // In the case of multiple where clauses, execute them in turn
    // until one returns results, all of them have been tried,
    // or time expires.
    TraversalTimer timer = new TraversalTimer(traversalContext);
    boolean isMore;
    do {
      DocumentList documentList = execQuery(checkpoint);
      if (documentList != null)
        return documentList;
      isMore = checkpoint.advance();
    } while (isMore && timer.isTicking());
    return isMore ? new EmptyDocumentList(checkpoint.asString()) : null;
  }
View Full Code Here


    // across the repository, we want to give ourself a chance to
    // accelerate through the sparse regions, grabbing larger sets
    // of candidates looking for something applicable.  However,
    // we cannot do this indefinitely or we will run afoul of the
    // Connector Manager's thread timeout.
    TraversalTimer timer = new TraversalTimer(traversalContext);
    while (timer.isTicking()) {
      ClientValue candidates = getCandidates(checkpoint, batchsz);
      ClientValue deletes = getDeletes(checkpoint, batchsz);
      ClientValue results = null;

      int numInserts = (candidates == null) ? 0 : candidates.size();
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.util.TraversalTimer

Copyright © 2018 www.massapicom. 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.