Class MockZkStateReader

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    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.ConfigData
    • Field Summary

      • Fields inherited from class org.apache.solr.common.cloud.ZkStateReader

        ALIASES, aliasesManager, AUTO_ADD_REPLICAS, BASE_URL_PROP, CLUSTER_PROPS, CLUSTER_STATE, clusterState, COLLECTION_DEF, COLLECTION_PROP, COLLECTION_PROPS_ZKNODE, COLLECTIONS_ZKNODE, CONFIGNAME_PROP, CONFIGS_ZKNODE, CORE_NAME_PROP, CORE_NODE_NAME_PROP, ELECTION_NODE, ELECTION_NODE_PROP, FORCE_SET_STATE_PROP, KNOWN_CLUSTER_PROPS, LEADER_ELECT_ZKNODE, LEADER_PROP, LEGACY_CLOUD, LIVE_NODES_ZKNODE, MAX_AT_ONCE_PROP, MAX_CORES_PER_NODE, MAX_SHARDS_PER_NODE, MAX_WAIT_SECONDS_PROP, NODE_NAME_PROP, NRT_REPLICAS, NUM_SHARDS_PROP, PROPERTY_PROP, PROPERTY_PROP_PREFIX, PROPERTY_VALUE_PROP, PULL_REPLICAS, 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_AUTOSCALING_CONF_PATH, SOLR_AUTOSCALING_EVENTS_PATH, SOLR_AUTOSCALING_NODE_ADDED_PATH, SOLR_AUTOSCALING_NODE_LOST_PATH, SOLR_AUTOSCALING_TRIGGER_STATE_PATH, SOLR_SECURITY_CONF_PATH, STATE_PROP, STATE_TIMESTAMP_PROP, STATE_UPDATE_DELAY, TLOG_REPLICAS, 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()  
      • Methods inherited from class org.apache.solr.common.cloud.ZkStateReader

        close, compareStateVersions, createClusterStateWatchersAndUpdate, forceUpdateCollection, forciblyRefreshAllClusterStateSlow, getAliases, getAutoScalingConfig, getAutoScalingConfig, getBaseUrlForNodeName, getClusterProperties, getClusterProperty, getClusterProperty, getClusterState, getCollectionLive, getCollectionPath, getCollectionPathRoot, getCollectionProperties, getConfigManager, getLeader, getLeader, getLeaderRetry, getLeaderRetry, getLeaderUrl, getReplicaProps, getReplicaProps, getReplicaProps, getReplicaProps, getSecurityProps, getShardLeadersElectPath, getShardLeadersPath, getUpdateLock, getZkClient, readConfigName, registerCloudCollectionsListener, registerCollectionPropsWatcher, registerCollectionStateWatcher, registerCore, registerLiveNodesListener, removeCloudCollectionsListener, removeCollectionPropsWatcher, removeCollectionStateWatcher, removeLiveNodesListener, unregisterCore, updateLiveNodes, waitForLiveNodes, waitForState
    • Constructor Detail

      • MockZkStateReader

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

      • getAllCollections

        public Set<String> getAllCollections()