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

Inheritance: IZooKeeperChildListener
Mostrar archivo Open project: precog/kafka Class Usage Examples

Public Methods

Method 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

Method 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 method

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). ///
return void

ResetState() public method

Resets the state of listener.
public ResetState ( ) : void
return void

SyncedRebalance() public method

public SyncedRebalance ( ) : void
return void