Skip to content

Commit

Permalink
Add java doc on new class
Browse files Browse the repository at this point in the history
Signed-off-by: Aman Khare <[email protected]>
  • Loading branch information
Aman Khare committed Mar 15, 2024
1 parent e0cff1a commit 6112f4b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,14 @@ public String toString() {
}
}

/**
* This class extends the {@link GatewayShardStarted} which contains all necessary shard metadata like
* allocationId and replication checkpoint. It also has DiscoveryNode which is needed by
* {@link PrimaryShardAllocator} and {@link PrimaryShardBatchAllocator} to make allocation decision.
* This class removes the dependency of
* {@link TransportNodesListGatewayStartedShards.NodeGatewayStartedShards} to make allocation decisions by
* {@link PrimaryShardAllocator} or {@link PrimaryShardBatchAllocator}.
*/
public static class NodeGatewayShardStarted extends GatewayShardStarted {

private final DiscoveryNode node;
Expand Down

0 comments on commit 6112f4b

Please sign in to comment.