Package com.ikanow.infinit.e.processing.generic.synchronization

Examples of com.ikanow.infinit.e.processing.generic.synchronization.SynchronizationManager


    int fixes_db = 0;
    int fixes_search = 0;
        while (!sources.isEmpty()) {
          List<SourcePojo> sourceBatch = SourceUtils.getDistributedSourceList(sources, null, true);
          try {           
            SynchronizationManager syncManager = new SynchronizationManager();
            syncManager.setSources(sourceBatch);
           
            //TODO (INF-2114): For now remove this ... can add it back once syncDB is fixed:
            // (means that syncSearch will now do a lookup by hand against MongoDB)
            //HashSet<String> dbCache = new HashSet<String>();
            HashSet<String> dbCache = null;
           
            logger.debug("Syncing: " + sourceBatch.size());
           
            // Find things in the DB that don't have an index
            //TODO (INF-2114): For now remove this ... actually should call it but then
            // synch to the index instead of deleting from the DB
        //fixes_db += syncManager.syncDB(time_of_this_cleanse, dbCache);
       
            logger.debug("Syncing DB: " + fixes_db);
       
            // Find things in the index that don't have a DB entry
        fixes_search += syncManager.syncSearch(time_of_this_cleanse, dbCache);
       
            logger.debug("Syncing Index: " + fixes_search);           
          }
          catch (Exception e) {
            // Do nothing, the purpose of this try/catch is to ensure that the updateSyncStatus below always gets called
View Full Code Here

TOP

Related Classes of com.ikanow.infinit.e.processing.generic.synchronization.SynchronizationManager

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.