public class MetadataMBeanInfoAssembler extends AbstractReflectiveMBeanInfoAssembler implements AutodetectCapableMBeanInfoAssembler, InitializingBean
MBeanInfoAssembler インターフェースの実装。JmxAttributeSource 戦略インターフェースを使用するため、サポートされている実装を使用してメタデータを読み取ることができます。すぐに使える Spring は、アノテーションに基づく実装 AnnotationJmxAttributeSource を提供します。
setAttributeSource(org.springframework.jmx.export.metadata.JmxAttributeSource), AnnotationJmxAttributeSourceATTRIBUTE_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| コンストラクターと説明 |
|---|
MetadataMBeanInfoAssembler()setAttributeSource(org.springframework.jmx.export.metadata.JmxAttributeSource) メソッドを介して構成する必要がある新しい MetadataMBeanInfoAssembler を作成します。 |
MetadataMBeanInfoAssembler(JmxAttributeSource attributeSource) 指定された JmxAttributeSource の新しい MetadataMBeanInfoAssembler を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | afterPropertiesSet() |
protected void | checkManagedBean(java.lang.Object managedBean)JDK 動的プロキシが検出された場合、IllegalArgumentException をスローします。 |
protected java.lang.String | getAttributeDescription(java.beans.PropertyDescriptor propertyDescriptor, java.lang.String beanKey) このプロパティ記述子に対応する属性の説明を作成します。 |
protected java.lang.String | getDescription(java.lang.Object managedBean, java.lang.String beanKey) ソースレベルのメタデータから管理対象リソースの説明を読み取ります。 |
protected javax.management.modelmbean.ModelMBeanNotificationInfo[] | getNotificationInfo(java.lang.Object managedBean, java.lang.String beanKey) |
protected java.lang.String | getOperationDescription(java.lang.reflect.Method method, java.lang.String beanKey) メタデータから、指定された Method の説明を取得します。 |
protected javax.management.MBeanParameterInfo[] | getOperationParameters(java.lang.reflect.Method method, java.lang.String beanKey) メソッドにアタッチされた ManagedOperationParameter 属性から MBeanParameterInfo を読み取ります。 |
boolean | includeBean(java.lang.Class<?> beanClass, java.lang.String beanName)Bean の自動検出に使用されます。 |
protected boolean | includeOperation(java.lang.reflect.Method method, java.lang.String beanKey) オペレーションの包含に関する投票。 |
protected boolean | includeReadAttribute(java.lang.reflect.Method method, java.lang.String beanKey) 属性アクセサーを含めることに投票します。 |
protected boolean | includeWriteAttribute(java.lang.reflect.Method method, java.lang.String beanKey) 属性ミューテーターの包含に関する投票。 |
protected void | populateAttributeDescriptor(javax.management.Descriptor desc, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.String beanKey)ManagedAttribute 属性または ManagedMetric 属性の記述子フィールドを属性記述子に追加します。 |
protected void | populateMBeanDescriptor(javax.management.Descriptor desc, java.lang.Object managedBean, java.lang.String beanKey)ManagedResource 属性の記述子フィールドを MBean 記述子に追加します。 |
protected void | populateOperationDescriptor(javax.management.Descriptor desc, java.lang.reflect.Method method, java.lang.String beanKey)ManagedAttribute 属性から属性記述子に記述子フィールドを追加します。 |
void | setAttributeSource(JmxAttributeSource attributeSource)Bean クラスからメタデータを読み取るために使用する JmxAttributeSource 実装を設定します。 |
applyCurrencyTimeLimit, applyDefaultCurrencyTimeLimit, createModelMBeanOperationInfo, getAttributeInfo, getClassForDescriptor, getDefaultCurrencyTimeLimit, getOperationInfo, getParameterNameDiscoverer, isExposeClassDescriptor, isUseStrictCasing, setDefaultCurrencyTimeLimit, setExposeClassDescriptor, setParameterNameDiscoverer, setUseStrictCasinggetClassName, getClassToExpose, getClassToExpose, getConstructorInfo, getMBeanInfo, getTargetClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMBeanInfopublic MetadataMBeanInfoAssembler()
setAttributeSource(org.springframework.jmx.export.metadata.JmxAttributeSource) メソッドを介して構成する必要がある新しい MetadataMBeanInfoAssembler を作成します。public MetadataMBeanInfoAssembler(JmxAttributeSource attributeSource)
JmxAttributeSource の新しい MetadataMBeanInfoAssembler を作成します。attributeSource - 使用する JmxAttributeSourcepublic void setAttributeSource(JmxAttributeSource attributeSource)
JmxAttributeSource 実装を設定します。public void afterPropertiesSet()
InitializingBeanBeanFactoryAware、ApplicationContextAware などを満たした後、包含 BeanFactory によって呼び出されます。このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。
InitializingBean 内の afterPropertiesSet protected void checkManagedBean(java.lang.Object managedBean)
throws java.lang.IllegalArgumentExceptionAbstractMBeanInfoAssembler の checkManagedBean managedBean - 公開される Bean (AOP プロキシである可能性があります)java.lang.IllegalArgumentException - Bean は露出には無効です public boolean includeBean(java.lang.Class<?> beanClass,
java.lang.String beanName)ManagedResource 属性があるかどうかを確認します。含まれている場合は、含まれている Bean のリストを追加します。AutodetectCapableMBeanInfoAssembler 内の includeBean beanClass - Bean のクラス beanName - Bean ファクトリ内の Bean の名前 protected boolean includeReadAttribute(java.lang.reflect.Method method,
java.lang.String beanKey)AbstractReflectiveMBeanInfoAssembler の includeReadAttribute method - アクセサーメソッド beanKey - Beans マップで MBean に関連付けられているキー protected boolean includeWriteAttribute(java.lang.reflect.Method method,
java.lang.String beanKey)AbstractReflectiveMBeanInfoAssembler の includeWriteAttribute method - ミューテーターメソッド beanKey - Beans マップで MBean に関連付けられているキー protected boolean includeOperation(java.lang.reflect.Method method,
java.lang.String beanKey)AbstractReflectiveMBeanInfoAssembler の includeOperation method - 操作方法 beanKey - Beans マップで MBean に関連付けられているキー protected java.lang.String getDescription(java.lang.Object managedBean,
java.lang.String beanKey)String を返します。AbstractMBeanInfoAssembler の getDescription managedBean - Bean インスタンス (AOP プロキシである可能性があります)beanKey - MBeanExporter の Bean マップで MBean に関連付けられているキー protected java.lang.String getAttributeDescription(java.beans.PropertyDescriptor propertyDescriptor,
java.lang.String beanKey)AbstractReflectiveMBeanInfoAssembler の getAttributeDescription propertyDescriptor - 属性の PropertyDescriptorbeanKey - MBeanExporter の Bean マップで MBean に関連付けられているキー protected java.lang.String getOperationDescription(java.lang.reflect.Method method,
java.lang.String beanKey)Method の説明を取得します。メタデータに説明が存在しないメソッド名を使用します。AbstractReflectiveMBeanInfoAssembler の getOperationDescription method - 操作方法 beanKey - MBeanExporter の Bean マップで MBean に関連付けられているキー protected javax.management.MBeanParameterInfo[] getOperationParameters(java.lang.reflect.Method method,
java.lang.String beanKey)ManagedOperationParameter 属性から MBeanParameterInfo を読み取ります。属性が見つからない場合、MBeanParameterInfo の空の配列を返します。AbstractReflectiveMBeanInfoAssembler の getOperationParameters method - パラメーター情報を取得する Method beanKey - MBeanExporter の Bean マップで MBean に関連付けられているキー MBeanParameterInfo 配列 protected javax.management.modelmbean.ModelMBeanNotificationInfo[] getNotificationInfo(java.lang.Object managedBean,
java.lang.String beanKey)AbstractMBeanInfoAssembler の getNotificationInfo managedBean - Bean インスタンス (AOP プロキシである可能性があります)beanKey - MBeanExporter の Bean マップで MBean に関連付けられているキー protected void populateMBeanDescriptor(javax.management.Descriptor desc,
java.lang.Object managedBean,
java.lang.String beanKey)ManagedResource 属性から MBean 記述子に記述子フィールドを追加します。具体的には、currencyTimeLimit、persistPolicy、persistPeriod、persistLocation、persistName 記述子フィールドがメタデータに存在する場合はそれらを追加します。AbstractReflectiveMBeanInfoAssembler の populateMBeanDescriptor desc - MBean リソースの Descriptor。managedBean - Bean インスタンス (AOP プロキシである可能性があります)beanKey - MBeanExporter の Bean マップで MBean に関連付けられているキー AbstractReflectiveMBeanInfoAssembler.setDefaultCurrencyTimeLimit(Integer), AbstractReflectiveMBeanInfoAssembler.applyDefaultCurrencyTimeLimit(javax.management.Descriptor)protected void populateAttributeDescriptor(javax.management.Descriptor desc,
@Nullable
java.lang.reflect.Method getter,
@Nullable
java.lang.reflect.Method setter,
java.lang.String beanKey)ManagedAttribute 属性または ManagedMetric 属性の記述子フィールドを属性記述子に追加します。AbstractReflectiveMBeanInfoAssembler の populateAttributeDescriptor desc - 属性記述子 getter - 属性のアクセサーメソッド setter - 属性のミューテーターメソッド beanKey - MBeanExporter の Bean マップで MBean に関連付けられているキー AbstractReflectiveMBeanInfoAssembler.setDefaultCurrencyTimeLimit(Integer), AbstractReflectiveMBeanInfoAssembler.applyDefaultCurrencyTimeLimit(javax.management.Descriptor)protected void populateOperationDescriptor(javax.management.Descriptor desc,
java.lang.reflect.Method method,
java.lang.String beanKey)ManagedAttribute 属性から属性記述子に記述子フィールドを追加します。具体的には、メタデータに currencyTimeLimit 記述子フィールドが存在する場合は、それを追加します。AbstractReflectiveMBeanInfoAssembler の populateOperationDescriptor desc - 操作記述子 method - 操作に対応するメソッド beanKey - MBeanExporter の Bean マップで MBean に関連付けられているキー AbstractReflectiveMBeanInfoAssembler.setDefaultCurrencyTimeLimit(Integer), AbstractReflectiveMBeanInfoAssembler.applyDefaultCurrencyTimeLimit(javax.management.Descriptor)