クラス OSDelegatingFileTailingMessageProducer
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.OSDelegatingFileTailingMessageProducer
- 実装済みのインターフェース一覧:
RunnableSE, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, SmartInitializingSingleton, ApplicationContextAware, ApplicationEventPublisherAware, Lifecycle, Phased, SmartLifecycle, ComponentSourceAware, ExpressionCapable, MessageProducer, IntegrationPattern, NamedComponent, IntegrationInboundManagement, IntegrationManagement, ManageableLifecycle, ManageableSmartLifecycle, TrackableComponent, SchedulingAwareRunnable
public class OSDelegatingFileTailingMessageProducer
extends FileTailingMessageProducerSupport
implements SchedulingAwareRunnable
OS テールプログラムに委譲するファイルテーリングメッセージプロデューサー。これは、それをサポートするプラットフォームで最も効率的なメカニズムである可能性があります。デフォルトのオプションは "-F-n0" です(ファイル名に従い、既存のレコードはありません)。
- 導入:
- 3.0
- 作成者:
- Gary Russell, Gavin Gray, Ali Shahbour, Artem Bilan, Trung Pham
ネストされたクラスの概要
クラス FileTailingMessageProducerSupport から継承されたネストクラス / インターフェース
FileTailingMessageProducerSupport.FileTailingEvent, FileTailingMessageProducerSupport.FileTailingIdleEventインターフェース IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールド概要
クラス FileTailingMessageProducerSupport から継承されたフィールド
DEFAULT_TAIL_ATTEMPTS_DELAYクラス AbstractEndpoint から継承されたフィールド
lifecycleLockクラス IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明protected voiddoStart()デフォルトでは何もしません。protected voiddoStop()デフォルトでは何もしません。booleanprotected voidonInit()サブクラスは、初期化ロジック用にこれを実装できます。voidrun()stdout から行を読み取り、出力チャネルにメッセージを送信します。voidsetEnableStatusReader(boolean enableStatusReader) false の場合、stderr をキャプチャーするためのスレッドは開始されず、stderr の出力は無視されます。voidsetOptions(@Nullable StringSE options) クラス FileTailingMessageProducerSupport から継承されたメソッド
getFile, getMissingFileDelay, getTaskExecutor, publish, send, setApplicationEventPublisher, setFile, setIdleEventInterval, setTailAttemptsDelay, setTaskExecutorクラス MessageProducerSupport から継承されたメソッド
afterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, getOutputChannelName, getRequiredOutputChannel, isObserved, registerObservationRegistry, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setObservationConvention, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisherクラス AbstractEndpoint から継承されたメソッド
destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopクラス IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース IntegrationManagement から継承されたメソッド
destroy, getManagedName, getManagedType, getOverrides, getThisAs, isLoggingEnabled, registerMetricsCaptor, setLoggingEnabled, setManagedName, setManagedTypeインターフェース NamedComponent から継承されたメソッド
getBeanName, getComponentNameインターフェース SchedulingAwareRunnable から継承されたメソッド
getQualifierインターフェース SmartLifecycle から継承されたメソッド
isPauseable
コンストラクターの詳細
OSDelegatingFileTailingMessageProducer
public OSDelegatingFileTailingMessageProducer()
方法の詳細
setOptions
setEnableStatusReader
public void setEnableStatusReader(boolean enableStatusReader) false の場合、stderr をキャプチャーするためのスレッドは開始されず、stderr の出力は無視されます。- パラメーター:
enableStatusReader- 正しいか間違っているか- 導入:
- 4.3.6
getCommand
getComponentType
- 次で指定:
- インターフェース
NamedComponent内のgetComponentType - オーバーライド:
- クラス
FileTailingMessageProducerSupportのgetComponentType
isLongLived
public boolean isLongLived()- 次で指定:
- インターフェース
SchedulingAwareRunnable内のisLongLived
onInit
protected void onInit()クラスからコピーされた説明:IntegrationObjectSupportサブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
MessageProducerSupportのonInit
doStart
protected void doStart()クラスからコピーされた説明:MessageProducerSupportデフォルトでは何も実行されません。ライフサイクル管理された動作が必要な場合、サブクラスはこれをオーバーライドできます。'lifecycleLock' によって保護されています。- オーバーライド:
- クラス
FileTailingMessageProducerSupportのdoStart
doStop
protected void doStop()クラスからコピーされた説明:MessageProducerSupportデフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。- オーバーライド:
- クラス
FileTailingMessageProducerSupportのdoStop
run