Class TopologyImpl
- java.lang.Object
-
- io.camunda.zeebe.client.impl.response.TopologyImpl
-
-
Constructor Summary
Constructors Constructor Description TopologyImpl(GatewayOuterClass.TopologyResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BrokerInfo>getBrokers()intgetClusterSize()StringgetGatewayVersion()intgetPartitionsCount()intgetReplicationFactor()StringtoString()
-
-
-
Constructor Detail
-
TopologyImpl
public TopologyImpl(GatewayOuterClass.TopologyResponse response)
-
-
Method Detail
-
getBrokers
public List<BrokerInfo> getBrokers()
- Specified by:
getBrokersin interfaceTopology- Returns:
- all (known) brokers of the cluster
-
getClusterSize
public int getClusterSize()
- Specified by:
getClusterSizein interfaceTopology- Returns:
- the size of the Zeebe broker cluster
-
getPartitionsCount
public int getPartitionsCount()
- Specified by:
getPartitionsCountin interfaceTopology- Returns:
- the configured number of partitions
-
getReplicationFactor
public int getReplicationFactor()
- Specified by:
getReplicationFactorin interfaceTopology- Returns:
- the configured replication factor for every partition
-
getGatewayVersion
public String getGatewayVersion()
- Specified by:
getGatewayVersionin interfaceTopology- Returns:
- the gateway version or an empty string if none was found
-
-