Class OortStaticConfigServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.cometd.oort.OortConfigServlet
org.cometd.oort.OortStaticConfigServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, java.io.Serializable

public class OortStaticConfigServlet
extends OortConfigServlet

This servlet initializes and configures an instance of the Oort CometD cluster manager with a static list of other Oort comet URLs.

This servlet must be initialized after an instance the CometD servlet that creates the BayeuxServer instance used by Oort.

This servlet inherits from OortConfigServlet init parameters used to configure the Oort instance, and adds the following init parameter:

  • oort.cloud, a comma separated list of the oort.urls of other known oort CometD cluster managers
See Also:
OortConfigServlet, OortMulticastConfigServlet, Serialized Form
  • Field Details

    • OORT_CLOUD_PARAM

      public static final java.lang.String OORT_CLOUD_PARAM
      See Also:
      Constant Field Values
  • Constructor Details

    • OortStaticConfigServlet

      public OortStaticConfigServlet()
  • Method Details

    • configureCloud

      protected void configureCloud​(jakarta.servlet.ServletConfig config, Oort oort) throws java.lang.Exception
      Description copied from class: OortConfigServlet

      Configures the Oort cloud by establishing connections with other Oort comets.

      Subclasses implement their own strategy to discover and link with other comets.

      Specified by:
      configureCloud in class OortConfigServlet
      Parameters:
      config - the servlet configuration to read parameters from
      oort - the Oort instance associated with this configuration servlet
      Throws:
      java.lang.Exception - if the cloud configuration fails