Package org.apache.pulsar.proxy.server
Class BrokerDiscoveryProvider
- java.lang.Object
-
- org.apache.pulsar.proxy.server.BrokerDiscoveryProvider
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class BrokerDiscoveryProvider extends java.lang.Object implements java.io.CloseableMaintains available active broker list and returns next active broker in round-robin for discovery service.
-
-
Constructor Summary
Constructors Constructor Description BrokerDiscoveryProvider(ProxyConfiguration config, org.apache.pulsar.broker.resources.PulsarResources pulsarResources)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidcheckAuthorization(ProxyService service, org.apache.pulsar.common.naming.TopicName topicName, java.lang.String role, org.apache.pulsar.broker.authentication.AuthenticationDataSource authenticationData)voidclose()static java.lang.Stringpath(java.lang.String... parts)
-
-
-
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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-