Interface AdditionalServlet

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    AdditionalServletWithClassLoader

    @Beta
    public interface AdditionalServlet
    extends java.lang.AutoCloseable
    The additional servlet interface for support additional servlet.
    • Method Detail

      • loadConfig

        void loadConfig​(PulsarConfiguration pulsarConfiguration)
        load plugin config.
        Parameters:
        pulsarConfiguration -
      • getBasePath

        java.lang.String getBasePath()
        Get the base path of prometheus metrics.
        Returns:
        the base path of prometheus metrics
      • getServletHolder

        org.eclipse.jetty.servlet.ServletHolder getServletHolder()
        Get the servlet holder.
        Returns:
        the servlet holder
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable