クラス IntegrationManagementConfigurer
java.lang.ObjectSE
org.springframework.integration.config.IntegrationManagementConfigurer
- 実装されているすべてのインターフェース:
EventListenerSE、Aware、BeanNameAware、BeanPostProcessor、SmartInitializingSingleton、ApplicationContextAware、ApplicationListener<ContextClosedEvent>
public class IntegrationManagementConfigurer
extends ObjectSE
implements SmartInitializingSingleton, ApplicationContextAware, BeanNameAware, BeanPostProcessor, ApplicationListener<ContextClosedEvent>
IntegrationManagement を実装する Bean を構成します。すべての (または選択した) コンポーネントのロギング、MetricsCaptor および ObservationRegistry を構成します。- 導入:
- 4.2
- 作成者:
- Gary Russell, Artem Bilan, Meherzad Lahewala, Jonathan Pearlin
フィールドのサマリー
フィールドコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明voidvoidpostProcessAfterInitialization(ObjectSE bean, StringSE name) voidsetApplicationContext(ApplicationContext applicationContext) voidsetBeanName(StringSE name) voidsetDefaultLoggingEnabled(boolean defaultLoggingEnabled) フレームワークコンポーネントの通常のメッセージフローですべてのロギングを無効にします。voidsetMetricsCaptor(@Nullable MetricsCaptor metricsCaptor) voidsetObservationPatterns(StringSE... observationPatterns) ObservationRegistryでインストルメント化する必要があるコンポーネント名マッチングの単純なパターンを設定します。voidsetObservationRegistry(@Nullable io.micrometer.observation.ObservationRegistry observationRegistry) アプリケーションコンテキストでIntegrationManagementコンポーネントに移入するObservationRegistryを設定します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.context.ApplicationListener から継承されたメソッド
supportsAsyncExecutionインターフェース org.springframework.beans.factory.config.BeanPostProcessor から継承されたメソッド
postProcessBeforeInitialization
フィールドの詳細
MANAGEMENT_CONFIGURER_NAME
コンストラクターの詳細
IntegrationManagementConfigurer
public IntegrationManagementConfigurer()
メソッドの詳細
setApplicationContext
- 次で指定:
- インターフェース
ApplicationContextAwareのsetApplicationContext - 例外:
BeansException
setBeanName
- 次で指定:
- インターフェース
BeanNameAwareのsetBeanName
setDefaultLoggingEnabled
public void setDefaultLoggingEnabled(boolean defaultLoggingEnabled) フレームワークコンポーネントの通常のメッセージフローですべてのロギングを無効にします。"false" の場合、ロギングレベルに関係なく、そのようなロギングはスキップされます。"true" の場合、ロギングはロギングサブシステムのログレベル構成によって通常どおりに制御されます。例外ロギング(デバッグなど)は、この設定の影響を受けません。
大量のメッセージング環境では、
Log.isDebugEnabled()などのメソッドの呼び出しは非常に高負荷になり、異常な CPU 時間を占める可能性があることがわかっています。これを "false" に設定すると、
IntegrationManagementを実装するすべてのフレームワークコンポーネント (チャネル、メッセージハンドラーなど) でデフォルトでロギングが無効になります。これにより、「チャネル上の PreSend」、「受信メッセージ」などのロギングがオフになります。コンテキストが初期化された後、
IntegrationManagement.setLoggingEnabled(boolean)を呼び出すことにより、個々のコンポーネントの設定を変更できます。- パラメーター:
defaultLoggingEnabled- デフォルトは true です。
setMetricsCaptor
setObservationRegistry
public void setObservationRegistry(@Nullable io.micrometer.observation.ObservationRegistry observationRegistry) アプリケーションコンテキストでIntegrationManagementコンポーネントに移入するObservationRegistryを設定します。- パラメーター:
observationRegistry- 使用するObservationRegistry。- 導入:
- 6.0
setObservationPatterns
ObservationRegistryでインストルメント化する必要があるコンポーネント名マッチングの単純なパターンを設定します。- パラメーター:
observationPatterns- 使用する単純なパターン。- 導入:
- 6.0
- 関連事項:
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- 次で指定:
- インターフェース
SmartInitializingSingletonのafterSingletonsInstantiated
postProcessAfterInitialization
- 次で指定:
- インターフェース
BeanPostProcessorのpostProcessAfterInitialization - 例外:
BeansException
onApplicationEvent
- 次で指定:
- インターフェース
ApplicationListener<ContextClosedEvent>のonApplicationEvent