2 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
3 // +---------------------------------------------------------------------------
4 // | SWAN [ $_SWANBR_SLOGAN_$ ]
5 // +---------------------------------------------------------------------------
6 // | Copyright $_SWANBR_COPYRIGHT_$
7 // +---------------------------------------------------------------------------
8 // | Version $_SWANBR_VERSION_$
9 // +---------------------------------------------------------------------------
10 // | Licensed ( $_SWANBR_LICENSED_URL_$ )
11 // +---------------------------------------------------------------------------
12 // | $_SWANBR_WEB_DOMAIN_$
13 // +---------------------------------------------------------------------------
18 +------------------------------------------------------------------------------
19 * Metadata about the kafka cluster
20 +------------------------------------------------------------------------------
23 * @version $_SWANBR_VERSION_$
25 * @author ebernhardson@wikimedia.org
26 +------------------------------------------------------------------------------
29 interface ClusterMetaData
32 * get broker list from kafka metadata
37 public function listBrokers();
40 * @param string $topicName
41 * @param integer $partitionId
45 public function getPartitionState($topicName, $partitionId = 0);
48 * @param string $topicName
52 public function getTopicDetail($topicName);