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.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_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<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
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 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. 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());
-