Class FileTailInboundChannelAdapterFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport>
org.springframework.integration.file.config.FileTailInboundChannelAdapterFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<FileTailingMessageProducerSupport>
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationEventPublisherAware
,org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
public class FileTailInboundChannelAdapterFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport> implements org.springframework.beans.factory.BeanNameAware, org.springframework.context.SmartLifecycle, org.springframework.context.ApplicationEventPublisherAware
- Since:
- 3.0
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FileTailInboundChannelAdapterFactoryBean()
-
Method Summary
Modifier and Type Method Description protected FileTailingMessageProducerSupport
createInstance()
java.lang.Class<?>
getObjectType()
int
getPhase()
boolean
isAutoStartup()
boolean
isRunning()
void
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
void
setAutoStartup(boolean autoStartup)
void
setBeanName(java.lang.String name)
void
setDelay(java.lang.Long delay)
void
setEnableStatusReader(boolean enableStatusReader)
If false, thread for capturing stderr will not be started and stderr output will be ignored.void
setEnd(java.lang.Boolean end)
void
setErrorChannel(org.springframework.messaging.MessageChannel errorChannel)
void
setErrorChannelName(java.lang.String errorChannelName)
void
setFile(java.io.File file)
void
setFileDelay(java.lang.Long fileDelay)
void
setIdleEventInterval(long idleEventInterval)
How often to emitFileTailingMessageProducerSupport.FileTailingIdleEvent
s in milliseconds.void
setNativeOptions(java.lang.String nativeOptions)
void
setOutputChannel(org.springframework.messaging.MessageChannel outputChannel)
void
setOutputChannelName(java.lang.String outputChannelName)
void
setPhase(int phase)
void
setReopen(java.lang.Boolean reopen)
void
setTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
void
setTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)
void
start()
void
stop()
void
stop(java.lang.Runnable callback)
-
Constructor Details
-
FileTailInboundChannelAdapterFactoryBean
public FileTailInboundChannelAdapterFactoryBean()
-
-
Method Details
-
setNativeOptions
public void setNativeOptions(java.lang.String nativeOptions) -
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
public void setFile(java.io.File file) -
setTaskExecutor
public void setTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor) -
setTaskScheduler
public void setTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler) -
setDelay
public void setDelay(java.lang.Long delay) -
setFileDelay
public void setFileDelay(java.lang.Long fileDelay) -
setEnd
public void setEnd(java.lang.Boolean end) -
setReopen
public void setReopen(java.lang.Boolean reopen) -
setBeanName
public void setBeanName(java.lang.String name)- Specified by:
setBeanName
in interfaceorg.springframework.beans.factory.BeanNameAware
-
setOutputChannel
public void setOutputChannel(org.springframework.messaging.MessageChannel outputChannel) -
setOutputChannelName
public void setOutputChannelName(java.lang.String outputChannelName) -
setErrorChannel
public void setErrorChannel(org.springframework.messaging.MessageChannel errorChannel) -
setErrorChannelName
public void setErrorChannelName(java.lang.String errorChannelName) -
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
setPhase
public void setPhase(int phase) -
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)- Specified by:
setApplicationEventPublisher
in interfaceorg.springframework.context.ApplicationEventPublisherAware
-
start
public void start()- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-
getPhase
public int getPhase()- Specified by:
getPhase
in interfaceorg.springframework.context.Phased
- Specified by:
getPhase
in interfaceorg.springframework.context.SmartLifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartup
in interfaceorg.springframework.context.SmartLifecycle
-
stop
public void stop(java.lang.Runnable callback)- Specified by:
stop
in interfaceorg.springframework.context.SmartLifecycle
-
getObjectType
public java.lang.Class<?> getObjectType()- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<FileTailingMessageProducerSupport>
- Specified by:
getObjectType
in classorg.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport>
-
createInstance
- Specified by:
createInstance
in classorg.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport>
-