Kafka\ZooKeeper::getBrokerDetail PHP Method

getBrokerDetail() public method

get broker detail
public getBrokerDetail ( integer $brokerId ) : string | boolean
$brokerId integer
return string | boolean
    public function getBrokerDetail($brokerId)
    {
        $result = array();
        $path = sprintf(self::BROKER_DETAIL_PATH, (int) $brokerId);
        if ($this->zookeeper->exists($path)) {
            $result = $this->zookeeper->get($path);
            if (!$result) {
                return false;
            }
            $result = json_decode($result, true);
        }
        return $result;
    }