Package org.nuxeo.runtime.kafka
Class KafkaConfigServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.runtime.kafka.KafkaConfigServiceImpl
- All Implemented Interfaces:
KafkaConfigService,Adaptable,Component,Extensible,TimestampedService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated, for removal: This API element is subject to removal in a future version.protected static final Stringprotected static final longstatic final StringFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdminProperties(String configName) Returns the Kafka admin properties for a configuration.intThe component notification order forComponent.start(ComponentContext).getConsumerProperties(String configName) Returns the Kafka consumer properties for a configuration.protected KafkaConfigDescriptorgetDescriptor(String configName) getProducerProperties(String configName) Returns the Kafka producer properties for a configuration.getTopicPrefix(String configName) Returns the topic prefix to use for a configuration.List the name of the registered Kafka configuration.voidstart(ComponentContext context) Start 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, stop, unregister, unregisterContribution, unregisterExtension
-
Field Details
-
XP_KAFKA_CONFIG
- See Also:
-
APPLICATION_STARTED_ORDER
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useComponentStartOrders.KAFKAinstead- See Also:
-
DEFAULT_BOOTSTRAP_SERVERS
- See Also:
-
START_STAMP
protected static final long START_STAMP
-
-
Constructor Details
-
KafkaConfigServiceImpl
public KafkaConfigServiceImpl()
-
-
Method Details
-
getApplicationStartedOrder
public int getApplicationStartedOrder()Description copied from interface:ComponentThe 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:
getApplicationStartedOrderin interfaceComponent- Returns:
- the order, 1000 by default
-
start
Description copied from interface:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
listConfigNames
Description copied from interface:KafkaConfigServiceList the name of the registered Kafka configuration.- Specified by:
listConfigNamesin interfaceKafkaConfigService
-
getProducerProperties
Description copied from interface:KafkaConfigServiceReturns the Kafka producer properties for a configuration.- Specified by:
getProducerPropertiesin interfaceKafkaConfigService
-
getConsumerProperties
Description copied from interface:KafkaConfigServiceReturns the Kafka consumer properties for a configuration.- Specified by:
getConsumerPropertiesin interfaceKafkaConfigService
-
getTopicPrefix
Description copied from interface:KafkaConfigServiceReturns the topic prefix to use for a configuration.- Specified by:
getTopicPrefixin interfaceKafkaConfigService
-
getAdminProperties
Description copied from interface:KafkaConfigServiceReturns the Kafka admin properties for a configuration.- Specified by:
getAdminPropertiesin interfaceKafkaConfigService
-
getDescriptor
-
ComponentStartOrders.KAFKAinstead