Class MultipleListenerValidator
java.lang.Object
org.apache.pulsar.broker.validator.MultipleListenerValidator
Validates multiple listener address configurations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionValidate the configuration of `advertisedListeners`, `internalListenerName`.
-
Constructor Details
-
MultipleListenerValidator
public MultipleListenerValidator()
-
-
Method Details
-
validateAndAnalysisAdvertisedListener
public static Map<String,org.apache.pulsar.policies.data.loadbalancer.AdvertisedListener> validateAndAnalysisAdvertisedListener(ServiceConfiguration config) Validate the configuration of `advertisedListeners`, `internalListenerName`. 1. `advertisedListeners` consists of a comma-separated list of endpoints. 2. Each endpoint consists of a listener name and an associated address (`listener:scheme://host:port`). 3. A listener name may be repeated to define both a non-TLS and a TLS endpoint. 4. Duplicate definitions are disallowed. 5. If `internalListenerName` is absent, set it to the first listener defined in `advertisedListeners`.- Parameters:
config- the pulsar broker configure.- Returns:
-