PHP Class Kafka\MetaDataFromKafka

Author: [email protected] +------------------------------------------------------------------------------
Inheritance: implements kafka\ClusterMetaData
Datei anzeigen Open project: nmred/kafka-php

Public Methods

Method Description
__construct ( $hostList )
getPartitionState ( string $topicName, integer $partitionId ) : null
getTopicDetail ( string $topicName ) : array
listBrokers ( ) : array get broker list from kafka metadata
refreshMetadata ( ) : null Clear internal caches
setClient ( Client $client ) : void

Private Methods

Method Description
loadBrokers ( ) {{{ private function loadBrokers()
loadTopicDetail ( array $topics )

Method Details

__construct() public method

public __construct ( $hostList )

getPartitionState() public method

public getPartitionState ( string $topicName, integer $partitionId ) : null
$topicName string
$partitionId integer
return null

getTopicDetail() public method

public getTopicDetail ( string $topicName ) : array
$topicName string
return array

listBrokers() public method

get broker list from kafka metadata
public listBrokers ( ) : array
return array

refreshMetadata() public method

Clear internal caches
public refreshMetadata ( ) : null
return null

setClient() public method

public setClient ( Client $client ) : void
$client Client
return void