THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Create a new record type named BrokerRegistrationChangeRecord. This record is similar to FenceBrokerRecord and UnfenceBrokerRecord , but more general. In the future, we will allow broker endpoints to be changed via this record.
Note that if "EndPoints" is present, the supplied endpoints replace the existing endpoints of the broker.
Code Block |
---|
{ "apiKey": 15, "type": "metadata", "name": "BrokerRegistrationChangeRecord", "validVersions": "0", "flexibleVersions": "0+", "fields": [ { "name": "BrokerId", "type": "int32", "versions": "0+", "entityType": "brokerId", "about": "The broker id." }, { "name": "BrokerEpoch", "type": "int64", "versions": "0+", "about": "The broker epoch assigned by the controller." }, { "name": "Fenced", "type": "int8", "versions": "0+", "taggedVersions": "0+", "tag": 0, "about": "-1 if the broker has been unfenced, 0 if no change, 1 if the broker has been fenced." }, { "name": "ListenersEndPoints", "type": "[]Listener", "versions": "0+", "taggedVersions": "0+", "tag": 1, "about": "The listeners of this broker or null if there was no change.", "nullableVersions": "0+", "default": "null", "fields": [ { "name": "Name", "type": "string", "versions": "0+", "mapKey": true, "about": "The name of the endpoint." }, { "name": "Host", "type": "string", "versions": "0+", "about": "The hostname." }, { "name": "Port", "type": "uint16", "versions": "0+", "about": "The port." }, { "name": "SecurityProtocol", "type": "int16", "versions": "0+", "about": "The security protocol." } ] ] } |
...