public class OSDelegatingFileTailingMessageProducer extends FileTailingMessageProducerSupport implements org.springframework.scheduling.SchedulingAwareRunnable
FileTailingMessageProducerSupport.FileTailingEventlifecycleCondition, lifecycleLockEXPRESSION_PARSER, logger| Constructor and Description |
|---|
OSDelegatingFileTailingMessageProducer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart()
Takes no action by default.
|
protected void |
doStop()
Takes no action by default.
|
java.lang.String |
getCommand() |
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
boolean |
isLongLived() |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
run()
Reads lines from stdout and sends in a message to the output channel.
|
void |
setEnableStatusReader(boolean enableStatusReader)
If false, thread for capturing stderr will not be started
and stderr output will be ignored
|
void |
setOptions(java.lang.String options) |
getFile, getMissingFileDelay, getTaskExecutor, publish, send, setApplicationEventPublisher, setFile, setTailAttemptsDelay, setTaskExecutorafterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getMessagingTemplate, getOutputChannel, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrackdoStop, getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic OSDelegatingFileTailingMessageProducer()
public void setOptions(java.lang.String options)
public void setEnableStatusReader(boolean enableStatusReader)
enableStatusReader - true or falsepublic java.lang.String getCommand()
public java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class FileTailingMessageProducerSupportpublic boolean isLongLived()
isLongLived in interface org.springframework.scheduling.SchedulingAwareRunnableprotected void onInit()
IntegrationObjectSupportonInit in class MessageProducerSupportprotected void doStart()
MessageProducerSupportdoStart in class MessageProducerSupportprotected void doStop()
MessageProducerSupportdoStop in class MessageProducerSupportpublic void run()
run in interface java.lang.Runnable