Class BrokerInfo

java.lang.Object
io.camunda.client.protocol.rest.BrokerInfo

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class BrokerInfo extends Object
Provides information on a broker node.
  • Field Details

  • Constructor Details

    • BrokerInfo

      public BrokerInfo()
  • Method Details

    • nodeId

      public BrokerInfo nodeId(@Nonnull Integer nodeId)
    • getNodeId

      @Deprecated @Nonnull public Integer getNodeId()
      Deprecated.
      The node ID for the broker. The uniqueness of this identifier depends if the cluster is zone-aware or not. - non zone-aware: (default) nodeId is unique across the cluster - zone-aware: (opt-in) nodeId is unique only within its zone. If you are migrating to a zone aware cluster, you must use `brokerId` instead. This property is deprecated, as it's been replaced by `brokerId`.
      Returns:
      nodeId
    • setNodeId

      public void setNodeId(@Nonnull Integer nodeId)
    • brokerId

      public BrokerInfo brokerId(@Nonnull String brokerId)
    • getBrokerId

      @Nonnull public String getBrokerId()
      The unique (within a cluster) broker identifier. When the cluster is not zoned, then it's a string that represents the nodeId (an integer). When the cluster is zoned, instead, it's of the form \"$zoneName_$nodeId\", providing uniqueness even across zones.
      Returns:
      brokerId
    • setBrokerId

      public void setBrokerId(@Nonnull String brokerId)
    • host

      public BrokerInfo host(@Nonnull String host)
    • getHost

      @Nonnull public String getHost()
      The hostname for reaching the broker.
      Returns:
      host
    • setHost

      public void setHost(@Nonnull String host)
    • port

      public BrokerInfo port(@Nonnull Integer port)
    • getPort

      @Nonnull public Integer getPort()
      The port for reaching the broker.
      Returns:
      port
    • setPort

      public void setPort(@Nonnull Integer port)
    • partitions

      public BrokerInfo partitions(@Nonnull List<Partition> partitions)
    • addPartitionsItem

      public BrokerInfo addPartitionsItem(Partition partitionsItem)
    • getPartitions

      @Nonnull public List<Partition> getPartitions()
      A list of partitions managed or replicated on this broker.
      Returns:
      partitions
    • setPartitions

      public void setPartitions(@Nonnull List<Partition> partitions)
    • version

      public BrokerInfo version(@Nonnull String version)
    • getVersion

      @Nonnull public String getVersion()
      The broker version.
      Returns:
      version
    • setVersion

      public void setVersion(@Nonnull String version)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object