Class BrokerDiscoveryProvider

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class BrokerDiscoveryProvider
    extends java.lang.Object
    implements java.io.Closeable
    Maintains available active broker list and returns next active broker in round-robin for discovery service.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void checkAuthorization​(ProxyService service, org.apache.pulsar.common.naming.TopicName topicName, java.lang.String role, org.apache.pulsar.broker.authentication.AuthenticationDataSource authenticationData)  
      void close()  
      static java.lang.String path​(java.lang.String... parts)  
      • Methods inherited from class java.lang.Object

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

      • BrokerDiscoveryProvider

        public BrokerDiscoveryProvider​(ProxyConfiguration config,
                                       org.apache.pulsar.broker.resources.PulsarResources pulsarResources)
                                throws org.apache.pulsar.broker.PulsarServerException
        Throws:
        org.apache.pulsar.broker.PulsarServerException
    • Method Detail

      • checkAuthorization

        protected static void checkAuthorization​(ProxyService service,
                                                 org.apache.pulsar.common.naming.TopicName topicName,
                                                 java.lang.String role,
                                                 org.apache.pulsar.broker.authentication.AuthenticationDataSource authenticationData)
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • path

        public static java.lang.String path​(java.lang.String... parts)
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException