Package org.apache.kafka.streams.state
Class StreamsMetadata
java.lang.Object
org.apache.kafka.streams.state.StreamsMetadata
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
Modifier and TypeFieldDescriptionstatic final StreamsMetadata
Deprecated.Sentinel to indicate that the StreamsMetadata is currently unavailable. -
Constructor Summary
ConstructorDescriptionStreamsMetadata
(HostInfo hostInfo, Set<String> stateStoreNames, Set<TopicPartition> topicPartitions, Set<String> standbyStateStoreNames, Set<TopicPartition> standbyTopicPartitions) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.int
hashCode()
Deprecated.host()
Deprecated.hostInfo()
Deprecated.The value ofStreamsConfig.APPLICATION_SERVER_CONFIG
configured for the streams instance, which is typically host/portint
port()
Deprecated.Deprecated.State stores owned by the instance as a standby replicaDeprecated.(Source) Topic partitions for which the instance acts as standby.Deprecated.State stores owned by the instance as an active replicaDeprecated.Topic partitions consumed by the instance as an active replicatoString()
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