Package org.opensearch.gateway
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.
A factory class to create new responses of batch transport actions like
TransportNodesListGatewayStartedShardsBatch
or TransportNodesListShardStoreMetadataBatch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNewResponse
(DiscoveryNode node, Map<org.opensearch.core.index.shard.ShardId, V> shardData) getShardBatchData
(T response)
-
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
-