Interface ServletEngineAdapter

  • All Superinterfaces:
    UPRequestHandler
    All Known Implementing Classes:
    JettyServletEngineAdapter

    public interface ServletEngineAdapter
    extends UPRequestHandler
    This interface abstracts away the details of starting up and shutting down a servlet engine, as well as adapting between the concrete classes that implement the Java Servlet API and the Prometheus Untrusted Process API.
    • Method Detail

      • start

        void start​(String serverInfo,
                   ServletEngineAdapter.Config runtimeOptions)
        Performs whatever setup is necessary for this servlet container. This method waits for setup to complete before returning.
        Parameters:
        serverInfo - The string that should be returned by ServletContext.getServerInfo().
        runtimeOptions - Extra options, currently used for the Jetty HTTP adapter only.
      • stop

        void stop()
        Perform any shutdown procedures necessary for this servlet container. This method should return once the shutdown has been completed.
      • deleteAppVersion

        void deleteAppVersion​(AppVersion appVersion)
        Remove the specified application version and free up any resources associated with it.