Swaps two SolrCore descriptors.
(String n0, String n1)
| 2040 | } |
| 2041 | } |
| 2042 | |
| 2043 | /** Swaps two SolrCore descriptors. */ |
| 2044 | public void swap(String n0, String n1) { |
| 2045 | apiAssumeStandalone(); |
| 2046 | if (n0 == null || n1 == null) { |
| 2047 | throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "Can not swap unnamed cores."); |
| 2048 | } |
| 2049 | solrCores.swap(n0, n1); |
| 2050 | |
| 2051 | coresLocator.swap(this, solrCores.getCoreDescriptor(n0), solrCores.getCoreDescriptor(n1)); |
| 2052 | |
| 2053 | log.info("swapped: {} with {}", n0, n1); |
| 2054 | } |
| 2055 |
nothing calls this directly
no test coverage detected