public class IntegrationManagementConfigurer extends ObjectSE implements SmartInitializingSingleton, ApplicationContextAware, BeanNameAware, BeanPostProcessor, DisposableBean
IntegrationManagement
を実装する Bean を構成します。すべての(または選択した)コンポーネントのカウント、統計、ロギングを構成します。修飾子と型 | フィールドと説明 |
---|---|
static StringSE | MANAGEMENT_CONFIGURER_NAME コンフィギュレーターの Bean 名。 |
コンストラクターと説明 |
---|
IntegrationManagementConfigurer() |
修飾子と型 | メソッドと説明 |
---|---|
void | afterSingletonsInstantiated() |
void | destroy() |
ObjectSE | postProcessAfterInitialization(ObjectSE bean, StringSE name) |
void | setApplicationContext(ApplicationContext applicationContext) |
void | setBeanName(StringSE name) |
void | setDefaultLoggingEnabled(boolean defaultLoggingEnabled) フレームワークコンポーネントの通常のメッセージフローですべてのロギングを無効にします。 |
void | setMetricsCaptor(MetricsCaptor metricsCaptor) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
postProcessBeforeInitialization
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
ApplicationContextAware
の setApplicationContext
BeansException
public void setBeanName(StringSE name)
BeanNameAware
の setBeanName
public void setDefaultLoggingEnabled(boolean defaultLoggingEnabled)
例外ロギング(デバッグなど)は、この設定の影響を受けません。
大容量のメッセージング環境では、Log.isDebugEnabled()
などのメソッドの呼び出しは非常に負荷が高く、CPU 時間の異常な原因となることがわかっています。
これを false に設定すると、IntegrationManagement
を実装するすべてのフレームワークコンポーネント(チャネル、メッセージハンドラーなど)でデフォルトでロギングが無効になります。これにより、"PreSend on channel"、"Received message" などのロギングがオフになります。
コンテキストが初期化された後、IntegrationManagement.setLoggingEnabled(boolean)
を呼び出すことにより、個々のコンポーネントの設定を変更できます。
defaultLoggingEnabled
- デフォルトは true です。public void setMetricsCaptor(@Nullable MetricsCaptor metricsCaptor)
public void afterSingletonsInstantiated()
SmartInitializingSingleton
の afterSingletonsInstantiated
public ObjectSE postProcessAfterInitialization(ObjectSE bean, StringSE name) throws BeansException
BeanPostProcessor
の postProcessAfterInitialization
BeansException
public void destroy()
DisposableBean
の destroy