Examples of listDotCMSIndices()


Examples of com.dotcms.content.elasticsearch.business.ContentletIndexAPI.listDotCMSIndices()

    }

    public void optimizeIndices() {
      validateUser();
        ContentletIndexAPI api=APILocator.getContentletIndexAPI();
        List<String> indices=api.listDotCMSIndices();
        api.optimize(indices);
    }

    /**
   * The path where tmp files are stored. This gets wiped alot
View Full Code Here

Examples of com.dotcms.content.elasticsearch.business.ContentletIndexAPI.listDotCMSIndices()

    response.getWriter().println(ESIndexResource.indexDocumentCount(indexName));
  }

  public void getNotActiveIndexNames(HttpServletRequest request, HttpServletResponse response) throws IOException {
    ContentletIndexAPI idxApi = APILocator.getContentletIndexAPI();
    List<String> indices = idxApi.listDotCMSIndices();
    List<String> inactives = new ArrayList<String>();

    for (String index : indices) {
      try {
        if(APILocator.getESIndexAPI().getIndexStatus(index) == ESIndexAPI.Status.INACTIVE) {
View Full Code Here

Examples of com.dotcms.content.elasticsearch.business.ContentletIndexAPI.listDotCMSIndices()

    response.getWriter().println(ReindexThread.getInstance().isWorking()?"active":"stopped");
  }

  public void indexList(HttpServletRequest request, HttpServletResponse response) throws IOException {
        ContentletIndexAPI idxApi = APILocator.getContentletIndexAPI();
        response.getWriter().println(idxApi.listDotCMSIndices());       
    }
}
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.