Package org.elasticsearch.cluster.routing
package org.elasticsearch.cluster.routing
-
InterfaceDescriptionAsynchronously performs a cluster reroute, updating any shard states and rebalancing the cluster if appropriate.Records changes made to
RoutingNodes
during an allocation round.Allows to iterate over a set of shard instances (routing) within a shard id group.Allows to iterate over unrelated shards. -
ClassDescriptionUniquely identifies an allocation.A
BatchedRerouteService
is aRerouteService
that batches together reroute requests to avoid unnecessary extra reroutes.TheDelayedAllocationService
listens 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 ofShardIterator
s.TheIndexRoutingTable
represents routing information for a single index.IndexShardRoutingTable
encapsulates all instances of a single shard.Hash function based on the Murmur3 algorithm, which is the default as of Elasticsearch 2.0.A simpleShardsIterator
that 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 snapshotBasicShardShuffler
implementation that uses anAtomicInteger
to generate seeds and uses a rotation to permute shards.Abstract implementation ofRoutingChangesObserver
that does not take any action.ARoutingNode
represents a cluster node associated with a singleDiscoveryNode
including all shards that are hosted on that nodes.RoutingNodes
represents 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.ShardRouting
immutably 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 ClassDescriptionRouting Preference TypeRepresents the current state of a
ShardRouting
as 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. -
ExceptionDescriptionThis exception defines illegal states of shard routingA base
Exception
s for all exceptions thrown by routing related operations.