Package gc.base.task

Examples of gc.base.task.TaskStats.incrementCount()


        }
        for (int i=0;i<nDocs;i++) {
          SolrDocument doc = docs.get(i);
          String id = (String)doc.getFieldValue(FieldConstants.Id);
          nFetched++;
          stats.incrementCount(tn+".fetched");
          if (okIds.get(id) != null) {
            stats.incrementCount(tn+".idOk");
          } else {
            stats.incrementCount(tn+".idRequiresDelete");
            if ((delIds != null) && (delIds.size() <= this.maxIdsInMap)) {
View Full Code Here


          SolrDocument doc = docs.get(i);
          String id = (String)doc.getFieldValue(FieldConstants.Id);
          nFetched++;
          stats.incrementCount(tn+".fetched");
          if (okIds.get(id) != null) {
            stats.incrementCount(tn+".idOk");
          } else {
            stats.incrementCount(tn+".idRequiresDelete");
            if ((delIds != null) && (delIds.size() <= this.maxIdsInMap)) {
              delIds.add(id);
            } else if (delIds != null) {
View Full Code Here

          nFetched++;
          stats.incrementCount(tn+".fetched");
          if (okIds.get(id) != null) {
            stats.incrementCount(tn+".idOk");
          } else {
            stats.incrementCount(tn+".idRequiresDelete");
            if ((delIds != null) && (delIds.size() <= this.maxIdsInMap)) {
              delIds.add(id);
            } else if (delIds != null) {
              delIds = null;
              bContinue = false;
View Full Code Here

        nStart = nNextStart;
      }
    }
   
    if ((delIds != null) && (delIds.size() > 0)) {
      stats.incrementCount(context.getTaskName()+".solr.sentForDelete",delIds.size());
      this.docPublisher.getUpdateServer().deleteById(delIds);
    }
   
  }
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.