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(SolrCloudManager cloudManager, ClusterState clusterState, ZkNodeProps message, ReplicaPosition replicaPosition)
static List<ReplicaPosition>
buildReplicaPositions(SolrCloudManager cloudManager, ClusterState clusterState, String collectionName, ZkNodeProps message, EnumMap<Replica.Type,Integer> replicaTypeVsCount, CoreContainer coreContainer)
void
call(ClusterState state, ZkNodeProps message, NamedList<Object> results)
-
-
-
Constructor Detail
-
AddReplicaCmd
public AddReplicaCmd(CollectionCommandContext ccc)
-
-
Method Detail
-
call
public void call(ClusterState state, ZkNodeProps message, NamedList<Object> results) throws Exception
- Specified by:
call
in interfaceCollApiCmds.CollectionApiCommand
- Throws:
Exception
-
assignReplicaDetails
public static AddReplicaCmd.CreateReplica assignReplicaDetails(SolrCloudManager cloudManager, ClusterState clusterState, ZkNodeProps message, ReplicaPosition replicaPosition)
-
buildReplicaPositions
public static List<ReplicaPosition> buildReplicaPositions(SolrCloudManager cloudManager, ClusterState clusterState, String collectionName, ZkNodeProps message, EnumMap<Replica.Type,Integer> replicaTypeVsCount, CoreContainer coreContainer) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-