Package com.gentics.cr.util.indexing

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


    indexTable = indexer.getIndexes();
    ResponseWriter writer = new ResponseWriter(response.getWriter());
    for (Entry<String, IndexLocation> e : indexTable.entrySet()) {
      if (showAll || e.getKey().equalsIgnoreCase(index)) {
        IndexLocation loc = e.getValue();
        IndexJobQueue queue = loc.getQueue();
        Map<String, CRConfigUtil> map = loc.getCRMap();
        if (queue != null && queue.isRunning()) {
          writer.write(e.getKey(), ".WorkerThread: OK\n");
        } 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


      setTemplateVariables(request);

      for (Entry<String, IndexLocation> e : indexTable.entrySet()) {
        IndexLocation loc = e.getValue();
        IndexJobQueue queue = loc.getQueue();
        ConcurrentHashMap<String, CRConfigUtil> map = loc.getCRMap();
        if (e.getKey().equalsIgnoreCase(index)) {
          if ("stopWorker".equalsIgnoreCase(action)) {
            queue.pauseWorker();
          }
          if ("startWorker".equalsIgnoreCase(action)) {
            queue.resumeWorker();
          }
          if ("clear".equalsIgnoreCase(action)) {
            loc.createClearJob();
          }
          if ("optimize".equalsIgnoreCase(action)) {
View Full Code Here

TOP

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

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.