Class ProxyService

java.lang.Object
org.apache.pulsar.proxy.server.ProxyService
All Implemented Interfaces:
Closeable, AutoCloseable

public class ProxyService extends Object implements Closeable
Pulsar proxy service.
  • Field Details

    • lookupRequestSemaphore

      protected final AtomicReference<Semaphore> lookupRequestSemaphore
    • proxyLogLevel

      protected int proxyLogLevel
    • proxyZeroCopyModeEnabled

      protected boolean proxyZeroCopyModeEnabled
  • Constructor Details

  • Method Details

    • start

      public void start() throws Exception
      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

      public BrokerDiscoveryProvider getDiscoveryProvider()
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • getServiceUrl

      public String getServiceUrl()
    • getServiceUrlTls

      public String getServiceUrlTls()
    • getConfiguration

      public ProxyConfiguration getConfiguration()
    • getAuthenticationService

      public AuthenticationService getAuthenticationService()
    • getAuthorizationService

      public AuthorizationService getAuthorizationService()
    • getLookupRequestSemaphore

      public Semaphore getLookupRequestSemaphore()
    • getWorkerGroup

      public io.netty.channel.EventLoopGroup getWorkerGroup()
    • getListenPort

      public Optional<Integer> getListenPort()
    • getListenPortTls

      public Optional<Integer> 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

      public Authentication getProxyClientAuthenticationPlugin()
    • getMetricsServlet

      public PrometheusMetricsServlet getMetricsServlet()
    • addPrometheusRawMetricsProvider

      public void addPrometheusRawMetricsProvider(PrometheusRawMetricsProvider metricsProvider)
    • newLookupProxyHandler

      protected LookupProxyHandler newLookupProxyHandler(ProxyConnection proxyConnection)
    • isGracefulShutdown

      public boolean isGracefulShutdown()
    • setGracefulShutdown

      public void setGracefulShutdown(boolean gracefulShutdown)