Class BrokerInfoImpl

java.lang.Object
io.camunda.client.impl.response.BrokerInfoImpl
All Implemented Interfaces:
BrokerInfo

public final class BrokerInfoImpl extends Object implements BrokerInfo
  • Constructor Details

    • BrokerInfoImpl

      public BrokerInfoImpl(io.camunda.zeebe.gateway.protocol.GatewayOuterClass.BrokerInfo grpcBrokerInfo)
    • BrokerInfoImpl

      public BrokerInfoImpl(BrokerInfo httpBrokerInfo)
  • Method Details

    • getNodeId

      public int getNodeId()
      Specified by:
      getNodeId in interface BrokerInfo
      Returns:
      the node if of the broker
    • getZone

      public String getZone()
      Specified by:
      getZone in interface BrokerInfo
      Returns:
      the zone of the broker, or null when the cluster is not zone-aware
    • getMemberId

      public String getMemberId()
      Specified by:
      getMemberId in interface BrokerInfo
      Returns:
      the member ID of the broker: "$zone_$nodeId" when the cluster is zone-aware (e.g. "us-east_0"), or the bare node ID otherwise (e.g. "0")
    • getHost

      public String getHost()
      Specified by:
      getHost in interface BrokerInfo
      Returns:
      the address host of the broker
    • getPort

      public int getPort()
      Specified by:
      getPort in interface BrokerInfo
      Returns:
      the address port of the broker
    • getAddress

      public String getAddress()
      Specified by:
      getAddress in interface BrokerInfo
      Returns:
      the address (host+port) of the broker
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface BrokerInfo
      Returns:
      the version of the broker
    • getPartitions

      public List<PartitionInfo> getPartitions()
      Specified by:
      getPartitions in interface BrokerInfo
      Returns:
      all partitions of the broker
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object