Package org.elasticsearch.cluster.routing
package org.elasticsearch.cluster.routing
-
ClassDescriptionUniquely 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.This exception defines illegal states of shard routingGenerates the shard id for(id, routing)pairs.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.Routing Preference TypeRepresents 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 snapshotAsynchronously performs a cluster reroute, updating any shard states and rebalancing the cluster if appropriate.BasicShardShufflerimplementation that uses anAtomicIntegerto generate seeds and uses a rotation to permute shards.Records changes made toRoutingNodesduring an allocation round.Abstract implementation ofRoutingChangesObserverthat does not take any action.A baseExceptions for all exceptions thrown by routing related operations.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.Allows to iterate over a set of shard instances (routing) within a shard id group.ShardRoutingimmutably encapsulates information about shard indexRoutings like id, state, version, etc.Represents the current state of aShardRoutingas defined by the cluster.A shuffler for shards whose primary goal is to balance load.Allows to iterate over unrelated shards.Holds additional information as to why the shard is in unassigned state.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.