public class StreamServiceImpl extends DefaultComponent implements StreamService
Modifier and Type | Class and Description |
---|---|
protected class |
StreamServiceImpl.ComponentsLifeCycleListener |
Modifier and Type | Field and Description |
---|---|
protected Map<String,LogConfigDescriptor> |
configs |
protected static String |
LOG_CONFIG_XP |
protected Map<String,LogManager> |
managers |
static String |
NUXEO_STREAM_DIR_PROP |
static String |
NUXEO_STREAM_RET_DURATION_PROP |
protected Map<String,StreamProcessorDescriptor> |
processorDescriptors |
protected Map<String,StreamProcessor> |
processors |
protected static String |
STREAM_PROCESSOR_XP |
lastModified
Constructor and Description |
---|
StreamServiceImpl() |
activate, deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted
public static final String NUXEO_STREAM_DIR_PROP
public static final String NUXEO_STREAM_RET_DURATION_PROP
protected static final String LOG_CONFIG_XP
protected static final String STREAM_PROCESSOR_XP
protected final Map<String,LogConfigDescriptor> configs
protected final Map<String,LogManager> managers
protected final Map<String,StreamProcessor> processors
protected final Map<String,StreamProcessorDescriptor> processorDescriptors
public StreamServiceImpl()
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 LogManager getLogManager(String name)
StreamService
getLogManager
in interface StreamService
protected LogManager createKafkaLogManager(LogConfigDescriptor config)
protected LogManager createChronicleLogManager(LogConfigDescriptor config)
protected String getChronicleRetention(String retention)
protected Path getChroniclePath(String basePath, String name)
protected void createStreamIfNotExists(String name, LogConfigDescriptor config)
public void start(ComponentContext context)
Component
start
in interface Component
start
in class DefaultComponent
protected void initProcessor(String name, StreamProcessorDescriptor 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 closeLogManagers()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
Copyright © 2018 Nuxeo. All rights reserved.