クラス FileTailingMessageProducerSupport

実装されたすべてのインターフェース:
AwareBeanFactoryAwareBeanNameAwareDisposableBeanInitializingBeanSmartInitializingSingletonApplicationContextAwareApplicationEventPublisherAwareLifecyclePhasedSmartLifecycleExpressionCapableMessageProducerIntegrationPatternNamedComponentIntegrationInboundManagementIntegrationManagementManageableLifecycleManageableSmartLifecycleTrackableComponent
既知の直属サブクラス
ApacheCommonsFileTailingMessageProducerOSDelegatingFileTailingMessageProducer

public abstract class FileTailingMessageProducerSupport extends MessageProducerSupport implements ApplicationEventPublisherAware
ファイルテーリング受信アダプターの基本クラス。
導入:
3.0
作成者:
Gary Russell, Artem Bilan, Ali Shahbour, Vladimir Plizga
  • フィールドの詳細

    • DEFAULT_TAIL_ATTEMPTS_DELAY

      public static final long DEFAULT_TAIL_ATTEMPTS_DELAY
      テール試行間のデフォルトの遅延(ミリ秒単位)。
      関連事項:
  • コンストラクターの詳細

    • FileTailingMessageProducerSupport

      public FileTailingMessageProducerSupport()
  • メソッドの詳細

    • setApplicationEventPublisher

      public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
      次で指定:
      インターフェース ApplicationEventPublisherAwaresetApplicationEventPublisher 
    • setFile

      public void setFile(FileSE file)
      末尾にしたいファイルの名前。
      パラメーター:
      file - ファイルの絶対パス。
    • getFile

      protected FileSE getFile()
    • setTaskExecutor

      public void setTaskExecutor(TaskExecutor taskExecutor)
      タスクエグゼキュータ。デフォルトは SimpleAsyncTaskExecutor です。
      パラメーター:
      taskExecutor - タスク実行者。
    • setTailAttemptsDelay

      public void setTailAttemptsDelay(long tailAttemptsDelay)
      存在しないファイルをテールする試行間の、または何らかの理由で失敗した場合のプロセスの実行試行間のミリ秒単位の遅延。
      パラメーター:
      tailAttemptsDelay - 遅延。
    • setIdleEventInterval

      public void setIdleEventInterval(long idleEventInterval)
      FileTailingMessageProducerSupport.FileTailingIdleEvent をミリ秒単位で発行する頻度。
      パラメーター:
      idleEventInterval - 間隔。
      導入:
      5.0
    • getMissingFileDelay

      protected long getMissingFileDelay()
    • getTaskExecutor

      protected TaskExecutor getTaskExecutor()
    • getComponentType

      public StringSE getComponentType()
      クラスからコピーされた説明: IntegrationObjectSupport
      サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。
      次で指定:
      インターフェース NamedComponentgetComponentType 
      オーバーライド:
      クラス IntegrationObjectSupportgetComponentType 
    • send

      protected void send(StringSE line)
    • publish

      protected void publish(StringSE message)
    • doStart

      protected void doStart()
      クラスからコピーされた説明: MessageProducerSupport
      デフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。"lifecycleLock" によって保護されています。
      オーバーライド:
      クラス MessageProducerSupportdoStart 
    • doStop

      protected void doStop()
      クラスからコピーされた説明: MessageProducerSupport
      デフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。
      オーバーライド:
      クラス MessageProducerSupportdoStop