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
Modifier and TypeFieldDescriptionstatic final int
protected static final String
protected static final long
static final String
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAdminProperties
(String configName) Returns the Kafka admin properties for a configuration.int
The component notification order forComponent.start(ComponentContext)
.getConsumerProperties
(String configName) Returns the Kafka consumer properties for a configuration.protected KafkaConfigDescriptor
getDescriptor
(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.void
start
(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
public static final int APPLICATION_STARTED_ORDER- 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: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
-
listConfigNames
Description copied from interface:KafkaConfigService
List the name of the registered Kafka configuration.- Specified by:
listConfigNames
in interfaceKafkaConfigService
-
getProducerProperties
Description copied from interface:KafkaConfigService
Returns the Kafka producer properties for a configuration.- Specified by:
getProducerProperties
in interfaceKafkaConfigService
-
getConsumerProperties
Description copied from interface:KafkaConfigService
Returns the Kafka consumer properties for a configuration.- Specified by:
getConsumerProperties
in interfaceKafkaConfigService
-
getTopicPrefix
Description copied from interface:KafkaConfigService
Returns the topic prefix to use for a configuration.- Specified by:
getTopicPrefix
in interfaceKafkaConfigService
-
getAdminProperties
Description copied from interface:KafkaConfigService
Returns the Kafka admin properties for a configuration.- Specified by:
getAdminProperties
in interfaceKafkaConfigService
-
getDescriptor
-