Package io.vertx.kafka.admin
Class ClusterDescription
java.lang.Object
io.vertx.kafka.admin.ClusterDescription
A detailed description of the cluster
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorClusterDescription(JsonObject json) Constructor (from JSON representation)ClusterDescription(String clusterId, Node controller, List<Node> nodes, Set<org.apache.kafka.common.acl.AclOperation> authorizedOperations) Constructor -
Method Summary
Modifier and TypeMethodDescriptionAdd a node belonging to this cluster to the current node list.Set<org.apache.kafka.common.acl.AclOperation>getNodes()setAuthorizedOperations(Set<org.apache.kafka.common.acl.AclOperation> authorizedOperations) Set the authorizedOperationssetClusterId(String clusterId) Set the cluster IDsetController(Node controller) Set the controller node.Set the nodes belonging to this clustertoJson()Convert object to JSON representationtoString()
-
Constructor Details
-
ClusterDescription
public ClusterDescription()Constructor -
ClusterDescription
public ClusterDescription(String clusterId, Node controller, List<Node> nodes, Set<org.apache.kafka.common.acl.AclOperation> authorizedOperations) Constructor- Parameters:
clusterId- The cluster ID.controller- The controller node.nodes- A collection of nodes belonging to this cluster.authorizedOperations- A collection of authorized operations on this cluster.
-
ClusterDescription
Constructor (from JSON representation)- Parameters:
json- JSON representation
-
-
Method Details
-
getNodes
- Returns:
- the nodes belonging to this cluster.
-
setNodes
Set the nodes belonging to this cluster- Parameters:
nodes- the nodes- Returns:
- current instance of the class to be fluent
-
addNode
Add a node belonging to this cluster to the current node list.- Parameters:
node- the node to add- Returns:
- current instance of the class to be fluent
-
getController
- Returns:
- the controller node.
-
setController
Set the controller node.- Parameters:
controller- the controller node- Returns:
- current instance of the class to be fluent
-
getClusterId
- Returns:
- the cluster ID
-
setClusterId
Set the cluster ID- Parameters:
clusterId-- Returns:
- current instance of the class to be fluent
-
getAuthorizedOperations
- Returns:
- the authorizedOperations
-
setAuthorizedOperations
public ClusterDescription setAuthorizedOperations(Set<org.apache.kafka.common.acl.AclOperation> authorizedOperations) Set the authorizedOperations- Parameters:
authorizedOperations-- Returns:
- current instance of the class to be fluent
-
toJson
Convert object to JSON representation- Returns:
- JSON representation
-
toString
-