@Deprecated
    public Collection<org.apache.kafka.streams.state.StreamsMetadata> allMetadataForStore(final String storeName) {
        validateIsRunningOrRebalancing();
        return streamsMetadataState.getAllMetadataForStore(storeName).stream().map(streamsMetadata ->
                new org.apache.kafka.streams.state.StreamsMetadata(streamsMetadata.hostInfo(),
                        streamsMetadata.stateStoreNames(),
                        streamsMetadata.topicPartitions(),
                        streamsMetadata.standbyStateStoreNames(),
                        streamsMetadata.standbyTopicPartitions()))
                .collect(Collectors.toSet());
    }
Find all currently running {@code KafkaStreams} instances (potentially remotely) that
<ul>
  <li>use the same {@link StreamsConfig#APPLICATION_ID_CONFIG application ID} as this instance (i.e., all
      instances that belong to the same Kafka Streams application)</li>
  <li>and that contain a {@link StateStore} with the given {@code storeName}</li>
</ul>
and return {@link StreamsMetadata} for each discovered instance.
<p>
Note: this is a point in time view and it may change due to partition reassignment.

@param storeName the {@code storeName} to find metadata for
@return {@link StreamsMetadata} for each {@code KafkaStreams} instances with the provide {@code storeName} of
this application
@deprecated since 3.0.0 use {@link KafkaStreams#streamsMetadataForStore} instead
streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java