Package org.platformlayer.service.solr.ops.SolrCoreHelpers

Examples of org.platformlayer.service.solr.ops.SolrCoreHelpers.SolrCoreStatus


  public void handler(OpsTarget target) throws OpsException {
    SolrCoreHelpers helper = new SolrCoreHelpers(target, key);

    if (OpsContext.isConfigure()) {
      // TODO: only reload if changed??
      SolrCoreStatus status0 = helper.getStatus();

      helper.reload();

      // TODO: It looks like reload is async; hopefully this check deals with that
      SolrCoreStatus status1 = helper.getStatus();

      while (true) {
        String startTime0 = status0.getStartTime();
        String startTime1 = status1.getStartTime();
        if (!Objects.equal(startTime0, startTime1)) {
          break;
        }

        OpsSystem.safeSleep(TimeSpan.ONE_SECOND);
View Full Code Here

TOP

Related Classes of org.platformlayer.service.solr.ops.SolrCoreHelpers.SolrCoreStatus

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.