Exemplo n.º 1
0
 public int getNumberOfInFlightFetch() {
   int count = 0;
   for (AsyncShardFetch<TransportNodesListGatewayStartedShards.NodeGatewayStartedShards> fetch :
       asyncFetchStarted.values()) {
     count += fetch.getNumberOfInFlightFetches();
   }
   for (AsyncShardFetch<TransportNodesListShardStoreMetaData.NodeStoreFilesMetaData> fetch :
       asyncFetchStore.values()) {
     count += fetch.getNumberOfInFlightFetches();
   }
   return count;
 }