Class ModificationRequestImpl
java.lang.Object
org.apache.solr.cluster.placement.impl.ModificationRequestImpl
Helper class to create modification request instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeleteCollectionRequestcreateDeleteCollectionRequest(org.apache.solr.common.cloud.DocCollection docCollection) static DeleteReplicasRequestcreateDeleteReplicasRequest(SolrCollection collection, Set<Replica> replicas) Create a delete replicas request.static DeleteReplicasRequestcreateDeleteReplicasRequest(org.apache.solr.common.cloud.DocCollection docCollection, String shardName, Set<org.apache.solr.common.cloud.Replica> replicas) Create a delete replicas request using the internal Solr API.static DeleteShardsRequestcreateDeleteShardsRequest(SolrCollection collection, Set<String> shardNames) static DeleteShardsRequestcreateDeleteShardsRequest(org.apache.solr.common.cloud.DocCollection docCollection, Set<String> shardNames)
-
Constructor Details
-
ModificationRequestImpl
public ModificationRequestImpl()
-
-
Method Details
-
createDeleteCollectionRequest
public static DeleteCollectionRequest createDeleteCollectionRequest(org.apache.solr.common.cloud.DocCollection docCollection) -
createDeleteReplicasRequest
public static DeleteReplicasRequest createDeleteReplicasRequest(SolrCollection collection, Set<Replica> replicas) Create a delete replicas request.- Parameters:
collection- collection to delete replicas fromreplicas- replicas to delete
-
createDeleteReplicasRequest
public static DeleteReplicasRequest createDeleteReplicasRequest(org.apache.solr.common.cloud.DocCollection docCollection, String shardName, Set<org.apache.solr.common.cloud.Replica> replicas) Create a delete replicas request using the internal Solr API.- Parameters:
docCollection- Solr collection.shardName- shard name.replicas- Solr replicas (belonging to the shard).
-
createDeleteShardsRequest
public static DeleteShardsRequest createDeleteShardsRequest(SolrCollection collection, Set<String> shardNames) -
createDeleteShardsRequest
public static DeleteShardsRequest createDeleteShardsRequest(org.apache.solr.common.cloud.DocCollection docCollection, Set<String> shardNames)
-