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
| Constructor and Description |
|---|
FileTailInboundChannelAdapterFactoryBean() |
| Modifier and Type | Method and 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 |
setFile(java.io.File file) |
void |
setFileDelay(java.lang.Long fileDelay) |
void |
setIdleEventInterval(long idleEventInterval)
How often to emit
FileTailingMessageProducerSupport.FileTailingIdleEvents in milliseconds. |
void |
setNativeOptions(java.lang.String nativeOptions) |
void |
setOutputChannel(org.springframework.messaging.MessageChannel outputChannel) |
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) |
public FileTailInboundChannelAdapterFactoryBean()
public void setNativeOptions(java.lang.String nativeOptions)
public void setEnableStatusReader(boolean enableStatusReader)
enableStatusReader - true or falsepublic void setIdleEventInterval(long idleEventInterval)
FileTailingMessageProducerSupport.FileTailingIdleEvents in milliseconds.idleEventInterval - the interval.public void setFile(java.io.File file)
public void setTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
public void setTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)
public void setDelay(java.lang.Long delay)
public void setFileDelay(java.lang.Long fileDelay)
public void setEnd(java.lang.Boolean end)
public void setReopen(java.lang.Boolean reopen)
public void setBeanName(java.lang.String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setOutputChannel(org.springframework.messaging.MessageChannel outputChannel)
public void setErrorChannel(org.springframework.messaging.MessageChannel errorChannel)
public void setAutoStartup(boolean autoStartup)
public void setPhase(int phase)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwarepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecyclepublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<FileTailingMessageProducerSupport>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport>protected FileTailingMessageProducerSupport createInstance() throws java.lang.Exception
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport>java.lang.Exception