Interface StreamsMetadata
public interface StreamsMetadata
Metadata of a Kafka Streams client.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares the specified object with this StreamsMetadata.inthashCode()Returns the hash code value for this TaskMetadata.host()Host where the Streams client runs.hostInfo()The value ofStreamsConfig.APPLICATION_SERVER_CONFIGconfigured for the Streams client.intport()Port on which the Streams client listens.Names of the state stores assigned to standby tasks of the Streams client.Set<org.apache.kafka.common.TopicPartition> Source topic partitions for which the instance acts as standby.Names of the state stores assigned to active tasks of the Streams client.Set<org.apache.kafka.common.TopicPartition> Source topic partitions of the active tasks of the Streams client.
-
Method Details
-
hostInfo
HostInfo hostInfo()The value ofStreamsConfig.APPLICATION_SERVER_CONFIGconfigured for the Streams client.- Returns:
HostInfocorresponding to the Streams client
-
stateStoreNames
-
topicPartitions
Set<org.apache.kafka.common.TopicPartition> topicPartitions()Source topic partitions of the active tasks of the Streams client.- Returns:
- source topic partitions of the active tasks
-
standbyTopicPartitions
Set<org.apache.kafka.common.TopicPartition> standbyTopicPartitions()Source topic partitions for which the instance acts as standby.- Returns:
- source topic partitions of the standby tasks
-
standbyStateStoreNames
-
host
String host()Host where the Streams client runs.This method is equivalent to
StreamsMetadata.hostInfo().host();- Returns:
- the host where the Streams client runs
-
port
int port()Port on which the Streams client listens.This method is equivalent to
StreamsMetadata.hostInfo().port();- Returns:
- the port on which Streams client listens
-
equals
Compares the specified object with this StreamsMetadata. Returnstrueif and only if the specified object is also a StreamsMetadata and for bothhostInfo()are equal, andstateStoreNames(),topicPartitions(),standbyStateStoreNames(), andstandbyTopicPartitions()contain the same elements. -
hashCode
int hashCode()Returns the hash code value for this TaskMetadata. The hash code of a list is defined to be the result of the following calculation:Objects.hash(hostInfo(), stateStoreNames(), topicPartitions(), standbyStateStoreNames(), standbyTopicPartitions());
-