Search in sources :

Example 1 with DescribeClusterBrokerCollection

use of org.apache.kafka.common.message.DescribeClusterResponseData.DescribeClusterBrokerCollection in project kafka by apache.

the class MessageTest method testDescribeClusterResponseVersions.

@Test
public void testDescribeClusterResponseVersions() throws Exception {
    DescribeClusterResponseData data = new DescribeClusterResponseData().setBrokers(new DescribeClusterBrokerCollection(Collections.singletonList(new DescribeClusterBroker().setBrokerId(1).setHost("localhost").setPort(9092).setRack("rack1")).iterator())).setClusterId("clusterId").setControllerId(1).setClusterAuthorizedOperations(10);
    testAllMessageRoundTrips(data);
}
Also used : DescribeClusterBrokerCollection(org.apache.kafka.common.message.DescribeClusterResponseData.DescribeClusterBrokerCollection) DescribeClusterBroker(org.apache.kafka.common.message.DescribeClusterResponseData.DescribeClusterBroker) Test(org.junit.jupiter.api.Test)

Aggregations

DescribeClusterBroker (org.apache.kafka.common.message.DescribeClusterResponseData.DescribeClusterBroker)1 DescribeClusterBrokerCollection (org.apache.kafka.common.message.DescribeClusterResponseData.DescribeClusterBrokerCollection)1 Test (org.junit.jupiter.api.Test)1