Class CreateCollectionCmd
- java.lang.Object
-
- org.apache.solr.cloud.api.collections.CreateCollectionCmd
-
- All Implemented Interfaces:
CollApiCmds.CollectionApiCommand
public class CreateCollectionCmd extends Object implements CollApiCmds.CollectionApiCommand
-
-
Constructor Summary
Constructors Constructor Description CreateCollectionCmd(CollectionCommandContext ccc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcall(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message, org.apache.solr.common.util.NamedList<Object> results)static voidcheckReplicaTypes(org.apache.solr.common.cloud.ZkNodeProps message)static voidcreateCollectionZkNode(org.apache.solr.client.solrj.cloud.DistribStateManager stateManager, String collection, Map<String,String> params, ConfigSetService configSetService)static List<String>populateShardNames(org.apache.solr.common.cloud.ZkNodeProps message, String router)
-
-
-
Constructor Detail
-
CreateCollectionCmd
public CreateCollectionCmd(CollectionCommandContext ccc)
-
-
Method Detail
-
call
public void call(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message, org.apache.solr.common.util.NamedList<Object> results) throws Exception- Specified by:
callin interfaceCollApiCmds.CollectionApiCommand- Throws:
Exception
-
checkReplicaTypes
public static void checkReplicaTypes(org.apache.solr.common.cloud.ZkNodeProps message)
-
populateShardNames
public static List<String> populateShardNames(org.apache.solr.common.cloud.ZkNodeProps message, String router)
-
createCollectionZkNode
public static void createCollectionZkNode(org.apache.solr.client.solrj.cloud.DistribStateManager stateManager, String collection, Map<String,String> params, ConfigSetService configSetService)
-
-