Package org.apache.kafka.streams
Interface StreamsMetadata
public interface StreamsMetadata
Metadata of a Kafka Streams client.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares the specified object with this StreamsMetadata.int
hashCode()
Returns the hash code value for this TaskMetadata.host()
Host where the Streams client runs.hostInfo()
The value ofStreamsConfig.APPLICATION_SERVER_CONFIG
configured for the Streams client.int
port()
Port on which the Streams client listens.Names of the state stores assigned to standby tasks of the Streams client.Changelog topic partitions for the state stores the standby tasks of the Streams client replicates.Names of the state stores assigned to active tasks of the Streams client.Source topic partitions of the active tasks of the Streams client.
-
Method Details
-
hostInfo
HostInfo hostInfo()The value ofStreamsConfig.APPLICATION_SERVER_CONFIG
configured for the Streams client.- Returns:
HostInfo
corresponding to the Streams client
-
stateStoreNames
Names of the state stores assigned to active tasks of the Streams client.- Returns:
- names of the state stores assigned to active tasks
-
topicPartitions
Set<TopicPartition> topicPartitions()Source topic partitions of the active tasks of the Streams client.- Returns:
- source topic partitions of the active tasks
-
standbyTopicPartitions
Set<TopicPartition> standbyTopicPartitions()Changelog topic partitions for the state stores the standby tasks of the Streams client replicates.- Returns:
- set of changelog topic partitions of the standby tasks
-
standbyStateStoreNames
Names of the state stores assigned to standby tasks of the Streams client.- Returns:
- names of the state stores assigned to standby tasks
-
host
String host()Host where the Streams client runs. This method is equivalent toStreamsMetadata.hostInfo().host();
- Returns:
- the host where the Streams client runs
-
port
int port()Port on which the Streams client listens. This method is equivalent toStreamsMetadata.hostInfo().port();
- Returns:
- the port on which Streams client listens
-
equals
Compares the specified object with this StreamsMetadata. Returnstrue
if 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());
-