类 BrokerDiscoveryProvider

java.lang.Object
org.apache.pulsar.proxy.server.BrokerDiscoveryProvider
所有已实现的接口:
Closeable, AutoCloseable

@Evolving @LimitedPrivate public class BrokerDiscoveryProvider extends Object implements Closeable
Maintains available active broker list and returns next active broker in round-robin for discovery service. This is an API used by Proxy Extensions.
  • 构造器详细资料

    • BrokerDiscoveryProvider

      public BrokerDiscoveryProvider(ProxyConfiguration config, org.apache.pulsar.broker.resources.PulsarResources pulsarResources) throws org.apache.pulsar.broker.PulsarServerException
      抛出:
      org.apache.pulsar.broker.PulsarServerException
  • 方法详细资料

    • getAvailableBrokers

      public List<? extends org.apache.pulsar.policies.data.loadbalancer.ServiceLookupData> getAvailableBrokers() throws org.apache.pulsar.broker.PulsarServerException
      Access the list of available brokers. Used by Protocol Handlers
      返回:
      the list of available brokers
      抛出:
      org.apache.pulsar.broker.PulsarServerException
    • checkAuthorization

      protected void checkAuthorization(ProxyService service, org.apache.pulsar.common.naming.TopicName topicName, String role, org.apache.pulsar.broker.authentication.AuthenticationDataSource authenticationData) throws Exception
      抛出:
      Exception
    • close

      public void close() throws IOException
      指定者:
      close 在接口中 AutoCloseable
      指定者:
      close 在接口中 Closeable
      抛出:
      IOException