C# 클래스 Kafka.Client.Producers.Partitioning.ConfigBrokerPartitionInfo

Fetch broker info like ID, host and port from configuration.
Used when zookeeper based auto partition discovery is disabled
상속: IBrokerPartitionInfo
파일 보기 프로젝트 열기: precog/kafka 1 사용 예제들

공개 메소드들

메소드 설명
ConfigBrokerPartitionInfo ( Kafka.Client.Cfg.ProducerConfiguration config ) : System

Initializes a new instance of the ConfigBrokerPartitionInfo class.

Dispose ( ) : void

Releasing unmanaged resources if any are used.

Do nothing

GetAllBrokerInfo ( ) : Broker>.IDictionary

Gets a mapping from broker ID to the host and port for all brokers

GetBrokerInfo ( int brokerId ) : Broker

Gets the host and port information for the broker identified by the given broker ID

GetBrokerPartitionInfo ( string topic ) : SortedSet

Gets a mapping from broker ID to partition IDs

Partition ID would be allways 0

비공개 메소드들

메소드 설명
InitializeBrokers ( ) : void

Initialize list of brokers from configuration

메소드 상세

ConfigBrokerPartitionInfo() 공개 메소드

Initializes a new instance of the ConfigBrokerPartitionInfo class.
public ConfigBrokerPartitionInfo ( Kafka.Client.Cfg.ProducerConfiguration config ) : System
config Kafka.Client.Cfg.ProducerConfiguration The config.
리턴 System

Dispose() 공개 메소드

Releasing unmanaged resources if any are used.
Do nothing
public Dispose ( ) : void
리턴 void

GetAllBrokerInfo() 공개 메소드

Gets a mapping from broker ID to the host and port for all brokers
public GetAllBrokerInfo ( ) : Broker>.IDictionary
리턴 Broker>.IDictionary

GetBrokerInfo() 공개 메소드

Gets the host and port information for the broker identified by the given broker ID
public GetBrokerInfo ( int brokerId ) : Broker
brokerId int The broker ID.
리턴 Kafka.Client.Cluster.Broker

GetBrokerPartitionInfo() 공개 메소드

Gets a mapping from broker ID to partition IDs
Partition ID would be allways 0
public GetBrokerPartitionInfo ( string topic ) : SortedSet
topic string The topic for which this information is to be returned
리턴 SortedSet