Class SliceMutator


  • public class SliceMutator
    extends Object
    • Field Detail

      • SLICE_UNIQUE_BOOLEAN_PROPERTIES

        public static final Set<String> SLICE_UNIQUE_BOOLEAN_PROPERTIES
      • cloudManager

        protected final org.apache.solr.client.solrj.cloud.SolrCloudManager cloudManager
      • stateManager

        protected final org.apache.solr.client.solrj.cloud.DistribStateManager stateManager
      • zkClient

        protected final org.apache.solr.common.cloud.SolrZkClient zkClient
    • Constructor Detail

      • SliceMutator

        public SliceMutator​(org.apache.solr.client.solrj.cloud.SolrCloudManager cloudManager)
    • Method Detail

      • addReplica

        public ZkWriteCommand addReplica​(org.apache.solr.common.cloud.ClusterState clusterState,
                                         org.apache.solr.common.cloud.ZkNodeProps message)
      • removeReplica

        public ZkWriteCommand removeReplica​(org.apache.solr.common.cloud.ClusterState clusterState,
                                            org.apache.solr.common.cloud.ZkNodeProps message)
      • setShardLeader

        public ZkWriteCommand setShardLeader​(org.apache.solr.common.cloud.ClusterState clusterState,
                                             org.apache.solr.common.cloud.ZkNodeProps message)
      • updateShardState

        public ZkWriteCommand updateShardState​(org.apache.solr.common.cloud.ClusterState clusterState,
                                               org.apache.solr.common.cloud.ZkNodeProps message)
      • addRoutingRule

        public ZkWriteCommand addRoutingRule​(org.apache.solr.common.cloud.ClusterState clusterState,
                                             org.apache.solr.common.cloud.ZkNodeProps message)
      • removeRoutingRule

        public ZkWriteCommand removeRoutingRule​(org.apache.solr.common.cloud.ClusterState clusterState,
                                                org.apache.solr.common.cloud.ZkNodeProps message)
      • updateReplica

        public static org.apache.solr.common.cloud.DocCollection updateReplica​(org.apache.solr.common.cloud.DocCollection collection,
                                                                               org.apache.solr.common.cloud.Slice slice,
                                                                               String coreNodeName,
                                                                               org.apache.solr.common.cloud.Replica replica)