クラス 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
フィールドのサマリー
フィールドコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明void
void
postProcessAfterInitialization
(ObjectSE bean, StringSE name) void
setApplicationContext
(ApplicationContext applicationContext) void
setBeanName
(StringSE name) void
setDefaultLoggingEnabled
(boolean defaultLoggingEnabled) フレームワークコンポーネントの通常のメッセージフローですべてのロギングを無効にします。void
setMetricsCaptor
(MetricsCaptor metricsCaptor) void
setObservationPatterns
(StringSE... observationPatterns) ObservationRegistry
でインストルメント化する必要があるコンポーネント名マッチングの単純なパターンを設定します。void
setObservationRegistry
(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