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
-
-
Field Summary
-
Fields inherited from class org.apache.solr.common.cloud.ZkStateReader
ALIASES, aliasesManager, BASE_URL_PROP, CLUSTER_PROPS, clusterState, COLLECTION_DEF, 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, ELECTION_NODE_PROP, FORCE_SET_STATE_PROP, HTTP, HTTPS, HTTPS_PORT_PROP, KNOWN_CLUSTER_PROPS, LEADER_ELECT_ZKNODE, LEADER_PROP, 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, 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, ROLES_PROP, 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, URL_SCHEME
-
-
Constructor Summary
Constructors Constructor Description MockZkStateReader(org.apache.solr.common.cloud.ClusterState clusterState, Set<String> collections)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getAllCollections()
void
registerDocCollectionWatcher(String collection, org.apache.solr.common.cloud.DocCollectionWatcher stateWatcher)
-
Methods inherited from class org.apache.solr.common.cloud.ZkStateReader
close, compareStateVersions, createClusterStateWatchersAndUpdate, forceUpdateCollection, forciblyRefreshAllClusterStateSlow, from, getAliases, getAliasesManager, getBaseUrlForNodeName, getClusterProperties, getClusterProperty, getClusterProperty, getClusterState, getCollection, getCollectionLive, getCollectionPath, getCollectionPathRoot, getCollectionProperties, getCollectionProperties, getCurrentCollections, getLeader, getLeader, getLeaderRetry, getLeaderRetry, getLeaderUrl, getReplicaProps, getReplicaProps, getReplicaProps, getReplicaProps, getSecurityProps, getShardLeadersElectPath, getShardLeadersPath, getUpdateLock, getZkClient, isClosed, isNodeLive, registerCloudCollectionsListener, registerClusterPropertiesListener, registerCollectionPropsWatcher, registerCollectionStateWatcher, registerCore, registerLiveNodesListener, removeCloudCollectionsListener, removeClusterPropertiesListener, removeCollectionPropsWatcher, removeCollectionStateWatcher, removeDocCollectionWatcher, removeLiveNodesListener, unregisterCore, updateLiveNodes, waitForLiveNodes, waitForState, waitForState
-
-
-
-
Method Detail
-
registerDocCollectionWatcher
public void registerDocCollectionWatcher(String collection, org.apache.solr.common.cloud.DocCollectionWatcher stateWatcher)
- Overrides:
registerDocCollectionWatcher
in classorg.apache.solr.common.cloud.ZkStateReader
-
-