Record Class KafkaClusterResponse.Broker
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.Broker
- Enclosing class:
KafkaClusterResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.booleanReturns the value of thecontrollerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.intid()Returns the value of theidrecord component.intReturns the value of theleaderPartitionsrecord component.intport()Returns the value of theportrecord component.@Nullable Stringrack()Returns the value of therackrecord component.intReturns the value of thereplicaPartitionsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theunderReplicatedPartitionsrecord component.
-
Constructor Details
-
Broker
public Broker(int id, String host, int port, @Nullable String rack, boolean controller, int leaderPartitions, int replicaPartitions, int underReplicatedPartitions, Map<String, String> config) Creates an instance of aBrokerrecord class.- Parameters:
id- the value for theidrecord componenthost- the value for thehostrecord componentport- the value for theportrecord componentrack- the value for therackrecord componentcontroller- the value for thecontrollerrecord componentleaderPartitions- the value for theleaderPartitionsrecord componentreplicaPartitions- the value for thereplicaPartitionsrecord componentunderReplicatedPartitions- the value for theunderReplicatedPartitionsrecord componentconfig- the value for theconfigrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
rack
Returns the value of therackrecord component.- Returns:
- the value of the
rackrecord component
-
controller
public boolean controller()Returns the value of thecontrollerrecord component.- Returns:
- the value of the
controllerrecord component
-
leaderPartitions
public int leaderPartitions()Returns the value of theleaderPartitionsrecord component.- Returns:
- the value of the
leaderPartitionsrecord component
-
replicaPartitions
public int replicaPartitions()Returns the value of thereplicaPartitionsrecord component.- Returns:
- the value of the
replicaPartitionsrecord component
-
underReplicatedPartitions
public int underReplicatedPartitions()Returns the value of theunderReplicatedPartitionsrecord component.- Returns:
- the value of the
underReplicatedPartitionsrecord component
-
config
-