Class AddReplicaCmd
- java.lang.Object
-
- org.apache.solr.cloud.api.collections.AddReplicaCmd
-
- All Implemented Interfaces:
CollApiCmds.CollectionApiCommand
public class AddReplicaCmd extends Object implements CollApiCmds.CollectionApiCommand
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AddReplicaCmd.CreateReplica
A data structure to keep all information required to create a new replica in one place.
-
Constructor Summary
Constructors Constructor Description AddReplicaCmd(CollectionCommandContext ccc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddReplicaCmd.CreateReplica
assignReplicaDetails(org.apache.solr.client.solrj.cloud.SolrCloudManager cloudManager, org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message, org.apache.solr.common.cloud.ReplicaPosition replicaPosition)
static List<org.apache.solr.common.cloud.ReplicaPosition>
buildReplicaPositions(org.apache.solr.client.solrj.cloud.SolrCloudManager cloudManager, org.apache.solr.common.cloud.ClusterState clusterState, String collectionName, org.apache.solr.common.cloud.ZkNodeProps message, EnumMap<org.apache.solr.common.cloud.Replica.Type,Integer> replicaTypeVsCount, CoreContainer coreContainer)
void
call(org.apache.solr.common.cloud.ClusterState state, org.apache.solr.common.cloud.ZkNodeProps message, org.apache.solr.common.util.NamedList<Object> results)
-
-
-
Constructor Detail
-
AddReplicaCmd
public AddReplicaCmd(CollectionCommandContext ccc)
-
-
Method Detail
-
call
public void call(org.apache.solr.common.cloud.ClusterState state, org.apache.solr.common.cloud.ZkNodeProps message, org.apache.solr.common.util.NamedList<Object> results) throws Exception
- Specified by:
call
in interfaceCollApiCmds.CollectionApiCommand
- Throws:
Exception
-
assignReplicaDetails
public static AddReplicaCmd.CreateReplica assignReplicaDetails(org.apache.solr.client.solrj.cloud.SolrCloudManager cloudManager, org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message, org.apache.solr.common.cloud.ReplicaPosition replicaPosition)
-
buildReplicaPositions
public static List<org.apache.solr.common.cloud.ReplicaPosition> buildReplicaPositions(org.apache.solr.client.solrj.cloud.SolrCloudManager cloudManager, org.apache.solr.common.cloud.ClusterState clusterState, String collectionName, org.apache.solr.common.cloud.ZkNodeProps message, EnumMap<org.apache.solr.common.cloud.Replica.Type,Integer> replicaTypeVsCount, CoreContainer coreContainer) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-