C# 클래스 Kafka.Client.ZooKeeperIntegration.Listeners.ZKRebalancerListener

상속: IZooKeeperChildListener
파일 보기 프로젝트 열기: precog/kafka 1 사용 예제들

공개 메소드들

메소드 설명
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