Package io.zeebe.client.impl.response
Class TopologyImpl
- java.lang.Object
-
- io.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()
int
getClusterSize()
String
getGatewayVersion()
int
getPartitionsCount()
int
getReplicationFactor()
String
toString()
-
-
-
Constructor Detail
-
TopologyImpl
public TopologyImpl(GatewayOuterClass.TopologyResponse response)
-
-
Method Detail
-
getBrokers
public List<BrokerInfo> getBrokers()
- Specified by:
getBrokers
in interfaceTopology
- Returns:
- all (known) brokers of the cluster
-
getClusterSize
public int getClusterSize()
- Specified by:
getClusterSize
in interfaceTopology
- Returns:
- the size of the Zeebe broker cluster
-
getPartitionsCount
public int getPartitionsCount()
- Specified by:
getPartitionsCount
in interfaceTopology
- Returns:
- the configured number of partitions
-
getReplicationFactor
public int getReplicationFactor()
- Specified by:
getReplicationFactor
in interfaceTopology
- Returns:
- the configured replication factor for every partition
-
getGatewayVersion
public String getGatewayVersion()
- Specified by:
getGatewayVersion
in interfaceTopology
- Returns:
- the gateway version or an empty string if none was found
-
-