Modern C++ Kafka API
Classes | Public Member Functions | List of all members
KAFKA_API::BrokerMetadata Struct Reference

The metadata info for a topic. More...

#include <BrokerMetadata.h>

Classes

struct  Node
 Information for a Kafka node. More...
 
struct  PartitionInfo
 It is used to describe per-partition state in the MetadataResponse. More...
 

Public Member Functions

std::string getNodeDescription (Node::Id id) const
 Obtains explanatory string from Node::Id.
 
std::string toString (const PartitionInfo &partitionInfo) const
 Obtains explanatory string for PartitionInfo.
 
 BrokerMetadata (Topic topic)
 The BrokerMetadata is per-topic constructed.
 
const std::string & topic () const
 The topic name.
 
std::vector< std::shared_ptr< Node > > nodes () const
 The nodes info in the MetadataResponse.
 
const std::map< Partition, PartitionInfo > & partitions () const
 The partitions' state in the MetadataResponse.
 
std::string toString () const
 Obtains explanatory string.
 
void setOrigNodeName (const std::string &origNodeName)
 
void addNode (Node::Id nodeId, const Node::Host &host, Node::Port port)
 
void addPartitionInfo (Partition partition, const PartitionInfo &partitionInfo)
 

Detailed Description

The metadata info for a topic.


The documentation for this struct was generated from the following file: