クラス AnnotationJmxAttributeSource
java.lang.ObjectSE
org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource
- 実装されているすべてのインターフェース:
Aware, BeanFactoryAware, JmxAttributeSource
public class AnnotationJmxAttributeSource
extends ObjectSE
implements JmxAttributeSource, BeanFactoryAware
アノテーションを読み取り、対応する属性を公開する
JmxAttributeSource インターフェースの実装。- 導入:
- 1.2
- 作成者:
- Rob Harrop, Juergen Hoeller, Jennifer Hickey, Stephane Nicoll
- 関連事項:
コンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明getManagedAttribute(MethodSE method) 提供されたMethodに対応するメタデータがある場合、実装ではManagedAttributeのインスタンスを返す必要があります。getManagedMetric(MethodSE method) 提供されたMethodに対応するメタデータがある場合、実装ではManagedMetricのインスタンスを返す必要があります。getManagedNotifications(ClassSE<?> clazz) 提供されたClassに対応するメタデータがある場合、実装はManagedNotificationsの配列を返す必要があります。getManagedOperation(MethodSE method) 提供されたMethodに対応するメタデータがある場合、実装ではManagedOperationのインスタンスを返す必要があります。提供されたMethodに対応するメタデータがある場合、実装はManagedOperationParametersの配列を返す必要があります。getManagedResource(ClassSE<?> beanClass) 提供されたClassに対応するメタデータがある場合、実装ではManagedResourceのインスタンスを返す必要があります。voidsetBeanFactory(BeanFactory beanFactory) 所有ファクトリを Bean インスタンスに提供するコールバック。
コンストラクターの詳細
AnnotationJmxAttributeSource
public AnnotationJmxAttributeSource()
メソッドの詳細
setBeanFactory
インターフェースからコピーされた説明:BeanFactoryAware所有ファクトリを Bean インスタンスに提供するコールバック。通常の Bean プロパティの設定後、ただし
InitializingBean.afterPropertiesSet()またはカスタム init-method などの初期化コールバックの前に呼び出されます。- 次で指定:
- インターフェース
BeanFactoryAwareのsetBeanFactory - パラメーター:
beanFactory- 所有 BeanFactory(非null)。Bean は、ファクトリのメソッドをすぐに呼び出すことができます。- 関連事項:
getManagedResource
public @Nullable ManagedResource getManagedResource(ClassSE<?> beanClass) throws InvalidMetadataException インターフェースからコピーされた説明:JmxAttributeSource提供されたClassに対応するメタデータがある場合、実装ではManagedResourceのインスタンスを返す必要があります。- 次で指定:
- インターフェース
JmxAttributeSourceのgetManagedResource - パラメーター:
beanClass- リソースデータを読み取るクラス- 戻り値:
- リソース、見つからない場合は
null - 例外:
InvalidMetadataException- 無効なメタデータの場合
getManagedAttribute
public @Nullable ManagedAttribute getManagedAttribute(MethodSE method) throws InvalidMetadataException インターフェースからコピーされた説明:JmxAttributeSource提供されたMethodに対応するメタデータがある場合、実装ではManagedAttributeのインスタンスを返す必要があります。- 次で指定:
- インターフェース
JmxAttributeSourceのgetManagedAttribute - パラメーター:
method- 属性データを読み取るメソッド- 戻り値:
- 属性。見つからない場合は
null - 例外:
InvalidMetadataException- 無効なメタデータの場合
getManagedMetric
インターフェースからコピーされた説明:JmxAttributeSource提供されたMethodに対応するメタデータがある場合、実装ではManagedMetricのインスタンスを返す必要があります。- 次で指定:
- インターフェース
JmxAttributeSourceのgetManagedMetric - パラメーター:
method- メトリクスデータを読み取る方法- 戻り値:
- メトリクス、または見つからない場合は
null - 例外:
InvalidMetadataException- 無効なメタデータの場合
getManagedOperation
public @Nullable ManagedOperation getManagedOperation(MethodSE method) throws InvalidMetadataException インターフェースからコピーされた説明:JmxAttributeSource提供されたMethodに対応するメタデータがある場合、実装ではManagedOperationのインスタンスを返す必要があります。- 次で指定:
- インターフェース
JmxAttributeSourceのgetManagedOperation - パラメーター:
method- 操作データを読み取る方法- 戻り値:
- 操作、見つからない場合は
null - 例外:
InvalidMetadataException- 無効なメタデータの場合
getManagedOperationParameters
public @Nullable ManagedOperationParameter[] getManagedOperationParameters(MethodSE method) throws InvalidMetadataException インターフェースからコピーされた説明:JmxAttributeSource提供されたMethodに対応するメタデータがある場合、実装はManagedOperationParametersの配列を返す必要があります。- 次で指定:
- インターフェース
JmxAttributeSourceのgetManagedOperationParameters - パラメーター:
method- メタデータを読み取るMethod- 戻り値:
- パラメーター情報、またはメタデータが見つからない場合は空の配列
- 例外:
InvalidMetadataException- 無効なメタデータの場合
getManagedNotifications
public @Nullable ManagedNotification[] getManagedNotifications(ClassSE<?> clazz) throws InvalidMetadataException インターフェースからコピーされた説明:JmxAttributeSource提供されたClassに対応するメタデータがある場合、実装はManagedNotificationsの配列を返す必要があります。- 次で指定:
- インターフェース
JmxAttributeSourceのgetManagedNotifications - パラメーター:
clazz- メタデータを読み取るClass- 戻り値:
- 通知情報、またはメタデータが見つからない場合は空の配列
- 例外:
InvalidMetadataException- 無効なメタデータの場合