Class OpenSearchEmbedComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.runtime.opensearch1.embed.OpenSearchEmbedComponent
- All Implemented Interfaces:
Adaptable
,Component
,Extensible
,OpenSearchEmbedService
,TimestampedService
- Since:
- 2025.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map
<String, OpenSearchEmbedNode> protected static final String
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
The component notification order forComponent.start(ComponentContext)
.getServerUrl
(String id) Gets the opensearch server url for an embedded node id.void
start
(ComponentContext context) Start the component.void
stop
(ComponentContext context) Stop the component.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, unregisterExtension
-
Field Details
-
XP_SERVER
- See Also:
-
nodes
-
-
Constructor Details
-
OpenSearchEmbedComponent
public OpenSearchEmbedComponent()
-
-
Method Details
-
getApplicationStartedOrder
public int getApplicationStartedOrder()Description copied from interface:Component
The component notification order forComponent.start(ComponentContext)
.Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.
- Specified by:
getApplicationStartedOrder
in interfaceComponent
- Returns:
- the order, 1000 by default
-
start
Description copied from interface:Component
Start the component. This method is called after all the components were resolved and activated- Specified by:
start
in interfaceComponent
- Overrides:
start
in classDefaultComponent
-
stop
Description copied from interface:Component
Stop the component.- Specified by:
stop
in interfaceComponent
- Overrides:
stop
in classDefaultComponent
-
getServerUrl
Description copied from interface:OpenSearchEmbedService
Gets the opensearch server url for an embedded node id.- Specified by:
getServerUrl
in interfaceOpenSearchEmbedService
- Parameters:
id
- the embedded server id- Returns:
- the server url
-