Package org.apache.kafka.streams.state
Class StreamsMetadata
java.lang.Object
org.apache.kafka.streams.state.StreamsMetadata
@Deprecated public class StreamsMetadata extends Object
Deprecated.
Represents the state of an instance (process) in a
KafkaStreams
application.
It contains the user supplied HostInfo
that can be used by developers to build
APIs and services to connect to other instances, the Set of state stores available on
the instance and the Set of TopicPartition
s available on the instance.
NOTE: This is a point in time view. It may change when rebalances happen.-
Field Summary
Fields Modifier and Type Field Description static StreamsMetadata
NOT_AVAILABLE
Deprecated.Sentinel to indicate that the StreamsMetadata is currently unavailable. -
Constructor Summary
Constructors Constructor Description StreamsMetadata(HostInfo hostInfo, Set<String> stateStoreNames, Set<TopicPartition> topicPartitions, Set<String> standbyStateStoreNames, Set<TopicPartition> standbyTopicPartitions)
Deprecated. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
Deprecated.int
hashCode()
Deprecated.String
host()
Deprecated.HostInfo
hostInfo()
Deprecated.The value ofStreamsConfig.APPLICATION_SERVER_CONFIG
configured for the streams instance, which is typically host/portint
port()
Deprecated.Set<String>
standbyStateStoreNames()
Deprecated.State stores owned by the instance as a standby replicaSet<TopicPartition>
standbyTopicPartitions()
Deprecated.(Source) Topic partitions for which the instance acts as standby.Set<String>
stateStoreNames()
Deprecated.State stores owned by the instance as an active replicaSet<TopicPartition>
topicPartitions()
Deprecated.Topic partitions consumed by the instance as an active replicaString
toString()
Deprecated.
-
Field Details
-
NOT_AVAILABLE
Deprecated.Sentinel to indicate that the StreamsMetadata is currently unavailable. This can occur during rebalance operations.
-
-
Constructor Details
-
StreamsMetadata
public StreamsMetadata(HostInfo hostInfo, Set<String> stateStoreNames, Set<TopicPartition> topicPartitions, Set<String> standbyStateStoreNames, Set<TopicPartition> standbyTopicPartitions)Deprecated.
-
-
Method Details
-
hostInfo
Deprecated.The value ofStreamsConfig.APPLICATION_SERVER_CONFIG
configured for the streams instance, which is typically host/port- Returns:
HostInfo
corresponding to the streams instance
-
stateStoreNames
Deprecated.State stores owned by the instance as an active replica- Returns:
- set of active state store names
-
topicPartitions
Deprecated.Topic partitions consumed by the instance as an active replica- Returns:
- set of active topic partitions
-
standbyTopicPartitions
Deprecated.(Source) Topic partitions for which the instance acts as standby.- Returns:
- set of standby topic partitions
-
standbyStateStoreNames
Deprecated.State stores owned by the instance as a standby replica- Returns:
- set of standby state store names
-
host
Deprecated. -
port
public int port()Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
StreamsMetadata