Package com.gentics.cr.util.indexing

Examples of com.gentics.cr.util.indexing.AbstractUpdateCheckerJob


        } else {
          writer.write(e.getKey(), ".WorkerThread: NOK\n");
        }
        writer.write(e.getKey(), ".ObjectsInIndex: ", loc.getDocCount() + "", "\n");
        if (queue != null) {
          AbstractUpdateCheckerJob j = queue.getCurrentJob();
          if (j != null) {
            writer.write(e.getKey(), ".CurrentJobObjectsToIndex: ", j.getObjectsToIndex() + "", "\n");
            writer.write(e.getKey(), ".CurrentJobStarted: ", j.getStart() + "", "\n");
          }
        }

      }
    }
View Full Code Here


    if (!callingLuceneLocation.equals(obj)) {
      return;
    }

    if (!reindexStrategy.skipReIndex(callingLuceneLocation)) {
      AbstractUpdateCheckerJob job = new DidyoumeanIndexJob(config, callingLuceneLocation, this);
      callingLuceneLocation.getQueue().addJob(job);
    }

  }
View Full Code Here

    if (indexLocation != null) {
      actualLocation = indexLocation;
    }

    if (REINDEX_JOB.equalsIgnoreCase(name)) {
      AbstractUpdateCheckerJob job = new DidyoumeanIndexJob(this.config, actualLocation, this);
      actualLocation.getQueue().addJob(job);
    } else if (CLEAR_JOB.equalsIgnoreCase(name)) {
      AbstractUpdateCheckerJob job = new DidyoumeanIndexDeleteJob(config, actualLocation, this);
      actualLocation.getQueue().addJob(job);
    } else {
      throw new NoSuchMethodException("No Job-Method by the name: " + name);
    }
  }
View Full Code Here

      return;
    }

    if (!reindexStrategy.skipReIndex(callingLuceneLocation)) {
      //clear SynonymIndexLocation everytime before a SynonymIndexJob is created.
      AbstractUpdateCheckerJob job = new SynonymIndexDeleteJob(config, callingLuceneLocation, this);
      callingLuceneLocation.getQueue().addJob(job);
      job = new SynonymIndexJob(config, callingLuceneLocation, this);
      callingLuceneLocation.getQueue().addJob(job);
    }
View Full Code Here

    if (indexLocation != null) {
      actualLocation = indexLocation;
    }

    if (REINDEX_JOB.equalsIgnoreCase(name)){
      AbstractUpdateCheckerJob job = new SynonymIndexJob(this.config, actualLocation, this);
      actualLocation.getQueue().addJob(job);
    } else if (CLEAR_JOB.equalsIgnoreCase(name)) {
      AbstractUpdateCheckerJob job = new SynonymIndexDeleteJob(config, actualLocation, this);
      actualLocation.getQueue().addJob(job);
    } else {
      throw new NoSuchMethodException("No Job-Method by the name: " + name);
    }
  }
View Full Code Here

    if (!callingLuceneLocation.equals(obj)) {
      return;
    }

    if (!reindexStrategy.skipReIndex(callingLuceneLocation)) {
      AbstractUpdateCheckerJob job = (AbstractUpdateCheckerJob) new AutocompleteIndexJob(config,
          callingLuceneLocation, this);
      callingLuceneLocation.getQueue().addJob(job);
    }

  }
View Full Code Here

    IndexLocation actualLocation = callingIndexLocation;
    if (indexLocation != null) {
      actualLocation = indexLocation;
    }
    if (REINDEX_JOB.equalsIgnoreCase(name)) {
      AbstractUpdateCheckerJob job = (AbstractUpdateCheckerJob) new AutocompleteIndexJob(this.config,
          actualLocation, this);
      actualLocation.getQueue().addJob(job);
    } else if (CLEAR_JOB.equalsIgnoreCase(name)) {
      AbstractUpdateCheckerJob job = (AbstractUpdateCheckerJob) new AutocompleteIndexDeleteJob(this.config,
          actualLocation, this);
      actualLocation.getQueue().addJob(job);
    } else {
      throw new NoSuchMethodException("No Job-Method by the name: " + name);
    }
View Full Code Here

TOP

Related Classes of com.gentics.cr.util.indexing.AbstractUpdateCheckerJob

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.