Package org.apache.solr.common.cloud
Common Solr Cloud and ZooKeeper related classes reused on both clients & server.
-
Interface Summary Interface Description BeforeReconnect CloudCollectionsListener Callback registered withZkStateReader.registerCloudCollectionsListener(CloudCollectionsListener)
and called whenever the cloud's set of collections changes.ClusterPropertiesListener Listener that can be used withZkStateReader.registerClusterPropertiesListener(ClusterPropertiesListener)
and called whenever the cluster properties changes.CollectionPropsWatcher Callback registered withZkStateReader.registerCollectionPropsWatcher(String, CollectionPropsWatcher)
and called whenever the collection properties change.CollectionStatePredicate Interface to determine if a set of liveNodes and a collection's state matches some expecatations.CollectionStateWatcher Callback registered withZkStateReader.registerCollectionStateWatcher(String, CollectionStateWatcher)
and called whenever there is a change in the collection state or in the list of liveNodes.DocCollectionWatcher Callback registered withZkStateReader.registerDocCollectionWatcher(String, DocCollectionWatcher)
and called whenever the DocCollection changes.LiveNodesListener Listener that can be used withZkStateReader.registerLiveNodesListener(LiveNodesListener)
and called whenever the live nodes set changes.LiveNodesPredicate Interface to determine if live nodes matches a required stateOnReconnect Implementations are expected to implement a correct hashCode and equals method needed to uniquely identify the listener as listeners are managed in a Set.SolrClassLoader A generic interface to load plugin classesZkACLProvider ZkClientConnectionStrategy.ConnectedListener ZkClientConnectionStrategy.DisconnectedListener ZkClientConnectionStrategy.ZkUpdate ZkCredentialsProvider ZkMaintenanceUtils.ZkVisitor ZkOperation<T> A callback object which can be used for implementing retry-able operations. -
Class Summary Class Description Aliases Holds collection aliases -- virtual collections that point to one or more other collections.ClusterProperties Interact with solr cluster propertiesClusterState Immutable state of the cloud.ClusterState.CollectionRef ClusterStateUtil CollectionProperties Interact with solr collection propertiesCompositeIdRouter CompositeIdRouter partitions ids based on aCompositeIdRouter.SEPARATOR
, hashes each partition and merges the hashes together to map the id to a slice.ConnectionManager ConnectionManager.IsClosed DefaultConnectionStrategy TODO: improve backoff retry implDefaultZkACLProvider DefaultZkCredentialsProvider DocCollection Models a Collection in zookeeper (but that Java name is obviously taken, hence "DocCollection")DocRouter Class to partition int range into n ranges.DocRouter.Range HashBasedRouter ImplicitDocRouter This document router is for custom shardingNodesSysPropsCacher Caching other nodes system properties.PerReplicaStates This represents the individual replica states in a collection This is an immutable object.PerReplicaStates.Operation PerReplicaStates.State The state of a replica as stored as a node under /collections/collection-name/state.json/replica-statePerReplicaStatesOps This is a helper class that encapsulates various operations performed on the per-replica states Do not directly manipulate the per replica states as it can become difficult to debug themPlainIdRouter Replica ReplicaPosition RoutingRule Used for routing docs with particular keys into another collectionSaslZkACLProvider ZkACLProvider that gives all permissions for the user specified in System property "solr.authorization.superuser" (default: "solr") when using sasl, and gives read permissions for anyone else.SecurityAwareZkACLProvider ZkACLProvider
capable of returning a different set ofACL
s for security-related znodes (default: subtree under /security and security.json) vs non-security-related znodes.Slice A Slice contains immutable information about a logical shard (all replicas that share the same shard id).SolrZkClient All Solr ZooKeeper interactions should go through this class rather than ZooKeeper.SolrZooKeeper VMParamsAllAndReadonlyDigestZkACLProvider VMParamsSingleSetCredentialsDigestZkCredentialsProvider ZkClientConnectionStrategy ZkCmdExecutor ZkCoreNodeProps ZkCredentialsProvider.ZkCredentials ZkDynamicConfig Class holding the dynamic config of a Zookeeper ensemble as fetched from znode/zookeeper/config
.ZkDynamicConfig.Server Object representing one line in Zk dynamic configZkMaintenanceUtils Class to hold ZK upload/download/move common code.ZkNodeProps ZkNodeProps contains generic immutable properties.ZkStateReader ZkStateReader.ConfigData -
Enum Summary Enum Description PerReplicaStates.Operation.Type Replica.State The replica's state.Replica.Type Slice.State The slice's state.ZkMaintenanceUtils.VISIT_ORDER -
Exception Summary Exception Description ZooKeeperException