Exemple #1
0
  public void cancelCoreRecoveries() {

    List<SolrCore> cores = solrCores.getCores();

    // we must cancel without holding the cores sync
    // make sure we wait for any recoveries to stop
    for (SolrCore core : cores) {
      try {
        core.getSolrCoreState().cancelRecovery();
      } catch (Exception e) {
        SolrException.log(log, "Error canceling recovery for core", e);
      }
    }
  }
Exemple #2
0
 /** @return a Collection of registered SolrCores */
 public Collection<SolrCore> getCores() {
   return solrCores.getCores();
 }