java.lang.Object
jdk.management.jfr.EventTypeInfo
Management representation of an 
EventType.- Since:
- 9
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionstatic EventTypeInfofrom(CompositeData cd) Returns anEventTyperepresented by the specifiedCompositeDataReturns the list of human-readable names that makes up the category for thisEventTypeInfo(for example,"Java Virtual Machine"or"Garbage Collector").Returns a short sentence or two describing the event type associated with thisEventTypeInfo, for example"Garbage collection performed by the JVM"".longgetId()Returns the unique ID for the event type associated with thisEventTypeInfo, not guaranteed to be the same for different Java Virtual Machines (JVMs) instances.getLabel()Returns the label, a human-readable name, associated with the event type for thisEventTypeInfo(for example,"Garbage Collection").getName()Returns the name for the event type associated with thisEventTypeInfo(for example,"jdk.GarbageCollection").Returns settings for the event type associated with thisEventTypeInfo.toString()Returns a description of thisEventTypeInfo.
- 
Method Details- 
getLabelReturns the label, a human-readable name, associated with the event type for thisEventTypeInfo(for example,"Garbage Collection").- Returns:
- the label, or nullif a label is not set
- See Also:
 
- 
getCategoryNamesReturns the list of human-readable names that makes up the category for thisEventTypeInfo(for example,"Java Virtual Machine"or"Garbage Collector").- Returns:
- an immutable list of category names, or a list with the name
         "Uncategorized"if no category has been set
- See Also:
 
- 
getIdpublic long getId()Returns the unique ID for the event type associated with thisEventTypeInfo, not guaranteed to be the same for different Java Virtual Machines (JVMs) instances.- Returns:
- the ID
- See Also:
 
- 
getNameReturns the name for the event type associated with thisEventTypeInfo(for example,"jdk.GarbageCollection").- Returns:
- the name, not null
- See Also:
 
- 
getDescriptionReturns a short sentence or two describing the event type associated with thisEventTypeInfo, for example"Garbage collection performed by the JVM"".- Returns:
- the description, or nullif no description exists
- See Also:
 
- 
getSettingDescriptorsReturns settings for the event type associated with thisEventTypeInfo.- Returns:
- the settings, not null
- See Also:
 
- 
toStringReturns a description of thisEventTypeInfo.
- 
fromReturns anEventTyperepresented by the specifiedCompositeDataThe supplied CompositeDatamust 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 Stringcategory ArrayType(1, SimpleType.STRING)settings javax.management.openmbean.CompositeData[]whose element type is the mapped type forSettingDescriptorInfoas specified in theSettingDescriptorInfo.from(javax.management.openmbean.CompositeData)method.- Parameters:
- cd-- CompositeDatarepresenting the- EventTypeInfoto return
- Returns:
- an EventTypeInfo, ornullifcdisnull
- Throws:
- IllegalArgumentException- if- cddoes not represent a valid- EventTypeInfo
 
 
-