Package org.apache.kafka.clients.admin
Class DescribeClusterResult
- java.lang.Object
-
- org.apache.kafka.clients.admin.DescribeClusterResult
-
@Evolving public class DescribeClusterResult extends java.lang.Object
The result of theAdmin.describeCluster()
call. The API of this class is evolving, seeAdmin
for details.
-
-
Constructor Summary
Constructors Constructor Description DescribeClusterResult(KafkaFuture<java.util.Collection<Node>> nodes, KafkaFuture<Node> controller, KafkaFuture<java.lang.String> clusterId, KafkaFuture<java.util.Set<AclOperation>> authorizedOperations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KafkaFuture<java.util.Set<AclOperation>>
authorizedOperations()
Returns a future which yields authorized operations.KafkaFuture<java.lang.String>
clusterId()
Returns a future which yields the current cluster id.KafkaFuture<Node>
controller()
Returns a future which yields the current controller id.KafkaFuture<java.util.Collection<Node>>
nodes()
Returns a future which yields a collection of nodes.
-
-
-
Constructor Detail
-
DescribeClusterResult
public DescribeClusterResult(KafkaFuture<java.util.Collection<Node>> nodes, KafkaFuture<Node> controller, KafkaFuture<java.lang.String> clusterId, KafkaFuture<java.util.Set<AclOperation>> authorizedOperations)
-
-
Method Detail
-
nodes
public KafkaFuture<java.util.Collection<Node>> nodes()
Returns a future which yields a collection of nodes.
-
controller
public KafkaFuture<Node> controller()
Returns a future which yields the current controller id. Note that this may yield null, if the controller ID is not yet known.
-
clusterId
public KafkaFuture<java.lang.String> clusterId()
Returns a future which yields the current cluster id. The future value will be non-null if the broker version is 0.10.1.0 or higher and null otherwise.
-
authorizedOperations
public KafkaFuture<java.util.Set<AclOperation>> authorizedOperations()
Returns a future which yields authorized operations. The future value will be non-null if the broker supplied this information, and null otherwise.
-
-