$prefix = Caster::PREFIX_VIRTUAL;
try { $m =
$c->
getMetadata(true, null, 500
);
} catch (RdKafkaException
) { return [];
} return [ $prefix.'orig_broker_id' =>
$m->
getOrigBrokerId(),
$prefix.'orig_broker_name' =>
$m->
getOrigBrokerName(),
$prefix.'brokers' =>
$m->
getBrokers(),
$prefix.'topics' =>
$m->
getTopics(),
];
}}