/** Initializes the current unassigned shard and moves it from the unassigned list. */ public void initialize(String nodeId, long version, long expectedShardSize) { innerRemove(); nodes.initialize(new ShardRouting(current, version), nodeId, expectedShardSize); }
/** * 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). */ public void removeAndIgnore() { innerRemove(); ignoreShard(current); }
/** * Initializes the current unassigned shard and moves it from the unassigned list. * * @param existingAllocationId allocation id to use. If null, a fresh allocation id is * generated. */ public void initialize( String nodeId, @Nullable String existingAllocationId, long expectedShardSize) { innerRemove(); nodes.initialize( new ShardRouting(current), nodeId, existingAllocationId, expectedShardSize); }