クラス MetadataMBeanInfoAssembler
java.lang.ObjectSE
org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler
org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler
org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler
- 実装されているすべてのインターフェース:
InitializingBean、AutodetectCapableMBeanInfoAssembler、MBeanInfoAssembler
public class MetadataMBeanInfoAssembler
extends AbstractReflectiveMBeanInfoAssembler
implements AutodetectCapableMBeanInfoAssembler, InitializingBean
ソースレベルのメタデータから管理インターフェース情報を読み取る
MBeanInfoAssembler インターフェースの実装。JmxAttributeSource 戦略インターフェースを使用するため、サポートされている実装を使用してメタデータを読み取ることができます。すぐに使える Spring は、アノテーションに基づく実装 AnnotationJmxAttributeSource を提供します。
- 導入:
- 1.2
- 作成者:
- Rob Harrop, Juergen Hoeller, Jennifer Hickey
- 関連事項:
フィールドのサマリー
クラス org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler から継承されたフィールド
ATTRIBUTE_OPERATION_VISIBILITY, FIELD_CLASS, FIELD_CURRENCY_TIME_LIMIT, FIELD_DEFAULT, FIELD_DISPLAY_NAME, FIELD_GET_METHOD, FIELD_LOG, FIELD_LOG_FILE, FIELD_METRIC_CATEGORY, FIELD_METRIC_TYPE, FIELD_PERSIST_LOCATION, FIELD_PERSIST_NAME, FIELD_PERSIST_PERIOD, FIELD_PERSIST_POLICY, FIELD_ROLE, FIELD_SET_METHOD, FIELD_UNITS, FIELD_VISIBILITY, ROLE_GETTER, ROLE_OPERATION, ROLE_SETTERコンストラクターの概要
コンストラクターコンストラクター説明setAttributeSource(org.springframework.jmx.export.metadata.JmxAttributeSource)メソッドを介して構成する必要がある新しいMetadataMBeanInfoAssemblerを作成します。MetadataMBeanInfoAssembler(JmxAttributeSource attributeSource) 指定されたJmxAttributeSourceの新しいMetadataMBeanInfoAssemblerを作成します。メソッドのサマリー
修飾子と型メソッド説明voidprotected voidcheckManagedBean(ObjectSE managedBean) JDK 動的プロキシが検出された場合、IllegalArgumentException をスローします。protected StringSEgetAttributeDescription(PropertyDescriptorSE propertyDescriptor, StringSE beanKey) このプロパティ記述子に対応する属性の説明を作成します。protected StringSEgetDescription(ObjectSE managedBean, StringSE beanKey) ソースレベルのメタデータから管理対象リソースの説明を読み取ります。protected ModelMBeanNotificationInfoSE[]getNotificationInfo(ObjectSE managedBean, StringSE beanKey) protected StringSEgetOperationDescription(MethodSE method, StringSE beanKey) メタデータから、指定されたMethodの説明を取得します。protected MBeanParameterInfoSE[]getOperationParameters(MethodSE method, StringSE beanKey) メソッドにアタッチされたManagedOperationParameter属性からMBeanParameterInfoを読み取ります。booleanincludeBean(ClassSE<?> beanClass, StringSE beanName) Bean の自動検出に使用されます。protected booleanincludeOperation(MethodSE method, StringSE beanKey) オペレーションの包含に関する投票。protected booleanincludeReadAttribute(MethodSE method, StringSE beanKey) 属性アクセサーを含めることに投票します。protected booleanincludeWriteAttribute(MethodSE method, StringSE beanKey) 属性ミューテーターの包含に関する投票。protected voidpopulateAttributeDescriptor(DescriptorSE desc, MethodSE getter, MethodSE setter, StringSE beanKey) ManagedAttribute属性またはManagedMetric属性の記述子フィールドを属性記述子に追加します。protected voidpopulateMBeanDescriptor(DescriptorSE desc, ObjectSE managedBean, StringSE beanKey) ManagedResource属性の記述子フィールドを MBean 記述子に追加します。protected voidpopulateOperationDescriptor(DescriptorSE desc, MethodSE method, StringSE beanKey) ManagedAttribute属性から属性記述子に記述子フィールドを追加します。voidsetAttributeSource(JmxAttributeSource attributeSource) Bean クラスからメタデータを読み取るために使用するJmxAttributeSource実装を設定します。クラス org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler から継承されたメソッド
applyCurrencyTimeLimit, applyDefaultCurrencyTimeLimit, createModelMBeanOperationInfo, getAttributeInfo, getClassForDescriptor, getDefaultCurrencyTimeLimit, getOperationInfo, getParameterNameDiscoverer, isExposeClassDescriptor, isUseStrictCasing, setDefaultCurrencyTimeLimit, setExposeClassDescriptor, setParameterNameDiscoverer, setUseStrictCasingクラス org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler から継承されたメソッド
getClassName, getClassToExpose, getClassToExpose, getConstructorInfo, getMBeanInfo, getTargetClassクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.jmx.export.assembler.MBeanInfoAssembler から継承されたメソッド
getMBeanInfo
コンストラクターの詳細
MetadataMBeanInfoAssembler
public MetadataMBeanInfoAssembler()setAttributeSource(org.springframework.jmx.export.metadata.JmxAttributeSource)メソッドを介して構成する必要がある新しいMetadataMBeanInfoAssemblerを作成します。MetadataMBeanInfoAssembler
指定されたJmxAttributeSourceの新しいMetadataMBeanInfoAssemblerを作成します。- パラメーター:
attributeSource- 使用する JmxAttributeSource
メソッドの詳細
setAttributeSource
Bean クラスからメタデータを読み取るために使用するJmxAttributeSource実装を設定します。afterPropertiesSet
public void afterPropertiesSet()インターフェースからコピーされた説明:InitializingBeanすべての Bean プロパティを設定し、BeanFactoryAware、ApplicationContextAwareなどを満たした後、包含BeanFactoryによって呼び出されます。このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。
- 次で指定:
- インターフェース
InitializingBeanのafterPropertiesSet
checkManagedBean
JDK 動的プロキシが検出された場合、IllegalArgumentException をスローします。メタデータはターゲットクラスと CGLIB プロキシからのみ読み取ることができます!- オーバーライド:
- クラス
AbstractMBeanInfoAssemblerのcheckManagedBean - パラメーター:
managedBean- 公開される Bean (AOP プロキシである可能性があります)- 例外:
IllegalArgumentExceptionSE- Bean は露出には無効です
includeBean
Bean の自動検出に使用されます。Bean のクラスにManagedResource属性があるかどうかを確認します。そうであれば、含まれる Bean のリストに追加されます。- 次で指定:
- インターフェース
AutodetectCapableMBeanInfoAssemblerのincludeBean - パラメーター:
beanClass- Bean のクラスbeanName- Bean ファクトリ内の Bean の名前
includeReadAttribute
属性アクセサーを含めることに投票します。- 次で指定:
- クラス
AbstractReflectiveMBeanInfoAssemblerのincludeReadAttribute - パラメーター:
method- アクセサーメソッドbeanKey- Beans マップで MBean に関連付けられているキー- 戻り値:
- メソッドに適切なメタデータがあるかどうか
includeWriteAttribute
属性ミューテーターの包含に関する投票。- 次で指定:
- クラス
AbstractReflectiveMBeanInfoAssemblerのincludeWriteAttribute - パラメーター:
method- ミューテーターメソッドbeanKey- Beans マップで MBean に関連付けられているキー- 戻り値:
- メソッドに適切なメタデータがあるかどうか
includeOperation
オペレーションの包含に関する投票。- 次で指定:
- クラス
AbstractReflectiveMBeanInfoAssemblerのincludeOperation - パラメーター:
method- 操作方法beanKey- Beans マップで MBean に関連付けられているキー- 戻り値:
- メソッドに適切なメタデータがあるかどうか
getDescription
ソースレベルのメタデータから管理対象リソースの説明を読み取ります。説明が見つからない場合は、空のStringを返します。- オーバーライド:
- クラス
AbstractMBeanInfoAssemblerのgetDescription - パラメーター:
managedBean- Bean インスタンス (AOP プロキシである可能性があります)beanKey-MBeanExporterの Bean マップで MBean に関連付けられているキー
getAttributeDescription
protected StringSE getAttributeDescription(PropertyDescriptorSE propertyDescriptor, StringSE beanKey) このプロパティ記述子に対応する属性の説明を作成します。getter または setter 属性のメタデータを使用して説明を作成しようとします。それ以外の場合は、プロパティ名を使用します。- オーバーライド:
- クラス
AbstractReflectiveMBeanInfoAssemblerのgetAttributeDescription - パラメーター:
propertyDescriptor- 属性の PropertyDescriptorbeanKey-MBeanExporterの Bean マップで MBean に関連付けられているキー- 戻り値:
- 属性の説明
getOperationDescription
メタデータから提供されたMethodの説明を取得します。メタデータに説明が存在しないメソッド名を使用します。- オーバーライド:
- クラス
AbstractReflectiveMBeanInfoAssemblerのgetOperationDescription - パラメーター:
method- 操作方法beanKey-MBeanExporterの Bean マップで MBean に関連付けられているキー- 戻り値:
- 操作の説明
getOperationParameters
メソッドにアタッチされたManagedOperationParameter属性からMBeanParameterInfoを読み取ります。属性が見つからない場合、MBeanParameterInfoの空の配列を返します。- オーバーライド:
- クラス
AbstractReflectiveMBeanInfoAssemblerのgetOperationParameters - パラメーター:
method- パラメーター情報を取得するMethodbeanKey-MBeanExporterの Bean マップで MBean に関連付けられているキー- 戻り値:
MBeanParameterInfo配列
getNotificationInfo
protected ModelMBeanNotificationInfoSE[] getNotificationInfo(ObjectSE managedBean, StringSE beanKey) - オーバーライド:
- クラス
AbstractMBeanInfoAssemblerのgetNotificationInfo - パラメーター:
managedBean- Bean インスタンス (AOP プロキシである可能性があります)beanKey-MBeanExporterの Bean マップで MBean に関連付けられているキー- 戻り値:
- 通知メタデータ
populateMBeanDescriptor
ManagedResource属性から MBean 記述子に記述子フィールドを追加します。具体的には、currencyTimeLimit、persistPolicy、persistPeriod、persistLocation、persistName記述子フィールドがメタデータに存在する場合はそれらを追加します。- オーバーライド:
- クラス
AbstractReflectiveMBeanInfoAssemblerのpopulateMBeanDescriptor - パラメーター:
desc- MBean リソースのDescriptor。managedBean- Bean インスタンス (AOP プロキシである可能性があります)beanKey-MBeanExporterの Bean マップで MBean に関連付けられているキー- 関連事項:
populateAttributeDescriptor
protected void populateAttributeDescriptor(DescriptorSE desc, @Nullable MethodSE getter, @Nullable MethodSE setter, StringSE beanKey) ManagedAttribute属性またはManagedMetric属性の記述子フィールドを属性記述子に追加します。- オーバーライド:
- クラス
AbstractReflectiveMBeanInfoAssemblerのpopulateAttributeDescriptor - パラメーター:
desc- 属性記述子getter- 属性のアクセサーメソッドsetter- 属性のミューテーターメソッドbeanKey-MBeanExporterの Bean マップで MBean に関連付けられているキー- 関連事項:
populateOperationDescriptor
ManagedAttribute属性から属性記述子に記述子フィールドを追加します。具体的には、メタデータにcurrencyTimeLimit記述子フィールドが存在する場合は、それを追加します。- オーバーライド:
- クラス
AbstractReflectiveMBeanInfoAssemblerのpopulateOperationDescriptor - パラメーター:
desc- 操作記述子method- 操作に対応するメソッドbeanKey-MBeanExporterの Bean マップで MBean に関連付けられているキー- 関連事項: