Class RoutingNodes.UnassignedShards.UnassignedIterator

java.lang.Object
org.elasticsearch.cluster.routing.RoutingNodes.UnassignedShards.UnassignedIterator
All Implemented Interfaces:
java.util.Iterator<ShardRouting>, ExistingShardsAllocator.UnassignedAllocationHandler
Enclosing class:
RoutingNodes.UnassignedShards

public class RoutingNodes.UnassignedShards.UnassignedIterator
extends java.lang.Object
implements java.util.Iterator<ShardRouting>, ExistingShardsAllocator.UnassignedAllocationHandler
  • Constructor Summary

    Constructors
    Constructor Description
    UnassignedIterator()  
  • Method Summary

    Modifier and Type Method Description
    boolean hasNext()  
    ShardRouting initialize​(java.lang.String nodeId, java.lang.String existingAllocationId, long expectedShardSize, RoutingChangesObserver routingChangesObserver)
    Initializes the current unassigned shard and moves it from the unassigned list.
    ShardRouting next()  
    void remove()
    Unsupported operation, just there for the interface.
    void removeAndIgnore​(UnassignedInfo.AllocationStatus attempt, RoutingChangesObserver changes)
    Removes and ignores the unassigned shard (will be ignored for this run, but will be added back to unassigned once the metadata is constructed again).
    ShardRouting updateUnassigned​(UnassignedInfo unassignedInfo, RecoverySource recoverySource, RoutingChangesObserver changes)
    updates the unassigned info and recovery source on the current unassigned shard

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    forEachRemaining