Top Description Fields Constructors Methods
jdk.management.jfr

public final Class EventTypeInfo

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collections, .List, .StringJoiner, javax.management.openmbean.CompositeData, jdk.jfr.Category, .EventType, .SettingDescriptor

Management representation of an EventType.
Since
9
See Also
EventType

Field Summary

Modifier and TypeField and Description
private final List<String>
private final String
private final long
private final String
private final String
private final List<SettingDescriptorInfo>

Constructor Summary

AccessConstructor and Description
pack-priv
private

Method Summary

Modifier and TypeMethod and Description
private static List<String>
private static List<SettingDescriptorInfo>
private static List<SettingDescriptorInfo>
public static EventTypeInfo

Returns:

an EventTypeInfo, or null if cd is null
from
(CompositeData
CompositeData representing the EventTypeInfo to return
cd
)

Returns an EventType represented by the specified CompositeData

The supplied CompositeData must have the following item names and item types to be valid.

public List<String>

Returns:

an immutable list of category names, or a list with the name "Uncategorized" if no category has been set
getCategoryNames
()

Returns the list of human-readable names that makes up the category for this EventTypeInfo (for example, "Java Virtual Machine" or "Garbage Collector").

public String

Returns:

the description, or null if no description exists
getDescription
()

Returns a short sentence or two describing the event type associated with this EventTypeInfo, for example "Garbage collection performed by the JVM"".

public long

Returns:

the ID
getId
()

Returns the unique ID for the event type associated with this EventTypeInfo, not guaranteed to be the same for different Java Virtual Machines (JVMs) instances.

public String

Returns:

the label, or null if a label is not set
getLabel
()

Returns the label, a human-readable name, associated with the event type for this EventTypeInfo (for example, "Garbage Collection").

public String

Returns:

the name, not null
getName
()

Returns the name for the event type associated with this EventTypeInfo (for example, "jdk.GarbageCollection").

public List<SettingDescriptorInfo>

Returns:

the settings, not null
getSettingDescriptors
()

Returns settings for the event type associated with this EventTypeInfo.

public String

Returns:

description, not null
toString
()

Overrides java.lang.Object.toString.

Returns a description of this EventTypeInfo.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

categoryNamesback to summary
private final List<String> categoryNames
descriptionback to summary
private final String description
idback to summary
private final long id
labelback to summary
private final String label
nameback to summary
private final String name
settingDescriptorsback to summary
private final List<SettingDescriptorInfo> settingDescriptors

Constructor Detail

EventTypeInfoback to summary
pack-priv EventTypeInfo(EventType eventType)
EventTypeInfoback to summary
private EventTypeInfo(CompositeData cd)

Method Detail

createCategoryNamesback to summary
private static List<String> createCategoryNames(Object[] array)
createSettingDescriptorsback to summary
private static List<SettingDescriptorInfo> createSettingDescriptors(Object settings)
creatingSettingDescriptorInfosback to summary
private static List<SettingDescriptorInfo> creatingSettingDescriptorInfos(EventType eventType)
fromback to summary
public static EventTypeInfo from(CompositeData cd)

Returns an EventType represented by the specified CompositeData

The supplied CompositeData must have the following item names and item types to be valid.

The name and type the specified CompositeData must contain
Name Type
id Long
name String
label String
description String
categoryNames ArrayType(1, SimpleType.STRING)
settingDescriptors javax.management.openmbean.CompositeData[] whose element type is the mapped type for SettingDescriptorInfo as specified in the SettingDescriptorInfo#from method.
Parameters
cd:CompositeData

CompositeData representing the EventTypeInfo to return

Returns:EventTypeInfo

an EventTypeInfo, or null if cd is null

Exceptions
IllegalArgumentException:
if cd does not represent a valid EventTypeInfo
getCategoryNamesback to summary
public List<String> getCategoryNames()

Returns the list of human-readable names that makes up the category for this EventTypeInfo (for example, "Java Virtual Machine" or "Garbage Collector").

Returns:List<String>

an immutable list of category names, or a list with the name "Uncategorized" if no category has been set

See Also
EventType#getCategoryNames(), Category
getDescriptionback to summary
public String getDescription()

Returns a short sentence or two describing the event type associated with this EventTypeInfo, for example "Garbage collection performed by the JVM"".

Returns:String

the description, or null if no description exists

See Also
EventType#getDescription()
getIdback to summary
public long getId()

Returns the unique ID for the event type associated with this EventTypeInfo, not guaranteed to be the same for different Java Virtual Machines (JVMs) instances.

Returns:long

the ID

See Also
EventType#getId()
getLabelback to summary
public String getLabel()

Returns the label, a human-readable name, associated with the event type for this EventTypeInfo (for example, "Garbage Collection").

Returns:String

the label, or null if a label is not set

See Also
EventType#getLabel()
getNameback to summary
public String getName()

Returns the name for the event type associated with this EventTypeInfo (for example, "jdk.GarbageCollection").

Returns:String

the name, not null

See Also
EventType#getName()
getSettingDescriptorsback to summary
public List<SettingDescriptorInfo> getSettingDescriptors()

Returns settings for the event type associated with this EventTypeInfo.

Returns:List<SettingDescriptorInfo>

the settings, not null

See Also
EventType#getSettingDescriptors()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a description of this EventTypeInfo.

Returns:String

description, not null

Annotations
@Override