类 BrokerDiscoveryProvider
java.lang.Object
org.apache.pulsar.proxy.server.BrokerDiscoveryProvider
- 所有已实现的接口:
Closeable,AutoCloseable
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(ProxyConfiguration config, org.apache.pulsar.broker.resources.PulsarResources pulsarResources) -
方法概要
修饰符和类型方法说明protected voidcheckAuthorization(ProxyService service, org.apache.pulsar.common.naming.TopicName topicName, String role, org.apache.pulsar.broker.authentication.AuthenticationDataSource authenticationData) voidclose()List<? extends org.apache.pulsar.policies.data.loadbalancer.ServiceLookupData>Access the list of available brokers.
-
构造器详细资料
-
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.PulsarServerExceptionAccess 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
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 抛出:
IOException
-