クラス 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
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明void
void
getChannel
(StringSE name) int
StringSE[]
getHandler
(StringSE name) int
StringSE[]
int
int
StringSE[]
protected final void
protected final void
postProcessAfterInitialization
(ObjectSE bean, StringSE beanName) void
postProcessBeforeDestruction
(ObjectSE bean, StringSE beanName) boolean
requiresDestruction
(ObjectSE bean) void
setApplicationContext
(ApplicationContext applicationContext) void
setBeanFactory
(BeanFactory beanFactory) void
setComponentNamePatterns
(StringSE[] componentNamePatterns) 登録するコンポーネント名の単純なパターンの配列を設定します(デフォルトは "*" )。void
setDefaultDomain
(StringSE domain) 登録された MBean に使用する JMX ドメイン。void
setObjectNameStaticProperties
(MapSE<StringSE, StringSE> objectNameStaticProperties) すべてのオブジェクト名に追加される静的プロパティ。void
void
stopActiveComponents
(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