use of io.debezium.kafka.ZookeeperServer in project strimzi by strimzi.
the class ControllerIT method zkPort.
private static int zkPort(KafkaCluster cluster) {
// dependency gets upgraded
try {
Field zkServerField = KafkaCluster.class.getDeclaredField("zkServer");
zkServerField.setAccessible(true);
return ((ZookeeperServer) zkServerField.get(cluster)).getPort();
} catch (ReflectiveOperationException e) {
throw new RuntimeException(e);
}
}
Aggregations