public class MQServiceImpl extends DefaultComponent implements MQService
Modifier and Type | Class and Description |
---|---|
protected class |
MQServiceImpl.ComponentsLifeCycleListener |
Modifier and Type | Field and Description |
---|---|
protected Map<String,ComputationManager> |
computationManagers |
protected Map<String,ConfigDescriptor> |
configs |
protected Map<String,MQManager> |
managers |
protected static String |
MQ_CONFIG_XP |
protected static String |
MQ_TOPOLOGY_XP |
static String |
NUXEO_MQUEUE_DIR_PROP |
static String |
NUXEO_MQUEUE_RET_DURATION_PROP |
protected Map<String,TopologyDescriptor> |
topologies |
lastModified
Constructor and Description |
---|
MQServiceImpl() |
activate, deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterContribution, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted
public static final String NUXEO_MQUEUE_DIR_PROP
public static final String NUXEO_MQUEUE_RET_DURATION_PROP
protected static final String MQ_CONFIG_XP
protected static final String MQ_TOPOLOGY_XP
protected Map<String,ConfigDescriptor> configs
protected Map<String,ComputationManager> computationManagers
protected Map<String,TopologyDescriptor> topologies
public MQServiceImpl()
public int getApplicationStartedOrder()
Component
Component.applicationStarted(org.nuxeo.runtime.model.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.
getApplicationStartedOrder
in interface Component
public MQManager getManager(String name)
MQService
getManager
in interface MQService
protected MQManager createKafkaMQManager(ConfigDescriptor config)
protected MQManager createChronicleMQManager(ConfigDescriptor config)
protected String getChronicleRetention(String retention)
protected Path getChroniclePath(String basePath, String name)
protected void createMQueueIfNotExists(String name, ConfigDescriptor config)
public void start(ComponentContext context)
Component
start
in interface Component
start
in class DefaultComponent
protected void initComputations(String name, TopologyDescriptor descriptor)
public void stop(ComponentContext context) throws InterruptedException
Component
stop
in interface Component
stop
in class DefaultComponent
InterruptedException
protected void startComputations()
protected void stopComputations()
protected void closeManagers()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
Copyright © 2017 Nuxeo. All rights reserved.