- java.lang.Object
-
- jdk.management.jfr.SettingDescriptorInfo
-
public final class SettingDescriptorInfo extends Object
名前、説明、デフォルト値などの設定を記述する管理クラス。- 導入されたバージョン:
- 9
- 関連項目:
EventType.getSettingDescriptors()
-
-
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 static SettingDescriptorInfofrom(CompositeData cd)指定されたCompositeDataで表されるSettingDescriptorInfoを返します。StringgetContentType()このSettingDescriptorInfoに関連付けられている設定のコンテンツ・タイプを返します(例:"jdk.jfr.Timespan")。StringgetDefaultValue()このSettingDescriptorInfoに関連付けられた設定のデフォルト値を返します(例:"20 ms")。StringgetDescription()このSettingDescriptorInfoに関連付けられた設定の説明を返します(例:"The duration an event must exceed to be be recorded")。StringgetLabel()この設定の人間が判読可能な名前を返します(例:"Threshold")。StringgetName()このSettingDescriptorInfoに関連付けられた設定の名前を返します(例:"threshold")。StringgetTypeName()このSettingDescriptorInfoに関連付けられた設定の型名を返します。たとえば、"com.oracle.jfr.settings.Threshold"です。StringtoString()このSettingDescriptorInfoの文字列の説明を返します。
-
-
-
メソッドの詳細
-
getLabel
public String getLabel()
この設定の人間が判読可能な名前を返します(例:"Threshold")。- 戻り値:
nullではなく、この設定のラベル
-
getName
public String getName()
このSettingDescriptorInfoに関連付けられた設定の名前を返します(例:"threshold")。- 戻り値:
nullではなく、この設定の名前
-
getDescription
public String getDescription()
このSettingDescriptorInfoに関連付けられた設定の説明を返します(例:"The duration an event must exceed to be be recorded")。- 戻り値:
- この設定の説明、nullではない
-
getTypeName
public String getTypeName()
このSettingDescriptorInfoに関連付けられた設定の型名を返します。たとえば、"com.oracle.jfr.settings.Threshold"です。このタイプは、これがどのタイプの設定であるかを識別するために使用できます。
- 戻り値:
nullではなく、この設定タイプの名前
-
getContentType
public String getContentType()
このSettingDescriptorInfoに関連付けられている設定のコンテンツ・タイプを返します(例:"jdk.jfr.Timespan")。コンテンツ・タイプを使用して、グラフィカル・ユーザー・インタフェースでの設定のレンダリング方法を決定することができます。
- 戻り値:
nullではなく、この設定タイプの名前
-
getDefaultValue
public String getDefaultValue()
このSettingDescriptorInfoに関連付けられた設定のデフォルト値を返します(例:"20 ms")。- 戻り値:
nullではなく、この設定のデフォルト値- 関連項目:
SettingDescriptor.getDefaultValue()
-
from
public static SettingDescriptorInfo from(CompositeData cd)
指定されたCompositeDataで表されるSettingDescriptorInfoを返します。提供された
CompositeDataには、以下のアイテム名とアイテム・タイプが有効である必要があります。名 型 name Stringlabel Stringdescription StringtypeName StringcontentType StringdefaultValue String- パラメータ:
cd- 返すSettingDescriptorInfoを表すCompositeData- 戻り値:
SettingDescriptorInfo、またはcdがnullの場合はnull- 例外:
IllegalArgumentException-cdが有効なEventTypeInfoを表していない場合
-
-