Class FileTailInboundChannelAdapterFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport>
org.springframework.integration.file.config.FileTailInboundChannelAdapterFactoryBean
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,BeanNameAware,DisposableBean,FactoryBean<FileTailingMessageProducerSupport>,InitializingBean,ApplicationEventPublisherAware,Lifecycle,Phased,SmartLifecycle
public class FileTailInboundChannelAdapterFactoryBean extends AbstractFactoryBean<FileTailingMessageProducerSupport> implements BeanNameAware, SmartLifecycle, ApplicationEventPublisherAware
- Since:
- 3.0
- Author:
- Gary Russell, Artem Bilan, Ali Shahbour
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FileTailInboundChannelAdapterFactoryBean() -
Method Summary
Modifier and Type Method Description protected FileTailingMessageProducerSupportcreateInstance()Class<?>getObjectType()intgetPhase()booleanisAutoStartup()booleanisRunning()voidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)voidsetAutoStartup(boolean autoStartup)voidsetBeanName(String name)voidsetDelay(Long delay)voidsetEnableStatusReader(boolean enableStatusReader)If false, thread for capturing stderr will not be started and stderr output will be ignored.voidsetEnd(Boolean end)voidsetErrorChannel(MessageChannel errorChannel)voidsetErrorChannelName(String errorChannelName)voidsetErrorMessageStrategy(ErrorMessageStrategy errorMessageStrategy)voidsetFile(File file)voidsetFileDelay(Long fileDelay)voidsetIdleEventInterval(long idleEventInterval)How often to emitFileTailingMessageProducerSupport.FileTailingIdleEvents in milliseconds.voidsetNativeOptions(String nativeOptions)voidsetOutputChannel(MessageChannel outputChannel)voidsetOutputChannelName(String outputChannelName)voidsetPhase(int phase)voidsetReopen(Boolean reopen)voidsetSendTimeout(long sendTimeout)voidsetShouldTrack(boolean shouldTrack)voidsetTaskExecutor(TaskExecutor taskExecutor)voidsetTaskScheduler(TaskScheduler taskScheduler)voidstart()voidstop()voidstop(Runnable callback)Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
FileTailInboundChannelAdapterFactoryBean
public FileTailInboundChannelAdapterFactoryBean()
-
-
Method Details
-
setNativeOptions
-
setEnableStatusReader
public void setEnableStatusReader(boolean enableStatusReader)If false, thread for capturing stderr will not be started and stderr output will be ignored.- Parameters:
enableStatusReader- true or false- Since:
- 4.3.6
-
setIdleEventInterval
public void setIdleEventInterval(long idleEventInterval)How often to emitFileTailingMessageProducerSupport.FileTailingIdleEvents in milliseconds.- Parameters:
idleEventInterval- the interval.- Since:
- 5.0
-
setFile
-
setTaskExecutor
-
setTaskScheduler
-
setDelay
-
setFileDelay
-
setEnd
-
setReopen
-
setBeanName
- Specified by:
setBeanNamein interfaceBeanNameAware
-
setOutputChannel
-
setOutputChannelName
-
setErrorChannel
-
setErrorChannelName
-
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
setPhase
public void setPhase(int phase) -
setSendTimeout
public void setSendTimeout(long sendTimeout) -
setShouldTrack
public void setShouldTrack(boolean shouldTrack) -
setErrorMessageStrategy
-
setApplicationEventPublisher
- Specified by:
setApplicationEventPublisherin interfaceApplicationEventPublisherAware
-
start
public void start() -
stop
public void stop() -
isRunning
public boolean isRunning() -
getPhase
public int getPhase()- Specified by:
getPhasein interfacePhased- Specified by:
getPhasein interfaceSmartLifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceSmartLifecycle
-
stop
- Specified by:
stopin interfaceSmartLifecycle
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<FileTailingMessageProducerSupport>- Specified by:
getObjectTypein classAbstractFactoryBean<FileTailingMessageProducerSupport>
-
createInstance
- Specified by:
createInstancein classAbstractFactoryBean<FileTailingMessageProducerSupport>
-