Package org.apache.solr.cloud
Class MockZkStateReader
java.lang.Object
org.apache.solr.common.cloud.ZkStateReader
org.apache.solr.cloud.MockZkStateReader
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.solr.common.SolrCloseable
public class MockZkStateReader
extends org.apache.solr.common.cloud.ZkStateReader
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.common.cloud.ZkStateReader
org.apache.solr.common.cloud.ZkStateReader.AliasesManager, org.apache.solr.common.cloud.ZkStateReader.CollectionWatch<T>, org.apache.solr.common.cloud.ZkStateReader.ConfigData -
Field Summary
Fields inherited from class org.apache.solr.common.cloud.ZkStateReader
ALIASES, aliasesManager, BASE_URL_PROP, CLUSTER_PROPS, clusterState, COLLECTION_PROP, COLLECTION_PROPS_ZKNODE, COLLECTIONS_ZKNODE, CONFIGNAME_PROP, CONFIGS_ZKNODE, CONTAINER_PLUGINS, CORE_NAME_PROP, CORE_NODE_NAME_PROP, DEFAULT_SHARD_PREFERENCES, ELECTION_NODE, FORCE_SET_STATE_PROP, HTTP, HTTPS, HTTPS_PORT_PROP, KNOWN_CLUSTER_PROPS, LEADER_ELECT_ZKNODE, LEADER_PROP, LIVE_NODE_NODE_NAME, LIVE_NODE_ROLES, LIVE_NODE_SOLR_VERSION, LIVE_NODES_ZKNODE, MAX_AT_ONCE_PROP, MAX_CORES_PER_NODE, MAX_WAIT_SECONDS_PROP, NODE_NAME_PROP, NODE_ROLES, NRT_REPLICAS, NUM_SHARDS_PROP, OVERSEER_ENABLED, PLACEMENT_PLUGIN, PROPERTY_PROP, PROPERTY_PROP_PREFIX, PROPERTY_VALUE_PROP, PULL_REPLICAS, READ_ONLY, REJOIN_AT_HEAD_PROP, REPLICA_PROP, REPLICA_TYPE, REPLICATION_FACTOR, ROLES, SHARD_ID_PROP, SHARD_LEADERS_ZKNODE, SHARD_PARENT_PROP, SHARD_RANGE_PROP, SHARD_STATE_PROP, SHARED_STORAGE_PROP, SOLR_PKGS_PATH, SOLR_SECURITY_CONF_PATH, STATE_PROP, STATE_TIMESTAMP_PROP, STATE_UPDATE_DELAY, TLOG_REPLICAS, UNSUPPORTED_CLUSTER_STATE, UNSUPPORTED_SOLR_XML, URL_SCHEME -
Constructor Summary
ConstructorsConstructorDescriptionMockZkStateReader(org.apache.solr.common.cloud.ClusterState clusterState, Set<String> collections) -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterDocCollectionWatcher(String collection, org.apache.solr.common.cloud.DocCollectionWatcher stateWatcher) Methods inherited from class org.apache.solr.common.cloud.ZkStateReader
close, compareStateVersions, createClusterStateWatchersAndUpdate, fetchLowestSolrVersion, forceUpdateCollection, forciblyRefreshAllClusterStateSlow, from, getAliases, getAliasesManager, getBaseUrlForNodeName, getBaseUrlV2ForNodeName, getClusterProperties, getClusterProperty, getClusterProperty, getClusterState, getCollection, getCollectionLive, getCollectionPath, getCollectionPathRoot, getCollectionProperties, getCollectionProperties, getCurrentCollections, getLeader, getLeader, getLeaderRetry, getLeaderRetry, getLeaderUrl, getReplicaProps, getReplicaProps, getSecurityProps, getShardLeadersElectPath, getShardLeadersPath, getUpdateLock, getZkClient, getZKClient, isClosed, isNodeLive, registerCloudCollectionsListener, registerClusterPropertiesListener, registerCollectionPropsWatcher, registerCollectionStateWatcher, registerCore, registerLiveNodesListener, removeCloudCollectionsListener, removeClusterPropertiesListener, removeCollectionPropsWatcher, removeCollectionStateWatcher, removeDocCollectionWatcher, removeLiveNodesListener, unregisterCore, updateLiveNodes, waitForLiveNodes, waitForState, waitForState
-
Constructor Details
-
MockZkStateReader
-
-
Method Details
-
getAllCollections
-
registerDocCollectionWatcher
public void registerDocCollectionWatcher(String collection, org.apache.solr.common.cloud.DocCollectionWatcher stateWatcher) - Overrides:
registerDocCollectionWatcherin classorg.apache.solr.common.cloud.ZkStateReader
-