Class NotificationEvent

  • All Implemented Interfaces:
    CockpitEvent
    Direct Known Subclasses:
    NotificationEvent

    @Deprecated(since="1811",
                forRemoval=true)
    public class NotificationEvent
    extends java.lang.Object
    implements CockpitEvent
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 1811
    Communicates information across application.
    See Also:
    NotificationEvent
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NotificationEvent.Level
      Deprecated, for removal: This API element is subject to removal in a future version.
      Indicates severity level of the message.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String EVENT_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.lang.String EVENT_SOURCE_UNKNOWN
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static java.lang.String EVENT_TYPE_UNKNOWN
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 6.6
    • Constructor Summary

      Constructors 
      Constructor Description
      NotificationEvent​(java.lang.String source, java.lang.String eventType, NotificationEvent.Level level, java.lang.Object... referencedObjects)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      java.lang.Object getData()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      java.lang.String getEventType()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      NotificationEvent.Level getLevel()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      java.lang.String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      java.lang.Object[] getReferencedObjects()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      java.lang.String getSource()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EVENT_SOURCE_UNKNOWN

        public static final java.lang.String EVENT_SOURCE_UNKNOWN
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
      • EVENT_TYPE_UNKNOWN

        @Deprecated(since="6.6",
                    forRemoval=true)
        public static final java.lang.String EVENT_TYPE_UNKNOWN
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 6.6
        See Also:
        Constant Field Values
      • EVENT_NAME

        public static final java.lang.String EVENT_NAME
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
    • Constructor Detail

      • NotificationEvent

        public NotificationEvent​(java.lang.String source,
                                 java.lang.String eventType,
                                 NotificationEvent.Level level,
                                 java.lang.Object... referencedObjects)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parameters:
        source - identity of notification source
        eventType - type of event that has taken place
        level - importance level of notification
        referencedObjects - optional array of objects that were involved in the event
    • Method Detail

      • getLevel

        public NotificationEvent.Level getLevel()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns:
        importance level of notification
      • getName

        public java.lang.String getName()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        getName in interface CockpitEvent
        Returns:
        The name of the event.
      • getData

        public java.lang.Object getData()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        getData in interface CockpitEvent
        Returns:
        The data attached to the event. Can be null.
      • getSource

        public java.lang.String getSource()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        getSource in interface CockpitEvent
        Returns:
        The event source, i.e. the object which has fired the event. Can be null.
      • getEventType

        public java.lang.String getEventType()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns:
        type of event that has taken place
      • getReferencedObjects

        public java.lang.Object[] getReferencedObjects()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        hashCode in class java.lang.Object