C# Class Kafka.Client.ZooKeeperIntegration.Listeners.ZKRebalancerListener

Inheritance: IZooKeeperChildListener
Afficher le fichier Open project: precog/kafka Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

HandleChildChange() public méthode

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). ///
Résultat void

ResetState() public méthode

Resets the state of listener.
public ResetState ( ) : void
Résultat void

SyncedRebalance() public méthode

public SyncedRebalance ( ) : void
Résultat void