Class ShardBatchResponseFactory<T extends BaseNodeResponse,V>

java.lang.Object
org.opensearch.gateway.ShardBatchResponseFactory<T,V>
Type Parameters:
T - Node level response returned by batch transport actions.
V - Shard level metadata returned by batch transport actions.

public class ShardBatchResponseFactory<T extends BaseNodeResponse,V> extends Object
A factory class to create new responses of batch transport actions like TransportNodesListGatewayStartedShardsBatch or TransportNodesListShardStoreMetadataBatch
  • Constructor Details

    • ShardBatchResponseFactory

      public ShardBatchResponseFactory(boolean primary)
  • Method Details

    • getNewResponse

      public T getNewResponse(DiscoveryNode node, Map<org.opensearch.core.index.shard.ShardId,V> shardData)
    • getShardBatchData

      public Map<org.opensearch.core.index.shard.ShardId,V> getShardBatchData(T response)