Method | Description | |
---|---|---|
BrokerTopicsListener ( IZooKeeperClient zkclient, IDictionary |
Initializes a new instance of the BrokerTopicsListener class.
|
|
HandleChildChange ( |
Called when the children of the given path changed
|
|
ResetState ( ) : void |
Resets the state of listener.
|
Method | Description | |
---|---|---|
ProcessBrokerChange ( string path, IEnumerable |
Processes change in the broker lists.
|
|
ProcessNewBrokerInExistingTopic ( string topic, IEnumerable |
Generate the updated mapping of (brokerId, numPartitions) for the new list of brokers registered under some topic.
|
public BrokerTopicsListener ( IZooKeeperClient zkclient, IDictionary |
||
zkclient | IZooKeeperClient | The wrapper on ZooKeeper client. |
actualBrokerTopicsPartitionsMap | IDictionary |
The actual broker topics partitions map. |
actualBrokerIdMap | Broker>.IDictionary | The actual broker id map. |
callback | Action |
The callback invoked after new broker is added. |
return | System |
public HandleChildChange ( |
||
e | The |
|
return | void |