public final class EventTypeInfo extends Object
EventType.| Modifier and Type | Method | Description | 
|---|---|---|
| static EventTypeInfo | from | Returns an  EventTyperepresented by the specifiedCompositeData | 
| List | getCategoryNames() | Returns the list of human-readable names that makes up the category for this  EventTypeInfo(for example,"Java Virtual Machine"or"Garbage Collector"). | 
| String | getDescription() | Returns a short sentence or two describing the event type associated with this  EventTypeInfo, for example"Garbage collection performed by the JVM"". | 
| 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. | 
| String | getLabel() | Returns the label, a human-readable name, associated with the event type for this  EventTypeInfo(for example,"Garbage Collection"). | 
| String | getName() | Returns the name for the event type associated with this  EventTypeInfo(for example,"jdk.GarbageCollection"). | 
| List | getSettingDescriptors() | Returns settings for the event type associated with this  EventTypeInfo. | 
| String | toString() | Returns a description of this  EventTypeInfo. | 
public String getLabel()
EventTypeInfo (for example, "Garbage Collection").null if a label is not setpublic List<String> getCategoryNames()
EventTypeInfo (for example, "Java Virtual Machine" or "Garbage Collector")."Uncategorized" if no category has been setpublic long getId()
EventTypeInfo, not guaranteed to be the same for different Java Virtual Machines (JVMs) instances.public String getName()
EventTypeInfo (for example, "jdk.GarbageCollection").null
public String getDescription()
EventTypeInfo, for example "Garbage collection performed by the JVM"".null if no description existspublic List<SettingDescriptorInfo> getSettingDescriptors()
EventTypeInfo.null
public String toString()
EventTypeInfo.public static EventTypeInfo from(CompositeData cd)
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 Longname Stringlabel Stringdescription StringcategoryNames ArrayType(1, SimpleType.STRING)settingDescriptors javax.management.openmbean.CompositeData[]whose element type is the mapped type forSettingDescriptorInfoas specified in theSettingDescriptorInfo.from(javax.management.openmbean.CompositeData)method.
cd - CompositeData representing the EventTypeInfo to returnEventTypeInfo, or null if cd is null
IllegalArgumentException - if cd does not represent a valid EventTypeInfo
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/jdk.management.jfr/jdk/management/jfr/EventTypeInfo.html