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 FileTailingMessageProducerSupport
createInstance()
Class<?>
getObjectType()
int
getPhase()
boolean
isAutoStartup()
boolean
isRunning()
void
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
void
setAutoStartup(boolean autoStartup)
void
setBeanName(String name)
void
setDelay(Long delay)
void
setEnableStatusReader(boolean enableStatusReader)
If false, thread for capturing stderr will not be started and stderr output will be ignoredvoid
setEnd(Boolean end)
void
setErrorChannel(MessageChannel errorChannel)
void
setErrorChannelName(String errorChannelName)
void
setFile(File file)
void
setFileDelay(Long fileDelay)
void
setIdleEventInterval(long idleEventInterval)
How often to emitFileTailingMessageProducerSupport.FileTailingIdleEvent
s in milliseconds.void
setNativeOptions(String nativeOptions)
void
setOutputChannel(MessageChannel outputChannel)
void
setOutputChannelName(String outputChannelName)
void
setPhase(int phase)
void
setReopen(Boolean reopen)
void
setTaskExecutor(TaskExecutor taskExecutor)
void
setTaskScheduler(TaskScheduler taskScheduler)
void
start()
void
stop()
void
stop(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.FileTailingIdleEvent
s in milliseconds.- Parameters:
idleEventInterval
- the interval.- Since:
- 5.0
-
setFile
-
setTaskExecutor
-
setTaskScheduler
-
setDelay
-
setFileDelay
-
setEnd
-
setReopen
-
setBeanName
- Specified by:
setBeanName
in interfaceBeanNameAware
-
setOutputChannel
-
setOutputChannelName
-
setErrorChannel
-
setErrorChannelName
-
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
setPhase
public void setPhase(int phase) -
setApplicationEventPublisher
- Specified by:
setApplicationEventPublisher
in interfaceApplicationEventPublisherAware
-
start
public void start() -
stop
public void stop() -
isRunning
public boolean isRunning() -
getPhase
public int getPhase()- Specified by:
getPhase
in interfacePhased
- Specified by:
getPhase
in interfaceSmartLifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartup
in interfaceSmartLifecycle
-
stop
- Specified by:
stop
in interfaceSmartLifecycle
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<FileTailingMessageProducerSupport>
- Specified by:
getObjectType
in classAbstractFactoryBean<FileTailingMessageProducerSupport>
-
createInstance
- Specified by:
createInstance
in classAbstractFactoryBean<FileTailingMessageProducerSupport>
-