クラス ApacheCommonsFileTailingMessageProducer

実装されているすべてのインターフェース:
org.apache.commons.io.input.TailerListenerAwareBeanFactoryAwareBeanNameAwareDisposableBeanInitializingBeanSmartInitializingSingletonApplicationContextAwareApplicationEventPublisherAwareLifecyclePhasedSmartLifecycleExpressionCapableMessageProducerIntegrationPatternNamedComponentManageableLifecycleManageableSmartLifecycleTrackableComponent

public class ApacheCommonsFileTailingMessageProducer
extends FileTailingMessageProducerSupport
implements org.apache.commons.io.input.TailerListener
Apache Commons テイラーに委譲するファイルテイラー。
導入:
3.0
作成者:
Gary Russell, Artem Bilan
  • コンストラクターの詳細

  • メソッドの詳細

    • setPollingDelay

      public void setPollingDelay​(long pollingDelay)
      新しいコンテンツのファイルをチェックする間隔(ミリ秒単位)。
      パラメーター:
      pollingDelay - 遅延。
    • setEnd

      public void setEnd​(boolean end)
      true の場合、ファイルの末尾から末尾、それ以外の場合は先頭からすべての行が含まれます。デフォルトは true。
      パラメーター:
      end - 正しいか間違っているか
    • setReopen

      public void setReopen​(boolean reopen)
      true の場合、チャンクの読み取りの間にファイルを閉じて再度開きます。デフォルトは false。
      パラメーター:
      reopen - 正しいか間違っているか。
    • getComponentType

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

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

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

      public void init​(org.apache.commons.io.input.Tailer tailer)
      次で指定:
      インターフェース org.apache.commons.io.input.TailerListenerinit 
    • fileNotFound

      public void fileNotFound()
      次で指定:
      インターフェース org.apache.commons.io.input.TailerListenerfileNotFound 
    • fileRotated

      public void fileRotated()
      次で指定:
      インターフェース org.apache.commons.io.input.TailerListenerfileRotated 
    • handle

      public void handle​(StringSE line)
      次で指定:
      インターフェース org.apache.commons.io.input.TailerListenerhandle 
    • handle

      public void handle​(ExceptionSE ex)
      次で指定:
      インターフェース org.apache.commons.io.input.TailerListenerhandle