C# Класс Kafka.Client.ZooKeeperIntegration.Listeners.ZKRebalancerListener

Наследование: IZooKeeperChildListener
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
HandleChildChange ( ZooKeeperChildChangedEventArgs args ) : void

Called when the children of the given path changed

http://zookeeper.wiki.sourceforge.net/ZooKeeperWatches

ResetState ( ) : void

Resets the state of listener.

SyncedRebalance ( ) : void

Приватные методы

Метод Описание
AddPartitionTopicInfo ( ZKGroupTopicDirs topicDirs, string partitionString, string topic, string consumerThreadId ) : void
GetConsumersPerTopic ( string group ) : IList>.IDictionary
GetRelevantTopicMap ( IDictionary myTopicThreadIdsMap, IDictionary newPartMap, IDictionary oldPartMap, IDictionary newConsumerMap, IDictionary oldConsumerMap ) : IList>.IDictionary
GetTopicCount ( string consumerId ) : TopicCount
ProcessPartition ( ZKGroupTopicDirs topicDirs, string partition, string topic, string consumerThreadId ) : bool
Rebalance ( ) : bool
ReleasePartitionOwnership ( ) : void
UpdateFetcher ( Cluster cluster, IEnumerable queuesToBeCleared ) : void
ZKRebalancerListener ( Kafka.Client.Cfg.ConsumerConfiguration config, string consumerIdString, PartitionTopicInfo>.IDictionary topicRegistry, IZooKeeperClient zkClient, ZookeeperConsumerConnector zkConsumerConnector, string>.IDictionary queues, Fetcher fetcher, object syncLock ) : System

Описание методов

HandleChildChange() публичный Метод

Called when the children of the given path changed
http://zookeeper.wiki.sourceforge.net/ZooKeeperWatches
public HandleChildChange ( ZooKeeperChildChangedEventArgs args ) : void
args Kafka.Client.ZooKeeperIntegration.Events.ZooKeeperChildChangedEventArgs The instance containing the event data /// as parent path and children (null if parent was deleted). ///
Результат void

ResetState() публичный Метод

Resets the state of listener.
public ResetState ( ) : void
Результат void

SyncedRebalance() публичный Метод

public SyncedRebalance ( ) : void
Результат void