Class MultipleListenerValidator


  • public final class MultipleListenerValidator
    extends java.lang.Object
    Validates multiple listener address configurations.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​org.apache.pulsar.policies.data.loadbalancer.AdvertisedListener> validateAndAnalysisAdvertisedListener​(ServiceConfiguration config)
      Validate the configuration of `advertisedListeners`, `internalListenerName`.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultipleListenerValidator

        public MultipleListenerValidator()
    • Method Detail

      • validateAndAnalysisAdvertisedListener

        public static java.util.Map<java.lang.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: