Package io.zeebe.client.impl.response
Class BrokerInfoImpl
- java.lang.Object
-
- io.zeebe.client.impl.response.BrokerInfoImpl
-
- All Implemented Interfaces:
BrokerInfo
public final class BrokerInfoImpl extends Object implements BrokerInfo
-
-
Constructor Summary
Constructors Constructor Description BrokerInfoImpl(GatewayOuterClass.BrokerInfo broker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddress()
String
getHost()
int
getNodeId()
List<PartitionInfo>
getPartitions()
int
getPort()
String
getVersion()
String
toString()
-
-
-
Constructor Detail
-
BrokerInfoImpl
public BrokerInfoImpl(GatewayOuterClass.BrokerInfo broker)
-
-
Method Detail
-
getNodeId
public int getNodeId()
- Specified by:
getNodeId
in interfaceBrokerInfo
- Returns:
- the node if of the broker
-
getHost
public String getHost()
- Specified by:
getHost
in interfaceBrokerInfo
- Returns:
- the address host of the broker
-
getPort
public int getPort()
- Specified by:
getPort
in interfaceBrokerInfo
- Returns:
- the address port of the broker
-
getAddress
public String getAddress()
- Specified by:
getAddress
in interfaceBrokerInfo
- Returns:
- the address (host+port) of the broker
-
getVersion
public String getVersion()
- Specified by:
getVersion
in interfaceBrokerInfo
- Returns:
- the version of the broker
-
getPartitions
public List<PartitionInfo> getPartitions()
- Specified by:
getPartitions
in interfaceBrokerInfo
- Returns:
- all partitions of the broker
-
-