Skip to content

Commit

Permalink
Added javadoc for NodeShardResult and NodesToAllocate
Browse files Browse the repository at this point in the history
Signed-off-by: Shivansh Arora <shivansh.arora@protonmail.com>
  • Loading branch information
shiv0408 committed Sep 15, 2023
1 parent e7c778c commit 26ae860
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@ protected static NodesToAllocate buildNodesToAllocate(

protected abstract FetchResult<NodeGatewayStartedShards> fetchData(ShardRouting shard, RoutingAllocation allocation);

/**
* This class encapsulates the result of a call to {@link #buildNodeShardsResult}
*/
protected static class NodeShardsResult {
final NodeShardStates orderedAllocationCandidates;
final int allocationsFound;
Expand All @@ -516,6 +519,9 @@ protected static class NodeShardsResult {
}
}

/**
* This class encapsulates the result of a call to {@link #buildNodesToAllocate(RoutingAllocation, NodeShardStates, ShardRouting, boolean)}
* */
protected static class NodesToAllocate {
final List<? extends DecidedNode> yesNodeShards;
final List<? extends DecidedNode> throttleNodeShards;
Expand Down

0 comments on commit 26ae860

Please sign in to comment.