Class SwapCoresAPI
- java.lang.Object
-
- org.apache.solr.handler.admin.api.SwapCoresAPI
-
public class SwapCoresAPI extends Object
V2 API for swapping two existing Solr cores.Not intended for use in SolrCloud mode.
The new API (POST /v2/cores/coreName {'swap': {...}}) is equivalent to the v1 /admin/cores?action=swap command.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SwapCoresAPI.SwapCoresPayload
-
Constructor Summary
Constructors Constructor Description SwapCoresAPI(CoreAdminHandler coreHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
swapCores(PayloadObj<SwapCoresAPI.SwapCoresPayload> obj)
-
-
-
Constructor Detail
-
SwapCoresAPI
public SwapCoresAPI(CoreAdminHandler coreHandler)
-
-
Method Detail
-
swapCores
public void swapCores(PayloadObj<SwapCoresAPI.SwapCoresPayload> obj) throws Exception
- Throws:
Exception
-
-