Package org.apache.pulsar.proxy.server
Class ProxyService
java.lang.Object
org.apache.pulsar.proxy.server.ProxyService
- All Implemented Interfaces:
Closeable,AutoCloseable
Pulsar proxy service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AtomicReference<Semaphore> protected intprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionProxyService(ProxyConfiguration proxyConfig, AuthenticationService authenticationService, Authentication proxyClientAuthentication) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPrometheusRawMetricsProvider(PrometheusRawMetricsProvider metricsProvider) voidclose()org.apache.pulsar.metadata.api.extended.MetadataStoreExtendedorg.apache.pulsar.metadata.api.extended.MetadataStoreExtendedio.netty.channel.EventLoopGroupbooleanprotected LookupProxyHandlernewLookupProxyHandler(ProxyConnection proxyConnection) voidsetGracefulShutdown(boolean gracefulShutdown) voidstart()voidstartProxyExtensions(Map<String, Map<InetSocketAddress, io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>>> protocolHandlers, io.netty.bootstrap.ServerBootstrap serverBootstrap)
-
Field Details
-
lookupRequestSemaphore
-
proxyLogLevel
protected int proxyLogLevel -
proxyZeroCopyModeEnabled
protected boolean proxyZeroCopyModeEnabled
-
-
Constructor Details
-
ProxyService
public ProxyService(ProxyConfiguration proxyConfig, AuthenticationService authenticationService, Authentication proxyClientAuthentication) throws Exception - Throws:
Exception
-
-
Method Details
-
start
- Throws:
Exception
-
startProxyExtensions
public void startProxyExtensions(Map<String, Map<InetSocketAddress, io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>>> protocolHandlers, io.netty.bootstrap.ServerBootstrap serverBootstrap) -
getDiscoveryProvider
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getServiceUrl
-
getServiceUrlTls
-
getConfiguration
-
getAuthenticationService
-
getAuthorizationService
-
getLookupRequestSemaphore
-
getWorkerGroup
public io.netty.channel.EventLoopGroup getWorkerGroup() -
getListenPort
-
getListenPortTls
-
createLocalMetadataStore
public org.apache.pulsar.metadata.api.extended.MetadataStoreExtended createLocalMetadataStore() throws org.apache.pulsar.metadata.api.MetadataStoreException- Throws:
org.apache.pulsar.metadata.api.MetadataStoreException
-
createConfigurationMetadataStore
public org.apache.pulsar.metadata.api.extended.MetadataStoreExtended createConfigurationMetadataStore() throws org.apache.pulsar.metadata.api.MetadataStoreException- Throws:
org.apache.pulsar.metadata.api.MetadataStoreException
-
getProxyClientAuthenticationPlugin
-
getMetricsServlet
-
addPrometheusRawMetricsProvider
-
newLookupProxyHandler
-
isGracefulShutdown
public boolean isGracefulShutdown() -
setGracefulShutdown
public void setGracefulShutdown(boolean gracefulShutdown)
-