Class EventTypeInfo



  • public final class EventTypeInfo
    extends Object
    Management representation of an EventType.
    Since:
    9
    See Also:
    EventType
    • Method Detail

      • getLabel

        public String getLabel​()
        Returns the label, a human-readable name, associated with the event type for this EventTypeInfo, for example "Garbage Collection".
        Returns:
        the label
        See Also:
        EventType.getLabel()
      • getCategoryNames

        public List<String> getCategoryNames​()
        Returns the list of human-readable names that makes up the category for this event type, for instance "Java Virtual Machine", "Garbage Collector".
        Returns:
        an immutable list of category names, or a list with the name "Uncategorized" if no category has been set
        See Also:
        EventType.getCategoryNames(), Category
      • getId

        public long getId​()
        Returns the unique numeric id for the event type associated with this EventTypeInfo, not guaranteed to be the same for different JVM instances.
        Returns:
        the id
        See Also:
        EventType.getId()
      • getName

        public String getName​()
        Returns the name for the event type associated with this EventTypeInfo, for example "com.oracle.jdk.GarbageCollection".
        Returns:
        the name
        See Also:
        EventType.getName()
      • getDescription

        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:
        the description, or null if no description exists
        See Also:
        EventType.getDescription()
      • from

        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.

        Name Type
        id Long
        name String
        label String
        description String
        category ArrayType(1, SimpleType.STRING)
        settings javax.management.openmbean.CompositeData[] whose element type is the mapped type for SettingDescriptorInfo as specified in the SettingDescriptorInfo.from(javax.management.openmbean.CompositeData) method.
        Parameters:
        cd - CompositeData representing the EventTypeInfo to return
        Returns:
        an EventTypeInfo, or null if cd is null
        Throws:
        IllegalArgumentException - if cd does not represent a valid EventTypeInfo