C# Class Kafka.Client.Cluster.Cluster

The set of active brokers in the cluster
Exibir arquivo Open project: precog/kafka Class Usage Examples

Public Methods

Method Description
Cluster ( ) : System

Initializes a new instance of the Cluster class.

Cluster ( IEnumerable brokers ) : System

Initializes a new instance of the Cluster class.

Cluster ( IZooKeeperClient zkClient ) : System

Initializes a new instance of the Cluster class.

GetBroker ( int id ) : Broker

Gets broker with given ID

Private Methods

Method Description
CreateBroker ( string node, string brokerInfoString ) : Broker

Creates a new Broker object out of a BrokerInfoString

Method Details

Cluster() public method

Initializes a new instance of the Cluster class.
public Cluster ( ) : System
return System

Cluster() public method

Initializes a new instance of the Cluster class.
public Cluster ( IEnumerable brokers ) : System
brokers IEnumerable /// The set of active brokers. ///
return System

Cluster() public method

Initializes a new instance of the Cluster class.
public Cluster ( IZooKeeperClient zkClient ) : System
zkClient IZooKeeperClient IZooKeeperClient object
return System

GetBroker() public method

Gets broker with given ID
public GetBroker ( int id ) : Broker
id int /// The broker ID. ///
return Broker