クラス ApacheCommonsFileTailingMessageProducer
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.file.tail.FileTailingMessageProducerSupport
org.springframework.integration.file.tail.ApacheCommonsFileTailingMessageProducer
- 実装されているすべてのインターフェース:
org.apache.commons.io.input.TailerListener、Aware、BeanFactoryAware、BeanNameAware、DisposableBean、InitializingBean、SmartInitializingSingleton、ApplicationContextAware、ApplicationEventPublisherAware、Lifecycle、Phased、SmartLifecycle、ExpressionCapable、MessageProducer、IntegrationPattern、NamedComponent、ManageableLifecycle、ManageableSmartLifecycle、TrackableComponent
public class ApacheCommonsFileTailingMessageProducer extends FileTailingMessageProducerSupport implements org.apache.commons.io.input.TailerListener
Apache Commons テイラーに委譲するファイルテイラー。
- 導入:
- 3.0
- 作成者:
- Gary Russell, Artem Bilan
ネストされたクラスの要約
クラス org.springframework.integration.file.tail.FileTailingMessageProducerSupport から継承されたネストクラス / インターフェース
FileTailingMessageProducerSupport.FileTailingEvent, FileTailingMessageProducerSupport.FileTailingIdleEventフィールドのサマリー
クラス org.springframework.integration.file.tail.FileTailingMessageProducerSupport から継承されたフィールド
DEFAULT_TAIL_ATTEMPTS_DELAYクラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたフィールド
lifecycleCondition, lifecycleLockクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerコンストラクターの概要
コンストラクター コンストラクター 説明 ApacheCommonsFileTailingMessageProducer()メソッドのサマリー
修飾子と型 メソッド 説明 protected voiddoStart()デフォルトでは何もしません。protected voiddoStop()デフォルトでは何もしません。voidfileNotFound()voidfileRotated()StringSEgetComponentType()サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。voidhandle(ExceptionSE ex)voidhandle(StringSE line)voidinit(org.apache.commons.io.input.Tailer tailer)voidsetEnd(boolean end)true の場合、ファイルの末尾から末尾、それ以外の場合は先頭からすべての行が含まれます。voidsetPollingDelay(long pollingDelay)新しいコンテンツのファイルをチェックする間隔(ミリ秒単位)。voidsetReopen(boolean reopen)true の場合、チャンクの読み取りの間にファイルを閉じて再度開きます。デフォルトは false。クラス org.springframework.integration.file.tail.FileTailingMessageProducerSupport から継承されたメソッド
getFile, getMissingFileDelay, getTaskExecutor, publish, send, setApplicationEventPublisher, setFile, setIdleEventInterval, setTailAttemptsDelay, setTaskExecutorクラス org.springframework.integration.endpoint.MessageProducerSupport から継承されたメソッド
afterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, onInit, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisherクラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたメソッド
destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
コンストラクターの詳細
ApacheCommonsFileTailingMessageProducer
public ApacheCommonsFileTailingMessageProducer()
メソッドの詳細
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
クラスからコピーされた説明:IntegrationObjectSupportサブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。- 次で指定:
- インターフェース
NamedComponentのgetComponentType - オーバーライド:
- クラス
FileTailingMessageProducerSupportのgetComponentType
doStart
protected void doStart()クラスからコピーされた説明:MessageProducerSupportデフォルトでは何も実行されません。ライフサイクル管理された動作が必要な場合、サブクラスはこれをオーバーライドできます。'lifecycleLock' によって保護されています。- オーバーライド:
- クラス
FileTailingMessageProducerSupportのdoStart
doStop
protected void doStop()クラスからコピーされた説明:MessageProducerSupportデフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。- オーバーライド:
- クラス
FileTailingMessageProducerSupportのdoStop
init
public void init(org.apache.commons.io.input.Tailer tailer)- 次で指定:
- インターフェース
org.apache.commons.io.input.TailerListenerのinit
fileNotFound
public void fileNotFound()- 次で指定:
- インターフェース
org.apache.commons.io.input.TailerListenerのfileNotFound
fileRotated
public void fileRotated()- 次で指定:
- インターフェース
org.apache.commons.io.input.TailerListenerのfileRotated
handle
- 次で指定:
- インターフェース
org.apache.commons.io.input.TailerListenerのhandle
handle
- 次で指定:
- インターフェース
org.apache.commons.io.input.TailerListenerのhandle