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

    Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    logger

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • 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 emit FileTailingMessageProducerSupport.FileTailingIdleEvents 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)  

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 emit FileTailingMessageProducerSupport.FileTailingIdleEvents 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 interface org.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 interface org.springframework.context.ApplicationEventPublisherAware
    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
    • getPhase

      public int getPhase()
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle
    • isAutoStartup

      public boolean isAutoStartup()
      Specified by:
      isAutoStartup in interface org.springframework.context.SmartLifecycle
    • stop

      public void stop​(java.lang.Runnable callback)
      Specified by:
      stop in interface org.springframework.context.SmartLifecycle
    • getObjectType

      public java.lang.Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<FileTailingMessageProducerSupport>
      Specified by:
      getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport>
    • createInstance

      protected FileTailingMessageProducerSupport createInstance()
      Specified by:
      createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<FileTailingMessageProducerSupport>