public class CreateCollectionCmd extends Object implements OverseerCollectionMessageHandler.Cmd
Constructor and Description |
---|
CreateCollectionCmd(OverseerCollectionMessageHandler ocmh) |
Modifier and Type | Method and Description |
---|---|
static List<ReplicaPosition> |
buildReplicaPositions(SolrCloudManager cloudManager,
ClusterState clusterState,
DocCollection docCollection,
ZkNodeProps message,
List<String> shardNames,
AtomicReference<PolicyHelper.SessionWrapper> sessionWrapper) |
void |
call(ClusterState clusterState,
ZkNodeProps message,
NamedList results) |
static void |
checkReplicaTypes(ZkNodeProps message) |
static void |
createCollectionZkNode(DistribStateManager stateManager,
String collection,
Map<String,String> params) |
static List<String> |
populateShardNames(ZkNodeProps message,
String router) |
public CreateCollectionCmd(OverseerCollectionMessageHandler ocmh)
public void call(ClusterState clusterState, ZkNodeProps message, NamedList results) throws Exception
call
in interface OverseerCollectionMessageHandler.Cmd
Exception
public static List<ReplicaPosition> buildReplicaPositions(SolrCloudManager cloudManager, ClusterState clusterState, DocCollection docCollection, ZkNodeProps message, List<String> shardNames, AtomicReference<PolicyHelper.SessionWrapper> sessionWrapper) throws IOException, InterruptedException, Assign.AssignmentException
public static void checkReplicaTypes(ZkNodeProps message)
public static List<String> populateShardNames(ZkNodeProps message, String router)
public static void createCollectionZkNode(DistribStateManager stateManager, String collection, Map<String,String> params)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.