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, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStartedpublic 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()
ComponentComponent.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 Componentpublic LogManager getLogManager(String name)
StreamServicegetLogManager in interface StreamServiceprotected 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)
Componentstart in interface Componentstart in class DefaultComponentprotected void initProcessor(String name, StreamProcessorDescriptor descriptor)
public void stop(ComponentContext context) throws InterruptedException
Componentstop in interface Componentstop in class DefaultComponentInterruptedExceptionprotected void startComputations()
protected void stopComputations()
protected void closeLogManagers()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentCopyright © 2018 Nuxeo. All rights reserved.