クラス IntegrationMBeanExporter
java.lang.ObjectSE
org.springframework.jmx.support.MBeanRegistrationSupport
org.springframework.jmx.export.MBeanExporter
org.springframework.integration.monitor.IntegrationMBeanExporter
- 実装されているすべてのインターフェース:
Aware、BeanClassLoaderAware、BeanFactoryAware、BeanPostProcessor、DestructionAwareBeanPostProcessor、DisposableBean、InitializingBean、SmartInitializingSingleton、ApplicationContextAware、MBeanExportOperations
@ManagedResource
public class IntegrationMBeanExporter
extends MBeanExporter
implements ApplicationContextAware, DestructionAwareBeanPostProcessor
既存のアプリケーションの Spring Integration コンポーネント用の MBean エクスポーター。このインスタンスを Bean 定義として、監視する必要があるコンポーネントと同じコンテキストで追加すると、すべてのメッセージチャネルとメッセージハンドラーが公開されます。
チャネルは送信と受信に関するメトリクス (カウント、レート、エラー) を報告し、ハンドラーは実行期間に関するメトリクスを報告します。チャネルは、明示的である場合は名前 (Bean id) で登録され、フレームワークによって登録されている場合は内部名の最後の部分 (例: "nullChannel" ) で登録されます。エンドポイントにアタッチされているハンドラーは、エンドポイント名 (Bean id) がある場合はそのエンドポイント名で登録され、ない場合は入力チャネルの名前で登録されます。ハンドラーオブジェクト名には、名前のソースを報告する bean キーが含まれます。名前がエンドポイント ID の場合は "endpoint"、入力チャネルの場合は "anonymous"、フォールバックとして "handler" (オブジェクト名はハンドラーの toString() のみ) です。
このコンポーネント自体は MBean であり、チャネルとハンドラーの名前とオブジェクト名に関する属性を報告します。Spring の標準 <context:mbean-export/> との競合を回避するために、自身を登録しません(したがって、これらの機能を公開する必要があるときにいつでも使用する必要があります)。
- 作成者:
- Dave Syer, Helena Edelson, Oleg Zhurakousky, Gary Russell, Artem Bilan, Meherzad Lahewala
フィールドのサマリー
フィールドクラス org.springframework.jmx.export.MBeanExporter から継承されたフィールド
AUTODETECT_ALL, AUTODETECT_ASSEMBLER, AUTODETECT_MBEAN, AUTODETECT_NONEクラス org.springframework.jmx.support.MBeanRegistrationSupport から継承されたフィールド
logger, serverコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明voidvoidgetChannel(StringSE name) intStringSE[]getHandler(StringSE name) intStringSE[]intintStringSE[]protected final voidprotected final voidpostProcessAfterInitialization(ObjectSE bean, StringSE beanName) voidpostProcessBeforeDestruction(ObjectSE bean, StringSE beanName) booleanrequiresDestruction(ObjectSE bean) voidsetApplicationContext(ApplicationContext applicationContext) voidsetBeanFactory(BeanFactory beanFactory) voidsetComponentNamePatterns(StringSE[] componentNamePatterns) 登録するコンポーネント名の単純なパターンの配列を設定します(デフォルトは "*" )。voidsetDefaultDomain(StringSE domain) 登録された MBean に使用する JMX ドメイン。voidsetObjectNameStaticProperties(MapSE<StringSE, StringSE> objectNameStaticProperties) すべてのオブジェクト名に追加される静的プロパティ。voidvoidstopActiveComponents(long howLong) アクティブなコンポーネントをシャットダウンします。voidすべての受信メッセージプロデューサー(OrderlyShutdownCapable以外)を停止します。割り込みが発生する可能性があります。voidすべてのメッセージソースを停止します。割り込みが発生する可能性があります。クラス org.springframework.jmx.export.MBeanExporter から継承されたメソッド
adaptMBeanIfPossible, addExcludedBean, createAndConfigureMBean, createModelMBean, destroy, getObjectName, isBeanDefinitionLazyInit, isMBean, onRegister, onUnregister, registerBeanNameOrInstance, registerBeans, registerManagedResource, registerManagedResource, setAllowEagerInit, setAssembler, setAutodetect, setAutodetectMode, setAutodetectModeName, setBeanClassLoader, setBeans, setEnsureUniqueRuntimeObjectNames, setExcludedBeans, setExposeManagedResourceClassLoader, setListeners, setNamingStrategy, setNotificationListenerMappings, setNotificationListeners, unregisterManagedResourceクラス org.springframework.jmx.support.MBeanRegistrationSupport から継承されたメソッド
doRegister, doUnregister, getRegisteredObjectNames, getServer, onRegister, setRegistrationPolicy, setServer, unregisterBeansクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.beans.factory.config.BeanPostProcessor から継承されたメソッド
postProcessBeforeInitialization
フィールドの詳細
DEFAULT_DOMAIN
- 関連事項:
コンストラクターの詳細
IntegrationMBeanExporter
public IntegrationMBeanExporter()
メソッドの詳細
setObjectNameStaticProperties
setDefaultDomain
登録された MBean に使用する JMX ドメイン。デフォルトはspring.applicationです(これは SpringSource HQ で役立ちます)。- パラメーター:
domain- 設定するドメイン名
setComponentNamePatterns
登録するコンポーネント名の単純なパターンの配列を設定します(デフォルトは "*" )。パターンは、登録される前にすべてのコンポーネントに適用され、ObjectName の 'name' プロパティの一致を探します。MessageChannel と MessageHandler(たとえば)は型が異なるため、名前を共有できます。その場合、両方が含まれるか、両方が除外されます。バージョン 4.2 以降、先頭の "!" パターンマッチを無効にします('!foo *' は、名前がパターン 'foo *' に一致するコンポーネントをエクスポートしないことを意味します)。複数のパターンに一致する名前を持つコンポーネントの場合、最初のパターンが優先されます。- パラメーター:
componentNamePatterns- パターン。
setApplicationContext
- 次で指定:
- インターフェース
ApplicationContextAwareのsetApplicationContext - 例外:
BeansException
setBeanFactory
- 次で指定:
- インターフェース
BeanFactoryAwareのsetBeanFactory - オーバーライド:
- クラス
MBeanExporterのsetBeanFactory
afterPropertiesSet
public void afterPropertiesSet()- 次で指定:
- インターフェース
InitializingBeanのafterPropertiesSet - オーバーライド:
- クラス
MBeanExporterのafterPropertiesSet
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- 次で指定:
- インターフェース
SmartInitializingSingletonのafterSingletonsInstantiated - オーバーライド:
- クラス
MBeanExporterのafterSingletonsInstantiated
postProcessAfterInitialization
public ObjectSE postProcessAfterInitialization(ObjectSE bean, StringSE beanName) throws BeansException - 次で指定:
- インターフェース
BeanPostProcessorのpostProcessAfterInitialization - 例外:
BeansException
requiresDestruction
- 次で指定:
- インターフェース
DestructionAwareBeanPostProcessorのrequiresDestruction
postProcessBeforeDestruction
- 次で指定:
- インターフェース
DestructionAwareBeanPostProcessorのpostProcessBeforeDestruction - 例外:
BeansException
stopActiveComponents
アクティブなコンポーネントをシャットダウンします。- パラメーター:
howLong- すべてのアクティビティが完了するまでに合計でミリ秒単位で待機する時間。
stopMessageSources
すべてのメッセージソースを停止します。割り込みが発生する可能性があります。stopInboundMessageProducers
すべての受信メッセージプロデューサー(OrderlyShutdownCapable以外)を停止します。割り込みが発生する可能性があります。stopActiveChannels
orderlyShutdownCapableComponentsBefore
protected final void orderlyShutdownCapableComponentsBefore()orderlyShutdownCapableComponentsAfter
protected final void orderlyShutdownCapableComponentsAfter()getChannelCount
getHandlerCount
getSourceCount
getHandlerNames
getQueuedMessageCount
@ManagedMetric(metricType=GAUGE, displayName="Queued Message Count") public int getQueuedMessageCount()getChannelNames
getHandler
getSourceNames
getSource
getChannel