|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.management.MBeanFeatureInfo
javax.management.MBeanAttributeInfo
javax.management.modelmbean.ModelMBeanAttributeInfo
public class ModelMBeanAttributeInfo
ModelMBeanAttributeInfo オブジェクトは、ModelMBean の属性を記述します。これは、関連 Descriptor を持ち、DescriptorAccess インタフェースを実装した MBeanAttributeInfo のサブクラスです。
記述子内のフィールドは以下のように定義済みですが、この内容に限定されません。
name :属性名
descriptorType :必ず attribute
value :属性の現在の値
default:属性のデフォルト値
displayName :ディスプレイで使用される属性の名前
getMethod :取得メソッドのオペレーション記述子の名前
setMethod :設定メソッドのオペレーション記述子の名前
protocolMap :Descriptor を実装するオブジェクト interface:属性に適したマッピングでなければならない。
エントリは実行時に更新または追加可能
persistPolicy :OnUpdate、OnTimer、NoMoreOftenThan、OnUnregister、Always、Never
persistPeriod :持続サイクルの頻度を表す秒数。persistPolicy が OnTimer または NoMoreOftenThan のとき使用
currencyTimeLimit :値の有効期間。<0 無効、=0 常に有効、>0 秒
lastUpdatedTimeStamp :値が設定された時刻
visibility :1 〜 4 の値のうち 1:常に可視 4:ほとんど不可視
presentationString :データ表現を可能にするための XML 形式の文字列
デフォルトの記述子には、name、descriptorType、および displayName フィールドが含まれます。
注: 以前のバージョンの仕様との不整合があるため、currencyTimeLimit にはゼロ以下の値を使用しないようにしてください。キャッシュに入った値が有効でないことを示したい場合は、currencyTimeLimit フィールドを省略します。この値が常に有効であることを示したい場合は、このフィールドに非常に大きい値を指定します。
このクラスの serialVersionUID は 6181543027787327345L です。
| フィールドの概要 |
|---|
| クラス javax.management.MBeanFeatureInfo から継承されたフィールド |
|---|
description, name |
| コンストラクタの概要 | |
|---|---|
ModelMBeanAttributeInfo(ModelMBeanAttributeInfo inInfo)
この ModelMBeanAttributeInfo Object から新しい ModelMBeanAttributeInfo オブジェクトを構築します。 |
|
ModelMBeanAttributeInfo(String name,
String description,
Method getter,
Method setter)
デフォルトの記述子で ModelMBeanAttributeInfo オブジェクトを構築します。 |
|
ModelMBeanAttributeInfo(String name,
String description,
Method getter,
Method setter,
Descriptor descriptor)
ModelMBeanAttributeInfo オブジェクトを構築します。 |
|
ModelMBeanAttributeInfo(String name,
String type,
String description,
boolean isReadable,
boolean isWritable,
boolean isIs)
デフォルトの記述子で ModelMBeanAttributeInfo オブジェクトを構築します。 |
|
ModelMBeanAttributeInfo(String name,
String type,
String description,
boolean isReadable,
boolean isWritable,
boolean isIs,
Descriptor descriptor)
デフォルトの記述子で ModelMBeanAttributeInfo オブジェクトを構築します。 |
|
| メソッドの概要 | |
|---|---|
Object |
clone()
この ModelMBeanAttributeInfo を複製して新しい ModelMBeanAttributeInfo を作成し、返します。 |
Descriptor |
getDescriptor()
ModelMBeanAttributeInfo に関連付けられた Descriptor のコピーを取得します。 |
void |
setDescriptor(Descriptor inDescriptor)
ModelMBeanAttributeDescriptor に関連付けられた Descriptor (完全置換) を設定します。 |
String |
toString()
人間が読める形式の ModelMBeanAttributeInfo インスタンスを返します。 |
| クラス javax.management.MBeanAttributeInfo から継承されたメソッド |
|---|
equals, getType, hashCode, isIs, isReadable, isWritable |
| クラス javax.management.MBeanFeatureInfo から継承されたメソッド |
|---|
getDescription, getName |
| クラス java.lang.Object から継承されたメソッド |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public ModelMBeanAttributeInfo(String name,
String description,
Method getter,
Method setter)
throws IntrospectionException
Descriptor には、DescriptorKey メタ注釈を含む Method オブジェクト上の注釈が寄与するフィールドが含まれます。
name - 属性の名前description - 人間が読める形式の属性の説明省略可能getter - 属性値の読み込みに使用するメソッド。
属性が書き込み専用の場合は nullsetter - 属性値の書き込みに使用するメソッド。
属性が読み取り専用の場合は null
IntrospectionException - この属性の定義に整合性の問題がある場合
public ModelMBeanAttributeInfo(String name,
String description,
Method getter,
Method setter,
Descriptor descriptor)
throws IntrospectionException
Descriptor には、DescriptorKey メタ注釈を含む Method オブジェクト上の注釈が寄与するフィールドが含まれます。
name - 属性の名前description - 人間が読める形式の属性の説明省略可能getter - 属性値の読み込みに使用するメソッド。
属性が書き込み専用の場合は nullsetter - 属性値の書き込みに使用するメソッド。
属性が読み取り専用の場合は nulldescriptor - この Attribute インスタンス用として適切なメタデータを含む
Descriptor インスタンス。null の場合、デフォルトの記述子が作成される。
displayName フィールドを持たない記述子には、displayName フィールドがデフォルト値で追加される
IntrospectionException - この属性の定義に整合性の問題がある場合
RuntimeOperationsException - IllegalArgumentException をラップする。記述子が無効である場合、記述子フィールド name が
name パラメータと等しくない場合、または記述子フィールド DescriptorType が attribute と等しくない場合
public ModelMBeanAttributeInfo(String name,
String type,
String description,
boolean isReadable,
boolean isWritable,
boolean isIs)
name - 属性の名前type - 属性の型またはクラス名description - 人間が読める形式の属性の説明isReadable - 属性が取得メソッドを持つ場合は true、そうでない場合は falseisWritable - 属性が設定メソッドを持つ場合は true、そうでない場合は falseisIs - 属性が is 取得メソッドを持つ場合は true、そうでない場合は false
public ModelMBeanAttributeInfo(String name,
String type,
String description,
boolean isReadable,
boolean isWritable,
boolean isIs,
Descriptor descriptor)
name - 属性の名前type - 属性の型またはクラス名description - 人間が読める形式の属性の説明isReadable - 属性が取得メソッドを持つ場合は true、そうでない場合は falseisWritable - 属性が設定メソッドを持つ場合は true、そうでない場合は falseisIs - 属性が is 取得メソッドを持つ場合は true、そうでない場合は falsedescriptor - この Attribute インスタンス用として適切なメタデータを含む
Descriptor インスタンス。null の場合、デフォルトの記述子が作成される。
displayName フィールドを持たない記述子には、displayName フィールドがデフォルト値で追加される
RuntimeOperationsException - IllegalArgumentException をラップする。記述子が無効である場合、記述子フィールド name が
name パラメータと等しくない場合、または記述子フィールド DescriptorType が attribute と等しくない場合public ModelMBeanAttributeInfo(ModelMBeanAttributeInfo inInfo)
inInfo - 複製される ModelMBeanAttributeInfo| メソッドの詳細 |
|---|
public Descriptor getDescriptor()
DescriptorRead 内の getDescriptorMBeanFeatureInfo 内の getDescriptorsetDescriptor(javax.management.Descriptor)public void setDescriptor(Descriptor inDescriptor)
DescriptorAccess 内の setDescriptorinDescriptor - ModelMBeanAttributeInfo に関連付けられた Descriptor を
置換する
RuntimeOperationsException - 無効な Descriptor の
IllegalArgumentException をラップするgetDescriptor()public Object clone()
MBeanAttributeInfo 内の cloneRuntimeOperationsException - フィールド名またはフィールド値が不正である場合。
なんらかの理由で記述子の作成に失敗した場合、この例外がスローされるCloneablepublic String toString()
MBeanAttributeInfo 内の toString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。