Package org.elasticsearch.cluster.routing
package org.elasticsearch.cluster.routing
-
Interface SummaryInterfaceDescriptionAsynchronously performs a cluster reroute, updating any shard states and rebalancing the cluster if appropriate.Records changes made to
RoutingNodesduring an allocation round.Allows to iterate over a set of shard instances (routing) within a shard id group.Allows to iterate over unrelated shards. -
Class SummaryClassDescriptionUniquely identifies an allocation.A
BatchedRerouteServiceis aRerouteServicethat batches together reroute requests to avoid unnecessary extra reroutes.TheDelayedAllocationServicelistens to cluster state changes and checks if there are unassigned shards with delayed allocation (unassigned shards that have the delay marker).This class implements a compilation ofShardIterators.TheIndexRoutingTablerepresents routing information for a single index.IndexShardRoutingTableencapsulates all instances of a single shard.Hash function based on the Murmur3 algorithm, which is the default as of Elasticsearch 2.0.A simpleShardsIteratorthat iterates a list or sub-list ofshard indexRoutings.Represents the recovery source of a shard.Recovery from a fresh copyRecovery from an existing on-disk storerecovery from other shards on same node (shrink index action)peer recovery from a primary shardrecovery from a snapshotBasicShardShufflerimplementation that uses anAtomicIntegerto generate seeds and uses a rotation to permute shards.Abstract implementation ofRoutingChangesObserverthat does not take any action.ARoutingNoderepresents a cluster node associated with a singleDiscoveryNodeincluding all shards that are hosted on that nodes.RoutingNodesrepresents a copy the routing information contained in thecluster state.Represents a global cluster-wide routing table for all indices including the version of the current routing state.Builder for the routing table.ShardRoutingimmutably encapsulates information about shard indexRoutings like id, state, version, etc.A shuffler for shards whose primary goal is to balance load.Holds additional information as to why the shard is in unassigned state. -
Enum Class SummaryEnum ClassDescriptionRouting Preference TypeRepresents the current state of a
ShardRoutingas defined by the cluster.Captures the status of an unsuccessful allocation attempt for the shard, causing it to remain in the unassigned state.Reason why the shard is in unassigned state. -
Exception SummaryExceptionDescriptionThis exception defines illegal states of shard routingA base
Exceptions for all exceptions thrown by routing related operations.