Class EventTypeInfo
java.lang.Object
jdk.management.jfr.EventTypeInfo
Management representation of an
EventType.- Since:
- 9
- See Also:
-
Method Summary
Modifier 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.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Method Details
-
getLabel
Returns 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:
-
getCategoryNames
Returns 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:
-
getId
public 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:
-
getName
Returns the name for the event type associated with thisEventTypeInfo(for example,"jdk.GarbageCollection").- Returns:
- the name, not
null - See Also:
-
getDescription
Returns 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:
-
getSettingDescriptors
Returns settings for the event type associated with thisEventTypeInfo.- Returns:
- the settings, not
null - See Also:
-
toString
-
from
Returns 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 StringcategoryNames ArrayType(1, SimpleType.STRING)settingDescriptors javax.management.openmbean.CompositeData[]whose element type is the mapped type forSettingDescriptorInfoas specified in theSettingDescriptorInfo.from(CompositeData)method.- Parameters:
cd-CompositeDatarepresenting theEventTypeInfoto return- Returns:
- an
EventTypeInfo, ornullifcdisnull - Throws:
IllegalArgumentException- ifcddoes not represent a validEventTypeInfo
-