Uses of Class
org.elasticsearch.cluster.routing.ShardRouting
-
-
Uses of ShardRouting in org.elasticsearch.action.admin.cluster.allocation
Methods in org.elasticsearch.action.admin.cluster.allocation that return ShardRouting Modifier and Type Method Description static ShardRoutingTransportClusterAllocationExplainAction. findShardToExplain(ClusterAllocationExplainRequest request, RoutingAllocation allocation)Methods in org.elasticsearch.action.admin.cluster.allocation with parameters of type ShardRouting Modifier and Type Method Description static ClusterAllocationExplanationTransportClusterAllocationExplainAction. explainShard(ShardRouting shardRouting, RoutingAllocation allocation, ClusterInfo clusterInfo, boolean includeYesDecisions, GatewayAllocator gatewayAllocator, ShardsAllocator shardAllocator)Constructors in org.elasticsearch.action.admin.cluster.allocation with parameters of type ShardRouting Constructor Description ClusterAllocationExplanation(ShardRouting shardRouting, DiscoveryNode currentNode, DiscoveryNode relocationTargetNode, ClusterInfo clusterInfo, ShardAllocationDecision shardAllocationDecision) -
Uses of ShardRouting in org.elasticsearch.action.admin.cluster.shards
Methods in org.elasticsearch.action.admin.cluster.shards that return ShardRouting Modifier and Type Method Description ShardRouting[]ClusterSearchShardsGroup. getShards()Constructors in org.elasticsearch.action.admin.cluster.shards with parameters of type ShardRouting Constructor Description ClusterSearchShardsGroup(ShardId shardId, ShardRouting[] shards) -
Uses of ShardRouting in org.elasticsearch.action.admin.indices.cache.clear
Methods in org.elasticsearch.action.admin.indices.cache.clear with parameters of type ShardRouting Modifier and Type Method Description protected TransportBroadcastByNodeAction.EmptyResultTransportClearIndicesCacheAction. shardOperation(ClearIndicesCacheRequest request, ShardRouting shardRouting) -
Uses of ShardRouting in org.elasticsearch.action.admin.indices.forcemerge
Methods in org.elasticsearch.action.admin.indices.forcemerge with parameters of type ShardRouting Modifier and Type Method Description protected TransportBroadcastByNodeAction.EmptyResultTransportForceMergeAction. shardOperation(ForceMergeRequest request, ShardRouting shardRouting) -
Uses of ShardRouting in org.elasticsearch.action.admin.indices.recovery
Methods in org.elasticsearch.action.admin.indices.recovery with parameters of type ShardRouting Modifier and Type Method Description protected RecoveryStateTransportRecoveryAction. shardOperation(RecoveryRequest request, ShardRouting shardRouting) -
Uses of ShardRouting in org.elasticsearch.action.admin.indices.segments
Methods in org.elasticsearch.action.admin.indices.segments that return ShardRouting Modifier and Type Method Description ShardRoutingShardSegments. getShardRouting()Methods in org.elasticsearch.action.admin.indices.segments with parameters of type ShardRouting Modifier and Type Method Description protected ShardSegmentsTransportIndicesSegmentsAction. shardOperation(IndicesSegmentsRequest request, ShardRouting shardRouting) -
Uses of ShardRouting in org.elasticsearch.action.admin.indices.stats
Methods in org.elasticsearch.action.admin.indices.stats that return ShardRouting Modifier and Type Method Description ShardRoutingShardStats. getShardRouting()The shard routing information (cluster wide shard state).Methods in org.elasticsearch.action.admin.indices.stats that return types with arguments of type ShardRouting Modifier and Type Method Description Map<ShardRouting,ShardStats>IndicesStatsResponse. asMap()Methods in org.elasticsearch.action.admin.indices.stats with parameters of type ShardRouting Modifier and Type Method Description protected ShardStatsTransportIndicesStatsAction. shardOperation(IndicesStatsRequest request, ShardRouting shardRouting)Constructors in org.elasticsearch.action.admin.indices.stats with parameters of type ShardRouting Constructor Description ShardStats(ShardRouting routing, ShardPath shardPath, CommonStats commonStats, CommitStats commitStats, SeqNoStats seqNoStats, RetentionLeaseStats retentionLeaseStats) -
Uses of ShardRouting in org.elasticsearch.action.admin.indices.upgrade.get
Methods in org.elasticsearch.action.admin.indices.upgrade.get that return ShardRouting Modifier and Type Method Description ShardRoutingShardUpgradeStatus. getShardRouting()Methods in org.elasticsearch.action.admin.indices.upgrade.get with parameters of type ShardRouting Modifier and Type Method Description protected ShardUpgradeStatusTransportUpgradeStatusAction. shardOperation(UpgradeStatusRequest request, ShardRouting shardRouting) -
Uses of ShardRouting in org.elasticsearch.action.admin.indices.upgrade.post
Methods in org.elasticsearch.action.admin.indices.upgrade.post with parameters of type ShardRouting Modifier and Type Method Description protected org.elasticsearch.action.admin.indices.upgrade.post.ShardUpgradeResultTransportUpgradeAction. shardOperation(UpgradeRequest request, ShardRouting shardRouting) -
Uses of ShardRouting in org.elasticsearch.action.admin.indices.validate.query
Methods in org.elasticsearch.action.admin.indices.validate.query with parameters of type ShardRouting Modifier and Type Method Description protected ShardValidateQueryRequestTransportValidateQueryAction. newShardRequest(int numShards, ShardRouting shard, ValidateQueryRequest request) -
Uses of ShardRouting in org.elasticsearch.action.search
Constructor parameters in org.elasticsearch.action.search with type arguments of type ShardRouting Constructor Description SearchShardIterator(String clusterAlias, ShardId shardId, List<ShardRouting> shards, OriginalIndices originalIndices)Creates aPlainShardIteratorinstance that iterates over a subset of the given shards this the a givenshardId. -
Uses of ShardRouting in org.elasticsearch.action.support.broadcast
Methods in org.elasticsearch.action.support.broadcast with parameters of type ShardRouting Modifier and Type Method Description protected abstract ShardRequestTransportBroadcastAction. newShardRequest(int numShards, ShardRouting shard, Request request)protected voidTransportBroadcastAction.AsyncBroadcastAction. onOperation(ShardRouting shard, int shardIndex, ShardResponse response)protected voidTransportBroadcastAction.AsyncBroadcastAction. performOperation(ShardIterator shardIt, ShardRouting shard, int shardIndex) -
Uses of ShardRouting in org.elasticsearch.action.support.broadcast.node
Methods in org.elasticsearch.action.support.broadcast.node that return types with arguments of type ShardRouting Modifier and Type Method Description List<ShardRouting>TransportBroadcastByNodeAction.NodeRequest. getShards()Methods in org.elasticsearch.action.support.broadcast.node with parameters of type ShardRouting Modifier and Type Method Description protected abstract ShardOperationResultTransportBroadcastByNodeAction. shardOperation(Request request, ShardRouting shardRouting)Executes the shard-level operation.Constructor parameters in org.elasticsearch.action.support.broadcast.node with type arguments of type ShardRouting Constructor Description NodeRequest(String nodeId, Request request, List<ShardRouting> shards) -
Uses of ShardRouting in org.elasticsearch.action.support.replication
Methods in org.elasticsearch.action.support.replication that return ShardRouting Modifier and Type Method Description ShardRoutingReplicationOperation.Primary. routingEntry()routing entry for this primaryMethods in org.elasticsearch.action.support.replication with parameters of type ShardRouting Modifier and Type Method Description voidReplicationOperation.Replicas. failShardIfNeeded(ShardRouting replica, long primaryTerm, String message, Exception exception, ActionListener<Void> listener)Fail the specified shard if needed, removing it from the current set of active shards.voidTransportReplicationAction.ReplicasProxy. failShardIfNeeded(ShardRouting replica, long primaryTerm, String message, Exception exception, ActionListener<Void> listener)voidReplicationOperation.Replicas. performOn(ShardRouting replica, RequestT replicaRequest, long primaryTerm, long globalCheckpoint, long maxSeqNoOfUpdatesOrDeletes, ActionListener<ReplicationOperation.ReplicaResponse> listener)Performs the specified request on the specified replica.voidTransportReplicationAction.ReplicasProxy. performOn(ShardRouting replica, ReplicaRequest request, long primaryTerm, long globalCheckpoint, long maxSeqNoOfUpdatesOrDeletes, ActionListener<ReplicationOperation.ReplicaResponse> listener) -
Uses of ShardRouting in org.elasticsearch.cluster
Methods in org.elasticsearch.cluster with parameters of type ShardRouting Modifier and Type Method Description StringClusterInfo. getDataPath(ShardRouting shardRouting)Returns the nodes absolute data-path the given shard is allocated on ornullif the information is not available.LongClusterInfo. getShardSize(ShardRouting shardRouting)Returns the shard size for the given shard routing ornullit that metric is not available.longClusterInfo. getShardSize(ShardRouting shardRouting, long defaultValue)Returns the shard size for the given shard routing ordefaultValueit that metric is not available. -
Uses of ShardRouting in org.elasticsearch.cluster.action.shard
Methods in org.elasticsearch.cluster.action.shard with parameters of type ShardRouting Modifier and Type Method Description voidShardStateAction. localShardFailed(ShardRouting shardRouting, String message, Exception failure, ActionListener<Void> listener)Send a shard failed request to the master node to update the cluster state when a shard on the local node failed.voidShardStateAction. localShardFailed(ShardRouting shardRouting, String message, Exception failure, ActionListener<Void> listener, ClusterState currentState)Send a shard failed request to the master node to update the cluster state when a shard on the local node failed.voidShardStateAction. shardStarted(ShardRouting shardRouting, long primaryTerm, String message, ActionListener<Void> listener)voidShardStateAction. shardStarted(ShardRouting shardRouting, long primaryTerm, String message, ActionListener<Void> listener, ClusterState currentState) -
Uses of ShardRouting in org.elasticsearch.cluster.health
Methods in org.elasticsearch.cluster.health with parameters of type ShardRouting Modifier and Type Method Description static ClusterHealthStatusClusterShardHealth. getInactivePrimaryHealth(ShardRouting shardRouting)Checks if an inactive primary shard should cause the cluster health to go RED. -
Uses of ShardRouting in org.elasticsearch.cluster.routing
Methods in org.elasticsearch.cluster.routing that return ShardRouting Modifier and Type Method Description ShardRoutingRoutingNodes. activePrimary(ShardId shardId)Returns the active primary shard for the given shard id ornullif no primary is found or the primary is not active.ShardRoutingRoutingNodes. activeReplicaWithHighestVersion(ShardId shardId)Returns one active replica shard for the given shard id ornullif no active replica is found.ShardRoutingShardRouting. cancelRelocation()Cancel relocation of a shard.ShardRouting[]RoutingNodes.UnassignedShards. drain()Drains all unassigned shards and returns it.ShardRoutingIndexShardRoutingTable. getByAllocationId(String allocationId)ShardRoutingRoutingNodes. getByAllocationId(ShardId shardId, String allocationId)ShardRoutingRoutingTable. getByAllocationId(ShardId shardId, String allocationId)ShardRoutingRoutingNode. getByShardId(ShardId id)ShardRoutingShardRouting. getTargetRelocatingShard()Returns a shard routing representing the target shard.ShardRoutingRoutingNodes.UnassignedShards.UnassignedIterator. initialize(String nodeId, String existingAllocationId, long expectedShardSize, RoutingChangesObserver routingChangesObserver)Initializes the current unassigned shard and moves it from the unassigned list.ShardRoutingShardRouting. initialize(String nodeId, String existingAllocationId, long expectedShardSize)Initializes an unassigned shard on a node.ShardRoutingRoutingNodes. initializeShard(ShardRouting unassignedShard, String nodeId, String existingAllocationId, long expectedSize, RoutingChangesObserver routingChangesObserver)Moves a shard from unassigned to initialize stateShardRoutingShardRouting. moveActiveReplicaToPrimary()Make the active shard primary unless it's not primaryShardRoutingShardRouting. moveToStarted()Set the shards state toSTARTED.ShardRoutingShardRouting. moveToUnassigned(UnassignedInfo unassignedInfo)Moves the shard to unassigned state.ShardRoutingShardRouting. moveUnassignedFromPrimary()Set the unassigned primary shard to non-primarystatic ShardRoutingShardRouting. newUnassigned(ShardId shardId, boolean primary, RecoverySource recoverySource, UnassignedInfo unassignedInfo)Creates a new unassigned shard.ShardRoutingRoutingNodes.UnassignedShards.UnassignedIterator. next()ShardRoutingPlainShardsIterator. nextOrNull()ShardRoutingShardsIterator. nextOrNull()Returns the next shard, ornullif none available.ShardRoutingIndexShardRoutingTable. primaryShard()ShardRoutingShardRouting. reinitializeReplicaShard()Reinitializes a replica shard, giving it a fresh allocation idShardRoutingShardRouting. relocate(String relocatingNodeId, long expectedShardSize)Relocate the shard to another node.ShardRoutingShardRouting. removeRelocationSource()Removes relocation source of a non-primary shard.ShardRoutingIllegalShardRoutingStateException. shard()Returns the shard instance referenced by this exceptionShardRoutingRoutingNodes. startShard(org.apache.logging.log4j.Logger logger, ShardRouting initializingShard, RoutingChangesObserver routingChangesObserver)Applies the relevant logic to start an initializing shard.ShardRoutingRoutingNodes.UnassignedShards.UnassignedIterator. updateUnassigned(UnassignedInfo unassignedInfo, RecoverySource recoverySource, RoutingChangesObserver changes)updates the unassigned info and recovery source on the current unassigned shardShardRoutingShardRouting. updateUnassigned(UnassignedInfo unassignedInfo, RecoverySource recoverySource)Methods in org.elasticsearch.cluster.routing that return types with arguments of type ShardRouting Modifier and Type Method Description List<ShardRouting>IndexShardRoutingTable. activeShards()Returns aListof active shardsList<ShardRouting>RoutingTable. allShards()All the shards (replicas) for all indices in this routing table.List<ShardRouting>RoutingTable. allShards(String index)All the shards (replicas) for the provided index.List<ShardRouting>IndexShardRoutingTable. assignedShards()Returns aListof assigned shards, including relocation targetsList<ShardRouting>RoutingNodes. assignedShards(ShardId shardId)Returns all shards that are not in the state UNASSIGNED with the same shard ID as the given shard.List<ShardRouting>RoutingNode. copyShards()List<ShardRouting>IndexShardRoutingTable. getActiveShards()Returns aListof active shardsList<ShardRouting>IndexShardRoutingTable. getAllInitializingShards()Returns aListof all initializing shards, including target shards of relocationsList<ShardRouting>PlainShardsIterator. getShardRoutings()List<ShardRouting>ShardsIterator. getShardRoutings()Returns theShardRoutings that this shards iterator holds.List<ShardRouting>IndexShardRoutingTable. getShards()Returns aListof shardsList<ShardRouting>RoutingNodes.UnassignedShards. ignored()The list of ignored unassigned shards (read only).Iterator<ShardRouting>IndexShardRoutingTable. iterator()Iterator<ShardRouting>PlainShardsIterator. iterator()Iterator<ShardRouting>RoutingNode. iterator()Iterator<ShardRouting>RoutingNodes. nodeInterleavedShardIterator()Creates an iterator over shards interleaving between nodes: The iterator returns the first shard from the first node, then the first shard of the second node, etc.Tuple<ShardRouting,ShardRouting>RoutingNodes. relocateShard(ShardRouting startedShard, String nodeId, long expectedShardSize, RoutingChangesObserver changes)Relocate a shard to another node, adding the target initializing shard as well as assigning it.Tuple<ShardRouting,ShardRouting>RoutingNodes. relocateShard(ShardRouting startedShard, String nodeId, long expectedShardSize, RoutingChangesObserver changes)Relocate a shard to another node, adding the target initializing shard as well as assigning it.List<ShardRouting>IndexShardRoutingTable. replicaShards()List<ShardRouting>IndexShardRoutingTable. replicaShardsWithState(ShardRoutingState... states)List<ShardRouting>IndexShardRoutingTable. shards()Returns aListof shardsList<ShardRouting>RoutingNodes. shards(Predicate<ShardRouting> predicate)List<ShardRouting>IndexRoutingTable. shardsWithState(ShardRoutingState state)List<ShardRouting>IndexShardRoutingTable. shardsWithState(ShardRoutingState state)List<ShardRouting>RoutingNode. shardsWithState(String index, ShardRoutingState... states)Determine the shards of an index with a specific stateList<ShardRouting>RoutingNode. shardsWithState(ShardRoutingState... states)Determine the shards with a specific stateList<ShardRouting>RoutingNodes. shardsWithState(String index, ShardRoutingState... state)List<ShardRouting>RoutingNodes. shardsWithState(ShardRoutingState... state)List<ShardRouting>RoutingTable. shardsWithState(ShardRoutingState state)List<ShardRouting>RotationShardShuffler. shuffle(List<ShardRouting> shards, int seed)List<ShardRouting>ShardShuffler. shuffle(List<ShardRouting> shards)Equivalent to callingshuffle(shards, nextSeed()).abstract List<ShardRouting>ShardShuffler. shuffle(List<ShardRouting> shards, int seed)Return a shuffled view over the list of shards.Methods in org.elasticsearch.cluster.routing with parameters of type ShardRouting Modifier and Type Method Description voidRoutingNodes.UnassignedShards. add(ShardRouting shardRouting)IndexRoutingTable.BuilderIndexRoutingTable.Builder. addShard(ShardRouting shard)Adds a new shard routing (makes a copy of it), with reference data used from the index shard routing table if it needs to be created.IndexShardRoutingTable.BuilderIndexShardRoutingTable.Builder. addShard(ShardRouting shardEntry)booleanShardRouting. equalsIgnoringMetaData(ShardRouting other)returns true if the current routing is identical to the other routing in all but meta fields, i.e., unassigned infovoidRoutingNodes. failShard(org.apache.logging.log4j.Logger logger, ShardRouting failedShard, UnassignedInfo unassignedInfo, IndexMetaData indexMetaData, RoutingChangesObserver routingChangesObserver)Applies the relevant logic to handle a cancelled or failed shard.voidRoutingNodes.UnassignedShards. ignoreShard(ShardRouting shard, UnassignedInfo.AllocationStatus allocationStatus, RoutingChangesObserver changes)Marks a shard as temporarily ignored and adds it to the ignore unassigned list.voidRoutingChangesObserver.AbstractRoutingChangesObserver. initializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica)voidRoutingChangesObserver.DelegatingRoutingChangesObserver. initializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica)voidRoutingChangesObserver. initializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica)Called when an initializing replica is reinitialized.ShardRoutingRoutingNodes. initializeShard(ShardRouting unassignedShard, String nodeId, String existingAllocationId, long expectedSize, RoutingChangesObserver routingChangesObserver)Moves a shard from unassigned to initialize statebooleanShardRouting. isRelocationSourceOf(ShardRouting other)returns true if the routing is the relocation source for the given routingbooleanShardRouting. isRelocationTargetOf(ShardRouting other)returns true if the routing is the relocation target of the given routingbooleanShardRouting. isSameAllocation(ShardRouting other)returns true if this routing has the same allocation ID as another.Tuple<ShardRouting,ShardRouting>RoutingNodes. relocateShard(ShardRouting startedShard, String nodeId, long expectedShardSize, RoutingChangesObserver changes)Relocate a shard to another node, adding the target initializing shard as well as assigning it.voidRoutingChangesObserver.AbstractRoutingChangesObserver. relocationCompleted(ShardRouting removedRelocationSource)voidRoutingChangesObserver.DelegatingRoutingChangesObserver. relocationCompleted(ShardRouting removedRelocationSource)voidRoutingChangesObserver. relocationCompleted(ShardRouting removedRelocationSource)Called on relocation source when relocation completes after relocation target is started.voidRoutingChangesObserver.AbstractRoutingChangesObserver. relocationSourceRemoved(ShardRouting removedReplicaRelocationSource)voidRoutingChangesObserver.DelegatingRoutingChangesObserver. relocationSourceRemoved(ShardRouting removedReplicaRelocationSource)voidRoutingChangesObserver. relocationSourceRemoved(ShardRouting removedReplicaRelocationSource)Called on replica relocation target when replica relocation source fails.voidRoutingChangesObserver.AbstractRoutingChangesObserver. relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard)voidRoutingChangesObserver.DelegatingRoutingChangesObserver. relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard)voidRoutingChangesObserver. relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard)Called when relocation of a started shard is initiated.IndexShardRoutingTable.BuilderIndexShardRoutingTable.Builder. removeShard(ShardRouting shardEntry)voidRoutingChangesObserver.AbstractRoutingChangesObserver. replicaPromoted(ShardRouting replicaShard)voidRoutingChangesObserver.DelegatingRoutingChangesObserver. replicaPromoted(ShardRouting replicaShard)voidRoutingChangesObserver. replicaPromoted(ShardRouting replicaShard)Called when started replica is promoted to primary.voidRoutingChangesObserver.AbstractRoutingChangesObserver. shardFailed(ShardRouting activeShard, UnassignedInfo unassignedInfo)voidRoutingChangesObserver.DelegatingRoutingChangesObserver. shardFailed(ShardRouting activeShard, UnassignedInfo unassignedInfo)voidRoutingChangesObserver. shardFailed(ShardRouting failedShard, UnassignedInfo unassignedInfo)Called when a shard is failed or cancelled.voidRoutingChangesObserver.AbstractRoutingChangesObserver. shardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard)voidRoutingChangesObserver.DelegatingRoutingChangesObserver. shardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard)voidRoutingChangesObserver. shardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard)Called when unassigned shard is initialized.voidRoutingChangesObserver.AbstractRoutingChangesObserver. shardStarted(ShardRouting initializingShard, ShardRouting startedShard)voidRoutingChangesObserver.DelegatingRoutingChangesObserver. shardStarted(ShardRouting initializingShard, ShardRouting startedShard)voidRoutingChangesObserver. shardStarted(ShardRouting initializingShard, ShardRouting startedShard)Called when an initializing shard is started.ShardRoutingRoutingNodes. startShard(org.apache.logging.log4j.Logger logger, ShardRouting initializingShard, RoutingChangesObserver routingChangesObserver)Applies the relevant logic to start an initializing shard.voidRoutingChangesObserver.AbstractRoutingChangesObserver. unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)voidRoutingChangesObserver.DelegatingRoutingChangesObserver. unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)voidRoutingChangesObserver. unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)Called when an unassigned shard's unassigned information was updatedMethod parameters in org.elasticsearch.cluster.routing with type arguments of type ShardRouting Modifier and Type Method Description List<ShardRouting>RoutingNodes. shards(Predicate<ShardRouting> predicate)List<ShardRouting>RotationShardShuffler. shuffle(List<ShardRouting> shards, int seed)List<ShardRouting>ShardShuffler. shuffle(List<ShardRouting> shards)Equivalent to callingshuffle(shards, nextSeed()).abstract List<ShardRouting>ShardShuffler. shuffle(List<ShardRouting> shards, int seed)Return a shuffled view over the list of shards.voidRoutingNodes.UnassignedShards. sort(Comparator<ShardRouting> comparator)Constructors in org.elasticsearch.cluster.routing with parameters of type ShardRouting Constructor Description IllegalShardRoutingStateException(ShardRouting shard, String message)IllegalShardRoutingStateException(ShardRouting shard, String message, Throwable cause)RoutingNode(String nodeId, DiscoveryNode node, ShardRouting... shards)Constructor parameters in org.elasticsearch.cluster.routing with type arguments of type ShardRouting Constructor Description PlainShardIterator(ShardId shardId, List<ShardRouting> shards)Creates aPlainShardIteratorinstance that iterates over a subset of the given shards this the a givenshardId.PlainShardsIterator(List<ShardRouting> shards) -
Uses of ShardRouting in org.elasticsearch.cluster.routing.allocation
Methods in org.elasticsearch.cluster.routing.allocation that return ShardRouting Modifier and Type Method Description ShardRoutingFailedShard. getRoutingEntry()The shard routing entry for the failed shard.Methods in org.elasticsearch.cluster.routing.allocation with parameters of type ShardRouting Modifier and Type Method Description ClusterStateAllocationService. applyFailedShard(ClusterState clusterState, ShardRouting failedShard, boolean markAsStale)voidRoutingNodesChangedObserver. initializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica)voidIndexMetaDataUpdater. relocationCompleted(ShardRouting removedRelocationSource)voidRoutingNodesChangedObserver. relocationCompleted(ShardRouting removedRelocationSource)voidRoutingNodesChangedObserver. relocationSourceRemoved(ShardRouting removedReplicaRelocationSource)voidRoutingNodesChangedObserver. relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard)voidRoutingAllocation. removeAllocationId(ShardRouting shardRouting)Remove the allocation id of the provided shard from the set of in-sync shard copiesvoidRoutingNodesChangedObserver. replicaPromoted(ShardRouting replicaShard)voidIndexMetaDataUpdater. shardFailed(ShardRouting failedShard, UnassignedInfo unassignedInfo)voidRoutingNodesChangedObserver. shardFailed(ShardRouting failedShard, UnassignedInfo unassignedInfo)voidIndexMetaDataUpdater. shardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard)voidRoutingNodesChangedObserver. shardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard)voidIndexMetaDataUpdater. shardStarted(ShardRouting initializingShard, ShardRouting startedShard)voidRoutingNodesChangedObserver. shardStarted(ShardRouting initializingShard, ShardRouting startedShard)voidRoutingNodesChangedObserver. unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)Method parameters in org.elasticsearch.cluster.routing.allocation with type arguments of type ShardRouting Modifier and Type Method Description ClusterStateAllocationService. applyStartedShards(ClusterState clusterState, List<ShardRouting> startedShards)Applies the started shards.Constructors in org.elasticsearch.cluster.routing.allocation with parameters of type ShardRouting Constructor Description FailedShard(ShardRouting routingEntry, String message, Exception failure, boolean markAsStale) -
Uses of ShardRouting in org.elasticsearch.cluster.routing.allocation.allocator
Methods in org.elasticsearch.cluster.routing.allocation.allocator with parameters of type ShardRouting Modifier and Type Method Description MoveDecisionBalancedShardsAllocator.Balancer. decideMove(ShardRouting shardRouting)Makes a decision on whether to move a started shard to another node.ShardAllocationDecisionBalancedShardsAllocator. decideShardAllocation(ShardRouting shard, RoutingAllocation allocation)ShardAllocationDecisionShardsAllocator. decideShardAllocation(ShardRouting shard, RoutingAllocation allocation)Returns the decision for where a shard should reside in the cluster. -
Uses of ShardRouting in org.elasticsearch.cluster.routing.allocation.command
Methods in org.elasticsearch.cluster.routing.allocation.command with parameters of type ShardRouting Modifier and Type Method Description protected voidAbstractAllocateAllocationCommand. initializeUnassignedShard(RoutingAllocation allocation, RoutingNodes routingNodes, RoutingNode routingNode, ShardRouting shardRouting)Initializes an unassigned shard on a node and removes it from the unassignedprotected voidAbstractAllocateAllocationCommand. initializeUnassignedShard(RoutingAllocation allocation, RoutingNodes routingNodes, RoutingNode routingNode, ShardRouting shardRouting, UnassignedInfo unassignedInfo, RecoverySource recoverySource)Initializes an unassigned shard on a node and removes it from the unassigned -
Uses of ShardRouting in org.elasticsearch.cluster.routing.allocation.decider
Methods in org.elasticsearch.cluster.routing.allocation.decider with parameters of type ShardRouting Modifier and Type Method Description DecisionAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be allocated at all at this state of theRoutingAllocation.DecisionAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be allocated on the given node.DecisionAllocationDeciders. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)DecisionAllocationDeciders. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionAwarenessAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionDiskThresholdDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionEnableAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)DecisionEnableAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionFilterAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionMaxRetryAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)DecisionMaxRetryAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionNodeVersionAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionReplicaAfterPrimaryActiveAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)DecisionReplicaAfterPrimaryActiveAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionResizeAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)DecisionResizeAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionRestoreInProgressAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingAllocation allocation)DecisionRestoreInProgressAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionSameShardAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionShardsLimitAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionSnapshotInProgressAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be allocated on the given node.DecisionThrottlingAllocationDecider. canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionAllocationDecider. canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)Returns aDecisionwhether the given primary shard can be forcibly allocated on the given node.DecisionAllocationDeciders. canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionMaxRetryAllocationDecider. canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionResizeAllocationDecider. canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionRestoreInProgressAllocationDecider. canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionSameShardAllocationDecider. canForceAllocatePrimary(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionAllocationDecider. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be re-balanced to the given allocation.DecisionAllocationDeciders. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)DecisionClusterRebalanceAllocationDecider. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)DecisionConcurrentRebalanceAllocationDecider. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)DecisionEnableAllocationDecider. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)DecisionRebalanceOnlyWhenActiveAllocationDecider. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)DecisionSnapshotInProgressAllocationDecider. canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be re-balanced to the given allocation.DecisionAllocationDecider. canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)Returns aDecisionwhether the given shard routing can be remain on the given node.DecisionAllocationDeciders. canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionAwarenessAllocationDecider. canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionDiskThresholdDecider. canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionFilterAllocationDecider. canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)DecisionShardsLimitAllocationDecider. canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)static longDiskThresholdDecider. getExpectedShardSize(ShardRouting shard, RoutingAllocation allocation, long defaultValue)Returns the expected shard size for the given shard or the default value provided if not enough information are available to estimate the shards size. -
Uses of ShardRouting in org.elasticsearch.gateway
Methods in org.elasticsearch.gateway with parameters of type ShardRouting Modifier and Type Method Description protected static List<NodeAllocationResult>BaseGatewayShardAllocator. buildDecisionsForAllNodes(ShardRouting shard, RoutingAllocation allocation)Builds decisions for all nodes in the cluster, so that the explain API can provide information on allocation decisions for each node, while still waiting to allocate the shard (e.g.protected static org.elasticsearch.gateway.PrimaryShardAllocator.NodeShardsResultPrimaryShardAllocator. buildNodeShardsResult(ShardRouting shard, boolean matchAnyShard, Set<String> ignoreNodes, Set<String> inSyncAllocationIds, AsyncShardFetch.FetchResult<TransportNodesListGatewayStartedShards.NodeGatewayStartedShards> shardState, org.apache.logging.log4j.Logger logger)Builds a list of nodes.intPriorityComparator. compare(ShardRouting o1, ShardRouting o2)AllocateUnassignedDecisionGatewayAllocator. decideUnassignedShardAllocation(ShardRouting unassignedShard, RoutingAllocation routingAllocation)Computes and returns the design for allocating a single unassigned shard.protected abstract AsyncShardFetch.FetchResult<TransportNodesListGatewayStartedShards.NodeGatewayStartedShards>PrimaryShardAllocator. fetchData(ShardRouting shard, RoutingAllocation allocation)protected abstract AsyncShardFetch.FetchResult<TransportNodesListShardStoreMetaData.NodeStoreFilesMetaData>ReplicaShardAllocator. fetchData(ShardRouting shard, RoutingAllocation allocation)protected abstract booleanReplicaShardAllocator. hasInitiatedFetching(ShardRouting shard)Returns a boolean indicating whether fetching shard data has been triggered at any point for the given shard.abstract AllocateUnassignedDecisionBaseGatewayShardAllocator. makeAllocationDecision(ShardRouting unassignedShard, RoutingAllocation allocation, org.apache.logging.log4j.Logger logger)Make a decision on the allocation of an unassigned shard.AllocateUnassignedDecisionPrimaryShardAllocator. makeAllocationDecision(ShardRouting unassignedShard, RoutingAllocation allocation, org.apache.logging.log4j.Logger logger)AllocateUnassignedDecisionReplicaShardAllocator. makeAllocationDecision(ShardRouting unassignedShard, RoutingAllocation allocation, org.apache.logging.log4j.Logger logger)Method parameters in org.elasticsearch.gateway with type arguments of type ShardRouting Modifier and Type Method Description voidGatewayAllocator. applyStartedShards(RoutingAllocation allocation, List<ShardRouting> startedShards) -
Uses of ShardRouting in org.elasticsearch.index
Methods in org.elasticsearch.index with parameters of type ShardRouting Modifier and Type Method Description IndexShardIndexService. createShard(ShardRouting routing, Consumer<ShardId> globalCheckpointSyncer, RetentionLeaseSyncer retentionLeaseSyncer) -
Uses of ShardRouting in org.elasticsearch.index.seqno
Methods in org.elasticsearch.index.seqno with parameters of type ShardRouting Modifier and Type Method Description static StringReplicationTracker. getPeerRecoveryRetentionLeaseId(ShardRouting shardRouting)Id for a peer recovery retention lease for the givenShardRouting. -
Uses of ShardRouting in org.elasticsearch.index.shard
Fields in org.elasticsearch.index.shard declared as ShardRouting Modifier and Type Field Description ShardRoutingIndexShard.ShardFailure. routingprotected ShardRoutingIndexShard. shardRoutingMethods in org.elasticsearch.index.shard that return ShardRouting Modifier and Type Method Description ShardRoutingIndexShard. routingEntry()Returns the latest cluster routing entry received with this shard.Methods in org.elasticsearch.index.shard that return types with arguments of type ShardRouting Modifier and Type Method Description List<ShardRouting>ReplicationGroup. getReplicationTargets()Returns the subset of shards in the routing table that should be replicated to.List<ShardRouting>ReplicationGroup. getSkippedShards()Returns the subset of shards in the routing table that are unassigned or initializing and not ready yet to receive operations (i.e.Methods in org.elasticsearch.index.shard with parameters of type ShardRouting Modifier and Type Method Description default voidIndexEventListener. shardRoutingChanged(IndexShard indexShard, ShardRouting oldRouting, ShardRouting newRouting)Called when the shard routing has changed state.voidIndexShard. updateShardState(ShardRouting newRouting, long newPrimaryTerm, BiConsumer<IndexShard,ActionListener<PrimaryReplicaSyncer.ResyncTask>> primaryReplicaSyncer, long applyingClusterStateVersion, Set<String> inSyncAllocationIds, IndexShardRoutingTable routingTable)Constructors in org.elasticsearch.index.shard with parameters of type ShardRouting Constructor Description IndexShard(ShardRouting shardRouting, IndexSettings indexSettings, ShardPath path, Store store, Supplier<Sort> indexSortSupplier, IndexCache indexCache, MapperService mapperService, SimilarityService similarityService, EngineFactory engineFactory, IndexEventListener indexEventListener, CheckedFunction<DirectoryReader,DirectoryReader,IOException> indexReaderWrapper, ThreadPool threadPool, BigArrays bigArrays, Engine.Warmer warmer, List<SearchOperationListener> searchOperationListener, List<IndexingOperationListener> listeners, Runnable globalCheckpointSyncer, RetentionLeaseSyncer retentionLeaseSyncer, CircuitBreakerService circuitBreakerService)ShardFailure(ShardRouting routing, String reason, Exception cause) -
Uses of ShardRouting in org.elasticsearch.indices
Methods in org.elasticsearch.indices with parameters of type ShardRouting Modifier and Type Method Description IndexShardIndicesService. createShard(ShardRouting shardRouting, RecoveryState recoveryState, PeerRecoveryTargetService recoveryTargetService, PeerRecoveryTargetService.RecoveryListener recoveryListener, RepositoriesService repositoriesService, Consumer<IndexShard.ShardFailure> onShardFailure, Consumer<ShardId> globalCheckpointSyncer, RetentionLeaseSyncer retentionLeaseSyncer) -
Uses of ShardRouting in org.elasticsearch.indices.cluster
Methods in org.elasticsearch.indices.cluster that return ShardRouting Modifier and Type Method Description ShardRoutingIndicesClusterStateService.Shard. routingEntry()Returns the latest cluster routing entry received with this shard.Methods in org.elasticsearch.indices.cluster with parameters of type ShardRouting Modifier and Type Method Description TIndicesClusterStateService.AllocatedIndices. createShard(ShardRouting shardRouting, RecoveryState recoveryState, PeerRecoveryTargetService recoveryTargetService, PeerRecoveryTargetService.RecoveryListener recoveryListener, RepositoriesService repositoriesService, Consumer<IndexShard.ShardFailure> onShardFailure, Consumer<ShardId> globalCheckpointSyncer, RetentionLeaseSyncer retentionLeaseSyncer)Creates a shard for the specified shard routing and starts recovery.voidIndicesClusterStateService.Shard. updateShardState(ShardRouting shardRouting, long primaryTerm, BiConsumer<IndexShard,ActionListener<PrimaryReplicaSyncer.ResyncTask>> primaryReplicaSyncer, long applyingClusterStateVersion, Set<String> inSyncAllocationIds, IndexShardRoutingTable routingTable)Updates the shard state based on an incoming cluster state: - Updates and persists the new routing value. -
Uses of ShardRouting in org.elasticsearch.indices.flush
Methods in org.elasticsearch.indices.flush that return types with arguments of type ShardRouting Modifier and Type Method Description Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse>ShardsSyncedFlushResult. failedShards()Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse>ShardsSyncedFlushResult. shardResponses()Constructor parameters in org.elasticsearch.indices.flush with type arguments of type ShardRouting Constructor Description ShardsSyncedFlushResult(ShardId shardId, String syncId, int totalShards, Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> shardResponses)success constructor -
Uses of ShardRouting in org.elasticsearch.indices.recovery
Constructors in org.elasticsearch.indices.recovery with parameters of type ShardRouting Constructor Description RecoveryState(ShardRouting shardRouting, DiscoveryNode targetNode, DiscoveryNode sourceNode) -
Uses of ShardRouting in org.elasticsearch.snapshots
Methods in org.elasticsearch.snapshots with parameters of type ShardRouting Modifier and Type Method Description voidRestoreService.RestoreInProgressUpdater. shardFailed(ShardRouting failedShard, UnassignedInfo unassignedInfo)voidRestoreService.RestoreInProgressUpdater. shardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard)voidRestoreService.RestoreInProgressUpdater. shardStarted(ShardRouting initializingShard, ShardRouting startedShard)voidRestoreService.RestoreInProgressUpdater. unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)
-