public class ProxyService extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected AtomicReference<Semaphore> |
lookupRequestSemaphore |
protected int |
proxyLogLevel |
| Constructor and Description |
|---|
ProxyService(ProxyConfiguration proxyConfig,
AuthenticationService authenticationService) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.pulsar.metadata.api.extended.MetadataStoreExtended |
createConfigurationMetadataStore() |
org.apache.pulsar.metadata.api.extended.MetadataStoreExtended |
createLocalMetadataStore() |
AuthenticationService |
getAuthenticationService() |
AuthorizationService |
getAuthorizationService() |
ProxyConfiguration |
getConfiguration() |
BrokerDiscoveryProvider |
getDiscoveryProvider() |
Optional<Integer> |
getListenPort() |
Optional<Integer> |
getListenPortTls() |
Semaphore |
getLookupRequestSemaphore() |
Authentication |
getProxyClientAuthenticationPlugin() |
String |
getServiceUrl() |
String |
getServiceUrlTls() |
io.netty.util.Timer |
getTimer() |
io.netty.channel.EventLoopGroup |
getWorkerGroup() |
void |
start() |
void |
startProxyExtensions(Map<String,Map<InetSocketAddress,io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>>> protocolHandlers,
io.netty.bootstrap.ServerBootstrap serverBootstrap) |
protected final AtomicReference<Semaphore> lookupRequestSemaphore
protected int proxyLogLevel
public ProxyService(ProxyConfiguration proxyConfig, AuthenticationService authenticationService) throws Exception
Exceptionpublic void startProxyExtensions(Map<String,Map<InetSocketAddress,io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>>> protocolHandlers, io.netty.bootstrap.ServerBootstrap serverBootstrap)
public BrokerDiscoveryProvider getDiscoveryProvider()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getServiceUrl()
public String getServiceUrlTls()
public ProxyConfiguration getConfiguration()
public io.netty.util.Timer getTimer()
public AuthenticationService getAuthenticationService()
public AuthorizationService getAuthorizationService()
public Semaphore getLookupRequestSemaphore()
public io.netty.channel.EventLoopGroup getWorkerGroup()
public org.apache.pulsar.metadata.api.extended.MetadataStoreExtended createLocalMetadataStore() throws org.apache.pulsar.metadata.api.MetadataStoreException
public org.apache.pulsar.metadata.api.extended.MetadataStoreExtended createConfigurationMetadataStore() throws org.apache.pulsar.metadata.api.MetadataStoreException
public Authentication getProxyClientAuthenticationPlugin()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.