public class StreamServiceImpl extends DefaultComponent implements StreamService
Modifier and Type | Class and Description |
---|---|
protected class |
StreamServiceImpl.ComponentsLifeCycleListener |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CODEC |
protected Map<String,LogManager> |
managers |
static String |
NUXEO_STREAM_DIR_PROP |
static String |
NUXEO_STREAM_RET_DURATION_PROP |
protected Map<String,StreamProcessor> |
processors |
protected static String |
XP_LOG_CONFIG |
protected static String |
XP_STREAM_PROCESSOR |
lastModified, name
Constructor and Description |
---|
StreamServiceImpl() |
activate, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, 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
public static final String DEFAULT_CODEC
protected static final String XP_LOG_CONFIG
protected static final String XP_STREAM_PROCESSOR
protected final Map<String,LogManager> managers
protected final Map<String,StreamProcessor> processors
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(LogConfigDescriptor config)
public void start(ComponentContext context)
Component
start
in interface Component
start
in class DefaultComponent
protected void initProcessor(StreamProcessorDescriptor descriptor)
protected Settings getSettings(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()
Copyright © 2019 Nuxeo. All rights reserved.