Record Class BrokerLookupData
java.lang.Object
java.lang.Record
org.apache.pulsar.broker.loadbalance.extensions.data.BrokerLookupData
- All Implemented Interfaces:
org.apache.pulsar.policies.data.loadbalancer.ServiceLookupData
public record BrokerLookupData(String webServiceUrl, String webServiceUrlTls, String pulsarServiceUrl, String pulsarServiceUrlTls, Map<String,org.apache.pulsar.policies.data.loadbalancer.AdvertisedListener> advertisedListeners, Map<String,String> protocols, boolean persistentTopicsEnabled, boolean nonPersistentTopicsEnabled, String loadManagerClassName, long startTimestamp, String brokerVersion, Map<String,String> properties)
extends Record
implements org.apache.pulsar.policies.data.loadbalancer.ServiceLookupData
Defines the information required to broker lookup.
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerLookupData(String webServiceUrl, String webServiceUrlTls, String pulsarServiceUrl, String pulsarServiceUrlTls, Map<String, org.apache.pulsar.policies.data.loadbalancer.AdvertisedListener> advertisedListeners, Map<String, String> protocols, boolean persistentTopicsEnabled, boolean nonPersistentTopicsEnabled, String loadManagerClassName, long startTimestamp, String brokerVersion, Map<String, String> properties) Creates an instance of aBrokerLookupDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadvertisedListenersrecord component.Returns the value of thebrokerVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.getProtocol(String protocol) longfinal inthashCode()Returns a hash code value for this object.Returns the value of theloadManagerClassNamerecord component.booleanReturns the value of thenonPersistentTopicsEnabledrecord component.booleanReturns the value of thepersistentTopicsEnabledrecord component.Returns the value of thepropertiesrecord component.Returns the value of theprotocolsrecord component.Returns the value of thepulsarServiceUrlrecord component.Returns the value of thepulsarServiceUrlTlsrecord component.longReturns the value of thestartTimestamprecord component.toLookupResult(LookupOptions options) final StringtoString()Returns a string representation of this record class.Returns the value of thewebServiceUrlrecord component.Returns the value of thewebServiceUrlTlsrecord component.
-
Constructor Details
-
BrokerLookupData
public BrokerLookupData(String webServiceUrl, String webServiceUrlTls, String pulsarServiceUrl, String pulsarServiceUrlTls, Map<String, org.apache.pulsar.policies.data.loadbalancer.AdvertisedListener> advertisedListeners, Map<String, String> protocols, boolean persistentTopicsEnabled, boolean nonPersistentTopicsEnabled, String loadManagerClassName, long startTimestamp, String brokerVersion, Map<String, String> properties) Creates an instance of aBrokerLookupDatarecord class.- Parameters:
webServiceUrl- the value for thewebServiceUrlrecord componentwebServiceUrlTls- the value for thewebServiceUrlTlsrecord componentpulsarServiceUrl- the value for thepulsarServiceUrlrecord componentpulsarServiceUrlTls- the value for thepulsarServiceUrlTlsrecord componentadvertisedListeners- the value for theadvertisedListenersrecord componentprotocols- the value for theprotocolsrecord componentpersistentTopicsEnabled- the value for thepersistentTopicsEnabledrecord componentnonPersistentTopicsEnabled- the value for thenonPersistentTopicsEnabledrecord componentloadManagerClassName- the value for theloadManagerClassNamerecord componentstartTimestamp- the value for thestartTimestamprecord componentbrokerVersion- the value for thebrokerVersionrecord componentproperties- the value for thepropertiesrecord component
-
-
Method Details
-
getWebServiceUrl
- Specified by:
getWebServiceUrlin interfaceorg.apache.pulsar.policies.data.loadbalancer.ServiceLookupData
-
getWebServiceUrlTls
- Specified by:
getWebServiceUrlTlsin interfaceorg.apache.pulsar.policies.data.loadbalancer.ServiceLookupData
-
getPulsarServiceUrl
- Specified by:
getPulsarServiceUrlin interfaceorg.apache.pulsar.policies.data.loadbalancer.ServiceLookupData
-
getPulsarServiceUrlTls
- Specified by:
getPulsarServiceUrlTlsin interfaceorg.apache.pulsar.policies.data.loadbalancer.ServiceLookupData
-
getProtocols
- Specified by:
getProtocolsin interfaceorg.apache.pulsar.policies.data.loadbalancer.ServiceLookupData
-
getProtocol
- Specified by:
getProtocolin interfaceorg.apache.pulsar.policies.data.loadbalancer.ServiceLookupData
-
getLoadManagerClassName
- Specified by:
getLoadManagerClassNamein interfaceorg.apache.pulsar.policies.data.loadbalancer.ServiceLookupData
-
getStartTimestamp
public long getStartTimestamp()- Specified by:
getStartTimestampin interfaceorg.apache.pulsar.policies.data.loadbalancer.ServiceLookupData
-
toLookupResult
- Throws:
PulsarServerException
-
toNamespaceEphemeralData
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
webServiceUrl
Returns the value of thewebServiceUrlrecord component.- Returns:
- the value of the
webServiceUrlrecord component
-
webServiceUrlTls
Returns the value of thewebServiceUrlTlsrecord component.- Returns:
- the value of the
webServiceUrlTlsrecord component
-
pulsarServiceUrl
Returns the value of thepulsarServiceUrlrecord component.- Returns:
- the value of the
pulsarServiceUrlrecord component
-
pulsarServiceUrlTls
Returns the value of thepulsarServiceUrlTlsrecord component.- Returns:
- the value of the
pulsarServiceUrlTlsrecord component
-
advertisedListeners
public Map<String,org.apache.pulsar.policies.data.loadbalancer.AdvertisedListener> advertisedListeners()Returns the value of theadvertisedListenersrecord component.- Returns:
- the value of the
advertisedListenersrecord component
-
protocols
Returns the value of theprotocolsrecord component.- Returns:
- the value of the
protocolsrecord component
-
persistentTopicsEnabled
public boolean persistentTopicsEnabled()Returns the value of thepersistentTopicsEnabledrecord component.- Returns:
- the value of the
persistentTopicsEnabledrecord component
-
nonPersistentTopicsEnabled
public boolean nonPersistentTopicsEnabled()Returns the value of thenonPersistentTopicsEnabledrecord component.- Returns:
- the value of the
nonPersistentTopicsEnabledrecord component
-
loadManagerClassName
Returns the value of theloadManagerClassNamerecord component.- Returns:
- the value of the
loadManagerClassNamerecord component
-
startTimestamp
public long startTimestamp()Returns the value of thestartTimestamprecord component.- Returns:
- the value of the
startTimestamprecord component
-
brokerVersion
Returns the value of thebrokerVersionrecord component.- Returns:
- the value of the
brokerVersionrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-