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

    Constructors
    Constructor
    Description
    MockZkStateReader(org.apache.solr.common.cloud.ClusterState clusterState, Set<String> collections)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    registerDocCollectionWatcher(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MockZkStateReader

      public MockZkStateReader(org.apache.solr.common.cloud.ClusterState clusterState, Set<String> collections)
  • Method Details

    • getAllCollections

      public Set<String> getAllCollections()
    • registerDocCollectionWatcher

      public void registerDocCollectionWatcher(String collection, org.apache.solr.common.cloud.DocCollectionWatcher stateWatcher)
      Overrides:
      registerDocCollectionWatcher in class org.apache.solr.common.cloud.ZkStateReader