Package | Description |
---|---|
org.apache.solr.cloud |
Classes for dealing with ZooKeeper when operating in SolrCloud mode.
|
org.apache.solr.common.cloud |
Common Solr Cloud and ZooKeeper related classes reused on both clients & server.
|
Modifier and Type | Method and Description |
---|---|
ClusterState |
ZkController.getClusterState() |
Modifier and Type | Method and Description |
---|---|
static String |
Assign.assignNode(String collection,
ClusterState state) |
static String |
Assign.assignShard(String collection,
ClusterState state,
Integer numShards)
Assign a new unique id up to slices count - then add replicas evenly.
|
static ArrayList<org.apache.solr.cloud.Assign.Node> |
Assign.getNodesForNewShard(ClusterState clusterState,
String collectionName,
int numSlices,
int maxShardsPerNode,
int repFactor,
String createNodeSetStr) |
Modifier and Type | Field and Description |
---|---|
protected ClusterState |
ZkStateReader.clusterState |
Modifier and Type | Method and Description |
---|---|
ClusterState |
ClusterState.copyWith(Map<String,DocCollection> modified) |
ClusterState |
ZkStateReader.getClusterState() |
static ClusterState |
ClusterState.load(Integer version,
byte[] bytes,
Set<String> liveNodes)
Create ClusterState from json string that is typically stored in zookeeper.
|
static ClusterState |
ClusterState.load(SolrZkClient zkClient,
Set<String> liveNodes,
ZkStateReader stateReader)
Create ClusterState by reading the current state from zookeeper.
|
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.