Class DeleteNodeAPI
- java.lang.Object
-
- org.apache.solr.api.JerseyResource
-
- org.apache.solr.handler.admin.api.AdminAPIBase
-
- org.apache.solr.handler.admin.api.DeleteNodeAPI
-
@Path("cluster/nodes/{nodeName}/clear/") public class DeleteNodeAPI extends AdminAPIBase
V2 API for deleting all replicas of all collections in one node. Please note that the node itself will remain as a live node after this operation.This API is analogous to the V1 /admin/collections?action=DELETENODE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeleteNodeAPI.DeleteNodeRequestBody
-
Field Summary
-
Fields inherited from class org.apache.solr.handler.admin.api.AdminAPIBase
coreContainer, solrQueryRequest, solrQueryResponse
-
Fields inherited from class org.apache.solr.api.JerseyResource
containerRequestContext
-
-
Constructor Summary
Constructors Constructor Description DeleteNodeAPI(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.solr.common.cloud.ZkNodeProps
createRemoteMessage(String nodeName, DeleteNodeAPI.DeleteNodeRequestBody requestBody)
SolrJerseyResponse
deleteNode(String nodeName, DeleteNodeAPI.DeleteNodeRequestBody requestBody)
static SolrJerseyResponse
invokeUsingV1Inputs(DeleteNodeAPI apiInstance, org.apache.solr.common.params.SolrParams params)
-
Methods inherited from class org.apache.solr.handler.admin.api.AdminAPIBase
disableResponseCaching, fetchAndValidateZooKeeperAwareCoreContainer, recordCollectionForLogAndTracing, validateZooKeeperAwareCoreContainer
-
Methods inherited from class org.apache.solr.api.JerseyResource
instantiateJerseyResponse, instantiateJerseyResponse
-
-
-
-
Constructor Detail
-
DeleteNodeAPI
@Inject public DeleteNodeAPI(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
-
Method Detail
-
deleteNode
@POST @Produces({"application/json","application/xml","application/vnd.apache.solr.javabin"}) public SolrJerseyResponse deleteNode(@PathParam("nodeName") String nodeName, DeleteNodeAPI.DeleteNodeRequestBody requestBody) throws Exception
- Throws:
Exception
-
invokeUsingV1Inputs
public static SolrJerseyResponse invokeUsingV1Inputs(DeleteNodeAPI apiInstance, org.apache.solr.common.params.SolrParams params) throws Exception
- Throws:
Exception
-
createRemoteMessage
public static org.apache.solr.common.cloud.ZkNodeProps createRemoteMessage(String nodeName, DeleteNodeAPI.DeleteNodeRequestBody requestBody)
-
-