| Modifier and Type | Method and Description |
|---|---|
ShardRouting[] |
ClusterSearchShardsGroup.getShards() |
| Constructor and Description |
|---|
ClusterSearchShardsGroup(String index,
int shardId,
ShardRouting[] shards) |
| Modifier and Type | Method and Description |
|---|---|
protected TransportBroadcastByNodeAction.EmptyResult |
TransportClearIndicesCacheAction.shardOperation(ClearIndicesCacheRequest request,
ShardRouting shardRouting) |
| Modifier and Type | Method and Description |
|---|---|
protected TransportBroadcastByNodeAction.EmptyResult |
TransportForceMergeAction.shardOperation(ForceMergeRequest request,
ShardRouting shardRouting) |
| Modifier and Type | Method and Description |
|---|---|
protected RecoveryState |
TransportRecoveryAction.shardOperation(RecoveryRequest request,
ShardRouting shardRouting) |
| Modifier and Type | Method and Description |
|---|---|
ShardRouting |
ShardSegments.getShardRouting() |
| Modifier and Type | Method and Description |
|---|---|
protected ShardSegments |
TransportIndicesSegmentsAction.shardOperation(IndicesSegmentsRequest request,
ShardRouting shardRouting) |
| Modifier and Type | Method and Description |
|---|---|
ShardRouting |
ShardStats.getShardRouting()
The shard routing information (cluster wide shard state).
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<ShardRouting,ShardStats> |
IndicesStatsResponse.asMap() |
| Modifier and Type | Method and Description |
|---|---|
protected ShardStats |
TransportIndicesStatsAction.shardOperation(IndicesStatsRequest request,
ShardRouting shardRouting) |
| Constructor and Description |
|---|
ShardStats(ShardRouting routing,
ShardPath shardPath,
CommonStats commonStats,
CommitStats commitStats) |
| Modifier and Type | Method and Description |
|---|---|
ShardRouting |
ShardUpgradeStatus.getShardRouting() |
| Modifier and Type | Method and Description |
|---|---|
protected ShardUpgradeStatus |
TransportUpgradeStatusAction.shardOperation(UpgradeStatusRequest request,
ShardRouting shardRouting) |
| Modifier and Type | Method and Description |
|---|---|
protected org.elasticsearch.action.admin.indices.upgrade.post.ShardUpgradeResult |
TransportUpgradeAction.shardOperation(UpgradeRequest request,
ShardRouting shardRouting) |
| Modifier and Type | Method and Description |
|---|---|
protected ShardValidateQueryRequest |
TransportValidateQueryAction.newShardRequest(int numShards,
ShardRouting shard,
ValidateQueryRequest request) |
| Modifier and Type | Method and Description |
|---|---|
protected ShardExistsRequest |
TransportExistsAction.newShardRequest(int numShards,
ShardRouting shard,
ExistsRequest request) |
| Modifier and Type | Method and Description |
|---|---|
protected FieldStatsShardRequest |
TransportFieldStatsTransportAction.newShardRequest(int numShards,
ShardRouting shard,
FieldStatsRequest request) |
| Modifier and Type | Method and Description |
|---|---|
protected PercolateShardRequest |
TransportPercolateAction.newShardRequest(int numShards,
ShardRouting shard,
PercolateRequest request) |
| Modifier and Type | Method and Description |
|---|---|
protected ShardSuggestRequest |
TransportSuggestAction.newShardRequest(int numShards,
ShardRouting shard,
SuggestRequest request) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ShardRequest |
TransportBroadcastAction.newShardRequest(int numShards,
ShardRouting shard,
Request request) |
protected void |
TransportBroadcastAction.AsyncBroadcastAction.onOperation(ShardRouting shard,
int shardIndex,
ShardResponse response) |
protected void |
TransportBroadcastAction.AsyncBroadcastAction.performOperation(ShardIterator shardIt,
ShardRouting shard,
int shardIndex) |
| Modifier and Type | Method and Description |
|---|---|
List<ShardRouting> |
TransportBroadcastByNodeAction.NodeRequest.getShards() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ShardOperationResult |
TransportBroadcastByNodeAction.shardOperation(Request request,
ShardRouting shardRouting)
Executes the shard-level operation.
|
| Constructor and Description |
|---|
TransportBroadcastByNodeAction.NodeRequest(String nodeId,
Request request,
List<ShardRouting> shards) |
| Modifier and Type | Method and Description |
|---|---|
protected ShardDfsOnlyRequest |
TransportDfsOnlyAction.newShardRequest(int numShards,
ShardRouting shard,
DfsOnlyRequest request) |
| Modifier and Type | Method and Description |
|---|---|
String |
ClusterInfo.getDataPath(ShardRouting shardRouting)
Returns the nodes absolute data-path the given shard is allocated on or
null if the information is not available. |
Long |
ClusterInfo.getShardSize(ShardRouting shardRouting)
Returns the shard size for the given shard routing or
null it that metric is not available. |
long |
ClusterInfo.getShardSize(ShardRouting shardRouting,
long defaultValue)
Returns the shard size for the given shard routing or
defaultValue it that metric is not available. |
| Constructor and Description |
|---|
ClusterInfo(Map<String,DiskUsage> leastAvailableSpaceUsage,
Map<String,DiskUsage> mostAvailableSpaceUsage,
Map<String,Long> shardSizes,
Map<ShardRouting,String> routingToDataPath)
Creates a new ClusterInfo instance.
|
| Modifier and Type | Method and Description |
|---|---|
ShardRouting |
ShardStateAction.ShardRoutingEntry.getShardRouting() |
| Modifier and Type | Method and Description |
|---|---|
void |
ShardStateAction.resendShardFailed(ShardRouting shardRouting,
String indexUUID,
DiscoveryNode masterNode,
String message,
Throwable failure) |
void |
ShardStateAction.shardFailed(ShardRouting shardRouting,
String indexUUID,
String message,
Throwable failure) |
void |
ShardStateAction.shardStarted(ShardRouting shardRouting,
String indexUUID,
String reason) |
void |
ShardStateAction.shardStarted(ShardRouting shardRouting,
String indexUUID,
String reason,
DiscoveryNode masterNode) |
| Modifier and Type | Method and Description |
|---|---|
ShardRouting |
RoutingNodes.activePrimary(ShardRouting shard)
Returns the active primary shard for the given ShardRouting or
null if
no primary is found or the primary is not active. |
ShardRouting |
RoutingNodes.activeReplica(ShardRouting shard)
Returns one active replica shard for the given ShardRouting shard ID or
null if
no active replica is found. |
ShardRouting |
ShardRouting.buildTargetRelocatingShard()
Creates a shard routing representing the target shard.
|
ShardRouting |
RoutingNodes.RoutingNodeIterator.current() |
ShardRouting[] |
RoutingNodes.UnassignedShards.drain()
Drains all unassigned shards and returns it.
|
ShardRouting |
RoutingNode.get(int i) |
static ShardRouting |
ShardRouting.newUnassigned(String index,
int shardId,
RestoreSource restoreSource,
boolean primary,
UnassignedInfo unassignedInfo)
Creates a new unassigned shard.
|
ShardRouting |
RoutingNodes.UnassignedShards.UnassignedIterator.next() |
ShardRouting |
RoutingNodes.RoutingNodeIterator.next() |
ShardRouting |
ShardsIterator.nextOrNull()
Returns the next shard, or null if none available.
|
ShardRouting |
PlainShardsIterator.nextOrNull() |
ShardRouting |
IndexShardRoutingTable.primaryShard() |
static ShardRouting |
ShardRouting.readShardRoutingEntry(StreamInput in) |
static ShardRouting |
ShardRouting.readShardRoutingEntry(StreamInput in,
String index,
int shardId) |
ShardRouting |
RoutingNodes.relocate(ShardRouting shard,
String nodeId,
long expectedShardSize)
Relocate a shard to another node, adding the target initializing
shard as well as assigning it.
|
ShardRouting |
IllegalShardRoutingStateException.shard()
Returns the shard instance referenced by this exception
|
| Modifier and Type | Method and Description |
|---|---|
List<ShardRouting> |
IndexShardRoutingTable.activeShards()
Returns a
List of active shards |
List<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 a
List of assigned shards |
Iterable<ShardRouting> |
RoutingNodes.assignedShards(ShardRouting shard)
Returns all shards that are not in the state UNASSIGNED with the same shard
ID as the given shard.
|
Iterable<ShardRouting> |
ShardsIterator.asUnordered() |
Iterable<ShardRouting> |
PlainShardsIterator.asUnordered() |
Collection<ShardRouting> |
RoutingNode.copyShards() |
List<ShardRouting> |
IndexShardRoutingTable.getActiveShards()
Returns a
List of active shards |
List<ShardRouting> |
IndexShardRoutingTable.getAssignedShards()
Returns a
List of assigned shards |
List<ShardRouting> |
IndexShardRoutingTable.getShards()
Returns a
List of shards |
List<ShardRouting> |
RoutingNodes.UnassignedShards.ignored()
The list of ignored unassigned shards (read only).
|
Iterator<ShardRouting> |
IndexShardRoutingTable.iterator() |
Iterator<ShardRouting> |
RoutingNodes.RoutingNodesIterator.iterator() |
Iterator<ShardRouting> |
RoutingNodes.RoutingNodeIterator.iterator() |
Iterator<ShardRouting> |
RoutingNode.iterator() |
List<ShardRouting> |
IndexShardRoutingTable.replicaShards() |
List<ShardRouting> |
IndexShardRoutingTable.replicaShardsWithState(ShardRoutingState... states) |
List<ShardRouting> |
IndexShardRoutingTable.shards()
Returns a
List of shards |
List<ShardRouting> |
RoutingNodes.shards(com.google.common.base.Predicate<ShardRouting> predicate) |
List<ShardRouting> |
RoutingNodes.shardsWithState(ShardRoutingState... state) |
List<ShardRouting> |
RoutingNode.shardsWithState(ShardRoutingState... states)
Determine the shards with a specific state
|
List<ShardRouting> |
RoutingTable.shardsWithState(ShardRoutingState state) |
List<ShardRouting> |
IndexShardRoutingTable.shardsWithState(ShardRoutingState state) |
List<ShardRouting> |
IndexRoutingTable.shardsWithState(ShardRoutingState state)
|
List<ShardRouting> |
RoutingNodes.shardsWithState(String index,
ShardRoutingState... state) |
List<ShardRouting> |
RoutingNode.shardsWithState(String index,
ShardRoutingState... states)
Determine the shards of an index with a specific state
|
List<ShardRouting> |
ShardShuffler.shuffle(List<ShardRouting> shards)
Equivalent to calling
shuffle(shards, nextSeed()). |
List<ShardRouting> |
RotationShardShuffler.shuffle(List<ShardRouting> shards,
int seed) |
abstract List<ShardRouting> |
ShardShuffler.shuffle(List<ShardRouting> shards,
int seed)
Return a shuffled view over the list of shards.
|
| Modifier and Type | Method and Description |
|---|---|
ShardRouting |
RoutingNodes.activePrimary(ShardRouting shard)
Returns the active primary shard for the given ShardRouting or
null if
no primary is found or the primary is not active. |
ShardRouting |
RoutingNodes.activeReplica(ShardRouting shard)
Returns one active replica shard for the given ShardRouting shard ID or
null if
no active replica is found. |
void |
RoutingNodes.UnassignedShards.add(ShardRouting shardRouting) |
IndexRoutingTable.Builder |
IndexRoutingTable.Builder.addShard(IndexShardRoutingTable refData,
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.Builder |
IndexShardRoutingTable.Builder.addShard(ShardRouting shardEntry) |
boolean |
RoutingNodes.allReplicasActive(ShardRouting shardRouting)
Returns
true iff all replicas are active for the given shard routing. |
Iterable<ShardRouting> |
RoutingNodes.assignedShards(ShardRouting shard)
Returns all shards that are not in the state UNASSIGNED with the same shard
ID as the given shard.
|
void |
RoutingNodes.cancelRelocation(ShardRouting shard)
Cancels a relocation of a shard that shard must relocating.
|
boolean |
ShardRouting.equalsIgnoringMetaData(ShardRouting other)
returns true if the current routing is identical to the other routing in all but meta fields, i.e., version and unassigned info
|
void |
RoutingNodes.UnassignedShards.ignoreShard(ShardRouting shard)
Marks a shard as temporarily ignored and adds it to the ignore unassigned list.
|
void |
RoutingNodes.initialize(ShardRouting shard,
String nodeId,
long expectedSize)
Moves a shard from unassigned to initialize state
|
boolean |
ShardRouting.isRelocationSourceOf(ShardRouting other)
returns true if the routing is the relocation source for the given routing
|
boolean |
ShardRouting.isRelocationTargetOf(ShardRouting other)
returns true if the routing is the relocation target of the given routing
|
boolean |
ShardRouting.isSameAllocation(ShardRouting other)
returns true if this routing has the same allocation ID as another.
|
boolean |
ShardRouting.isSameShard(ShardRouting other)
returns true if this routing has the same shardId as another
|
void |
RoutingNodes.reinitShadowPrimary(ShardRouting candidate) |
ShardRouting |
RoutingNodes.relocate(ShardRouting shard,
String nodeId,
long expectedShardSize)
Relocate a shard to another node, adding the target initializing
shard as well as assigning it.
|
IndexShardRoutingTable.Builder |
IndexShardRoutingTable.Builder.removeShard(ShardRouting shardEntry) |
void |
RoutingNodes.started(ShardRouting shard)
Mark a shard as started and adjusts internal statistics.
|
void |
RoutingNodes.swapPrimaryFlag(ShardRouting... shards)
swaps the status of a shard, making replicas primary and vice versa.
|
| Modifier and Type | Method and Description |
|---|---|
List<ShardRouting> |
RoutingNodes.shards(com.google.common.base.Predicate<ShardRouting> predicate) |
List<ShardRouting> |
ShardShuffler.shuffle(List<ShardRouting> shards)
Equivalent to calling
shuffle(shards, nextSeed()). |
List<ShardRouting> |
RotationShardShuffler.shuffle(List<ShardRouting> shards,
int seed) |
abstract List<ShardRouting> |
ShardShuffler.shuffle(List<ShardRouting> shards,
int seed)
Return a shuffled view over the list of shards.
|
void |
RoutingNodes.UnassignedShards.sort(Comparator<ShardRouting> comparator) |
| Constructor and Description |
|---|
IllegalShardRoutingStateException(ShardRouting shard,
String message) |
IllegalShardRoutingStateException(ShardRouting shard,
String message,
Throwable cause) |
ShardRouting(ShardRouting copy) |
ShardRouting(ShardRouting copy,
long version) |
| Constructor and Description |
|---|
PlainShardIterator(ShardId shardId,
List<ShardRouting> shards)
Creates a
PlainShardIterator instance that iterates over a subset of the given shards
this the a given shardId. |
PlainShardsIterator(List<ShardRouting> shards) |
RoutingNode(String nodeId,
DiscoveryNode node,
List<ShardRouting> shards) |
| Modifier and Type | Field and Description |
|---|---|
ShardRouting |
FailedRerouteAllocation.FailedShard.shard |
| Modifier and Type | Method and Description |
|---|---|
List<? extends ShardRouting> |
StartedRerouteAllocation.startedShards()
Get started shards
|
| Modifier and Type | Method and Description |
|---|---|
RoutingAllocation.Result |
AllocationService.applyFailedShard(ClusterState clusterState,
ShardRouting failedShard) |
| Modifier and Type | Method and Description |
|---|---|
RoutingAllocation.Result |
AllocationService.applyStartedShards(ClusterState clusterState,
List<? extends ShardRouting> startedShards)
Applies the started shards.
|
RoutingAllocation.Result |
AllocationService.applyStartedShards(ClusterState clusterState,
List<? extends ShardRouting> startedShards,
boolean withReroute) |
| Constructor and Description |
|---|
FailedRerouteAllocation.FailedShard(ShardRouting shard,
String message,
Throwable failure) |
| Constructor and Description |
|---|
StartedRerouteAllocation(AllocationDeciders deciders,
RoutingNodes routingNodes,
DiscoveryNodes nodes,
List<? extends ShardRouting> startedShards,
ClusterInfo clusterInfo) |
| Modifier and Type | Method and Description |
|---|---|
Decision |
AllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingAllocation allocation)
Returns a
Decision whether the given shard routing can be allocated at all at this state of the
RoutingAllocation. |
Decision |
ReplicaAfterPrimaryActiveAllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingAllocation allocation) |
Decision |
AllocationDeciders.canAllocate(ShardRouting shardRouting,
RoutingAllocation allocation) |
Decision |
DisableAllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
Deprecated.
|
Decision |
FilterAllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
ShardsLimitAllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
DiskThresholdDecider.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
AllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
Returns a
Decision whether the given shard routing can be
allocated on the given node. |
Decision |
AwarenessAllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
ThrottlingAllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
SameShardAllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
EnableAllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
NodeVersionAllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
SnapshotInProgressAllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
Returns a
Decision whether the given shard routing can be
allocated on the given node. |
Decision |
ReplicaAfterPrimaryActiveAllocationDecider.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
AllocationDeciders.canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
ClusterRebalanceAllocationDecider.canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation) |
Decision |
RebalanceOnlyWhenActiveAllocationDecider.canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation) |
Decision |
AllocationDecider.canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation)
Returns a
Decision whether the given shard routing can be
re-balanced to the given allocation. |
Decision |
ConcurrentRebalanceAllocationDecider.canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation) |
Decision |
EnableAllocationDecider.canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation) |
Decision |
SnapshotInProgressAllocationDecider.canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation)
Returns a
Decision whether the given shard routing can be
re-balanced to the given allocation. |
Decision |
AllocationDeciders.canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation) |
Decision |
FilterAllocationDecider.canRemain(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
ShardsLimitAllocationDecider.canRemain(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
DiskThresholdDecider.canRemain(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
AllocationDecider.canRemain(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
Returns a
Decision whether the given shard routing can be remain
on the given node. |
Decision |
AwarenessAllocationDecider.canRemain(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
Decision |
AllocationDeciders.canRemain(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation) |
| Modifier and Type | Method and Description |
|---|---|
int |
PriorityComparator.compare(ShardRouting o1,
ShardRouting o2) |
protected abstract AsyncShardFetch.FetchResult<TransportNodesListGatewayStartedShards.NodeGatewayStartedShards> |
PrimaryShardAllocator.fetchData(ShardRouting shard,
RoutingAllocation allocation) |
protected abstract AsyncShardFetch.FetchResult<TransportNodesListShardStoreMetaData.NodeStoreFilesMetaData> |
ReplicaShardAllocator.fetchData(ShardRouting shard,
RoutingAllocation allocation) |
boolean |
ReplicaShardAllocator.ignoreUnassignedIfDelayed(RoutingNodes.UnassignedShards.UnassignedIterator unassignedIterator,
ShardRouting shard)
Check if the allocation of the replica is to be delayed.
|
| Modifier and Type | Method and Description |
|---|---|
IndexShard |
IndexService.createShard(ShardRouting routing) |
| Modifier and Type | Field and Description |
|---|---|
protected ShardRouting |
IndexShard.shardRouting |
| Modifier and Type | Method and Description |
|---|---|
ShardRouting |
IndexShard.routingEntry()
Returns the latest cluster routing entry received with this shard.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IndexShard.recoverFromStore(ShardRouting shard,
StoreRecoveryService.RecoveryListener recoveryListener) |
void |
IndexShard.updateRoutingEntry(ShardRouting newRouting,
boolean persistState)
Updates the shards routing entry.
|
void |
ShadowIndexShard.updateRoutingEntry(ShardRouting newRouting,
boolean persistState)
In addition to the regular accounting done in
IndexShard.updateRoutingEntry(org.elasticsearch.cluster.routing.ShardRouting, boolean),
if this shadow replica needs to be promoted to a primary, the shard is
failed in order to allow a new primary to be re-allocated. |
| Modifier and Type | Method and Description |
|---|---|
void |
InternalIndicesLifecycle.shardRoutingChanged(IndexShard indexShard,
ShardRouting oldRouting,
ShardRouting newRouting) |
void |
IndicesLifecycle.Listener.shardRoutingChanged(IndexShard indexShard,
ShardRouting oldRouting,
ShardRouting newRouting)
Called when the shard routing has changed state.
|
| Modifier and Type | Method and Description |
|---|---|
Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> |
ShardsSyncedFlushResult.failedShards() |
Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> |
ShardsSyncedFlushResult.shardResponses() |
| Constructor and Description |
|---|
ShardsSyncedFlushResult(ShardId shardId,
String syncId,
int totalShards,
Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> shardResponses)
success constructor
|
| Constructor and Description |
|---|
ShardSearchTransportRequest(SearchRequest searchRequest,
ShardRouting shardRouting,
int numberOfShards,
String[] filteringAliases,
long nowInMillis) |
Copyright © 2009–2017. All rights reserved.