Class DIEvent

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ALEvent, CIEvent

    public class DIEvent
    extends java.lang.Object
    implements java.io.Serializable
    This class is the object that describes the event that have been triggered. Its purpose is to be a general event information carrier.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String EVT_AL_MSG
      A constant value used to tell the type of the DIEvent object.
      static java.lang.String EVT_AL_START
      A constant value used to tell the type of the DIEvent object.
      static java.lang.String EVT_AL_STOP
      A constant value used to tell the type of the DIEvent object.
      static java.lang.String EVT_CI_START
      A constant value used to tell the type of the DIEvent object.
      static java.lang.String EVT_CI_STOP
      A constant value used to tell the type of the DIEvent object.
      static java.lang.String EVT_CI_UPDATED
      A constant value used to tell the type of the DIEvent object.
      static java.lang.String EVT_SRV_STOP
      A constant value used to tell the type of the DIEvent object.
      static java.lang.String EVT_USER_PREFIX
      If the type of the DIEvent starts with this prefix then it means that the this is a custom user defined event that have been triggered.
    • Constructor Summary

      Constructors 
      Constructor Description
      DIEvent​(java.lang.String aType, java.lang.String aId, java.lang.Object aData)
      Create a new DIEvent instance.
      DIEvent​(java.lang.String aType, java.lang.String aId, java.lang.Object aData, java.lang.String aConfigInstanceId)
      Create a new DIEvent instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getConfigInstanceId()
      Retrieves the config instance ID.
      java.lang.Object getData()
      Retrives tha data from the object.
      java.util.Date getDateCreated()
      Retrieves the cration of the DIEvent
      java.lang.String getId()
      Retrieves the ID of the DIEvent
      java.lang.String getType()
      Retrieves the type of the event.
      java.lang.String toString()
      Converts the event to a readable output.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getType

        public java.lang.String getType()
        Retrieves the type of the event.
        Returns:
        the type of this event.
      • getConfigInstanceId

        public java.lang.String getConfigInstanceId()
        Retrieves the config instance ID.
        Returns:
        the identifier of the configInstance in which the event had occurred, or null if the event had occurred in different place.
      • getId

        public java.lang.String getId()
        Retrieves the ID of the DIEvent
        Returns:
        the identifier of this DIEvent instance.
      • getData

        public java.lang.Object getData()
        Retrives tha data from the object.
        Returns:
        the information this object carries.
      • getDateCreated

        public java.util.Date getDateCreated()
        Retrieves the cration of the DIEvent
        Returns:
        the time this DIEvent object was created.
      • toString

        public java.lang.String toString()
        Converts the event to a readable output.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the String representation of this DIEvent object, containing all of its attributes.