Examples of pingIndex()


Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.pingIndex()

          docIndex.deleteMe();
          docIndex = IndexManager.createIndex(sGroupIndex, DocumentPojoIndexMap.documentType_, false, null, docMapping, localSettingsGroupIndex);
        }
        if (null != docIndex) {
          try {
            docIndex.pingIndex(); // (wait until it's created itself)
          }
          catch (Exception e) {} // (just make sure this doesn't die horribly)
        }
        else {
          docIndex = IndexManager.getIndex(sGroupIndex);
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.pingIndex()

      else { // Check if the index instance is running
        // (this will also update the node replication for local-only indexes - handy side effect!)
        boolean bAllGood = true;
        ElasticSearchManager esm = null;
        esm = ElasticSearchManager.getIndex("association_index");
        bAllGood &= esm.pingIndex();
        esm = ElasticSearchManager.getIndex("entity_index");
        bAllGood &= esm.pingIndex();

        bAllGood &= (DbManager.getSocial().getCommunity().count() > 0);
        // (also test connection to the DB)
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.pingIndex()

        boolean bAllGood = true;
        ElasticSearchManager esm = null;
        esm = ElasticSearchManager.getIndex("association_index");
        bAllGood &= esm.pingIndex();
        esm = ElasticSearchManager.getIndex("entity_index");
        bAllGood &= esm.pingIndex();

        bAllGood &= (DbManager.getSocial().getCommunity().count() > 0);
        // (also test connection to the DB)

        if (!bAllGood)
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.