Class OortStaticConfigServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.cometd.oort.jakarta.OortConfigServlet
org.cometd.oort.jakarta.OortStaticConfigServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
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 theoort.url
s of other known oort CometD cluster managers
- See Also:
-
Field Summary
Fields inherited from class org.cometd.oort.jakarta.OortConfigServlet
OORT_CHANNELS_PARAM, OORT_CLIENT_TRANSPORT_FACTORIES_PARAM, OORT_CONTEXT_ATTRIBUTE_NAME_PARAM, OORT_ENABLE_ACK_EXTENSION_PARAM, OORT_ENABLE_BINARY_EXTENSION_PARAM, OORT_JSON_CONTEXT_PARAM, OORT_SECRET_PARAM, OORT_URL_PARAM
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureCloud
(jakarta.servlet.ServletConfig config, Oort oort) Configures the Oort cloud by establishing connections with other Oort comets.Methods inherited from class org.cometd.oort.jakarta.OortConfigServlet
configureOort, destroy, init, newOort, provideOortURL
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
OORT_CLOUD_PARAM
- See Also:
-
-
Constructor Details
-
OortStaticConfigServlet
public OortStaticConfigServlet()
-
-
Method Details
-
configureCloud
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 classOortConfigServlet
- Parameters:
config
- the servlet configuration to read parameters fromoort
- the Oort instance associated with this configuration servlet
-