Search in sources :

Example 1 with ZookeeperServer

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);
    }
}
Also used : Field(java.lang.reflect.Field) ZookeeperServer(io.debezium.kafka.ZookeeperServer)

Aggregations

ZookeeperServer (io.debezium.kafka.ZookeeperServer)1 Field (java.lang.reflect.Field)1