Package org.apache.cassandra.locator
package org.apache.cassandra.locator
-
ClassDescriptionAn endpoint snitch tells Cassandra information about network topology that it can use to route requests more efficiently.AbstractReplicaCollection<C extends AbstractReplicaCollection<C>>A collection like class for Replica objects.A simple list with no comodification checks and immutability by default (only append permitted, and only one initial copy) this permits us to reduce the amount of garbage generated, by not wrapping iterators or unnecessarily copying and reduces the amount of indirection necessary, as well as ensuring monomorphic callsites TODO flatten into AbstractReplicaCollection?A simple map that ensures the underlying list's iteration order is maintained, and can be shared with subLists (either produced via subList, or via filter that naturally produced a subList).A abstract parent for all replication strategies.A snitch that assumes an ECS region is a DC and an ECS availability_zone is a rack.AzureSnitch will resolve datacenter and rack by calling
/metadata/instance/computeendpoint returning the response in JSON format for API version2021-12-13.Deprecated.See CASSANDRA-18438A dynamic snitch that sorts endpoints by latency with an adapted phi failure detector1) Snitch will automatically set the public IP by querying the AWS API 2) Snitch will set the private IP as a Gossip application state.A snitch that assumes an EC2 region is a DC and an EC2 availability_zone is a rack.A collection of Endpoints for a given ring position.A ReplicaCollection where all Replica are required to cover a range that fully contains the range() defined in the builder().A ReplicaCollection where all Replica are required to cover a range that fully contains the token() defined in the builder().MBean exposing standard Snitch infoA snitch that assumes an GCE region is a DC and an GCE availability_zone is a rack.This interface helps determine location of node in the datacenter relative to another node.A class to replace the usage of InetAddress to identify hosts in the cluster.Serializer for handling FWD_FRM message parameters.As of version 4.0 the endpoint description includes a port number as an unsigned shortThis Replication Strategy takes a property file that gives the intended replication factor in each datacenter.Used to determine if two IP's are in the same datacenter or on the same rack.A simple endpoint snitch implementation that assumes datacenter and rack information is encoded in the 2nd and 3rd octets of the ip address, respectively.A ReplicaCollection for Ranges occurring at an endpoint.Sidekick helper for snitches that want to reconnect from one IP addr for a node to another.A Replica represents an owning node for a copy of a portion of the token ring.ReplicaCollection<C extends ReplicaCollection<C>>A collection like class for Replica objects.ReplicaCollection.Builder<C extends ReplicaCollection<C>>A mutable (append-only) extension of a ReplicaCollection.Passed to add() and addAll() as ignoreConflicts parameter.ReplicaLayout<E extends Endpoints<E>>The relevant replicas for an operation over a given range or token.ReplicaLayout.ForWrite<E extends Endpoints<E>>ReplicaMultimap<K,C extends ReplicaCollection<?>> ReplicaMultimap.Builder<K,B extends ReplicaCollection.Builder<?>> Used by AbstractReadExecutor, {Data,Digest}Resolver and ReadRepair to share a ReplicaPlan whose 'contacts' replicas we progressively modify via various forms of speculation (initial speculation, rr-read and rr-write) The internal reference is not volatile, despite being shared between threads.A simple endpoint snitch implementation that treats Strategy order as proximity, allowing non-read-repaired reads to prefer a single endpoint, which improves cache locality.This class returns the nodes responsible for a given key but does not respect rack awareness.Tracks the assignment of racks and endpoints in each datacenter for all the "normal" endpoints in this TokenMetadata.Events related toTokenMetadatachanges.