StreamsMetadata
@Deprecated public class StreamsMetadata extends Object
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.Modifier and Type | Field and Description |
---|---|
static StreamsMetadata |
NOT_AVAILABLE
Deprecated.
Sentinel to indicate that the StreamsMetadata is currently unavailable.
|
Constructor and Description |
---|
StreamsMetadata(HostInfo hostInfo,
Set<String> stateStoreNames,
Set<org.apache.kafka.common.TopicPartition> topicPartitions,
Set<String> standbyStateStoreNames,
Set<org.apache.kafka.common.TopicPartition> standbyTopicPartitions)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Deprecated.
|
int |
hashCode()
Deprecated.
|
String |
host()
Deprecated.
|
HostInfo |
hostInfo()
Deprecated.
The value of
StreamsConfig.APPLICATION_SERVER_CONFIG configured for the streams
instance, which is typically host/port |
int |
port()
Deprecated.
|
Set<String> |
standbyStateStoreNames()
Deprecated.
State stores owned by the instance as a standby replica
|
Set<org.apache.kafka.common.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 replica
|
Set<org.apache.kafka.common.TopicPartition> |
topicPartitions()
Deprecated.
Topic partitions consumed by the instance as an active replica
|
String |
toString()
Deprecated.
|
public static final StreamsMetadata NOT_AVAILABLE
public HostInfo hostInfo()
StreamsConfig.APPLICATION_SERVER_CONFIG
configured for the streams
instance, which is typically host/portHostInfo
corresponding to the streams instancepublic Set<String> stateStoreNames()
public Set<org.apache.kafka.common.TopicPartition> topicPartitions()
public Set<org.apache.kafka.common.TopicPartition> standbyTopicPartitions()
public Set<String> standbyStateStoreNames()
public String host()
public int port()