Class EventInfo

java.lang.Object
org.netxms.client.events.EventInfo

public class EventInfo extends Object
Information about NetXMS event
  • Constructor Details

    • EventInfo

      public EventInfo(NXCPMessage msg, long baseId, EventInfo parent)
      Create from NXCP message.
      Parameters:
      msg - NXCP message
      baseId - base field ID
      parent - parent event (the one this event is correlated to) or null
  • Method Details

    • getId

      public long getId()
      Get unique event ID.
      Returns:
      unique event ID
    • getParent

      public EventInfo getParent()
      Get parent event.
      Returns:
      parent event or null
    • getTimeStamp

      public Date getTimeStamp()
      Returns:
      the timeStamp
    • getSourceObjectId

      public long getSourceObjectId()
      Returns:
      the sourceObjectId
    • getCode

      public int getCode()
      Returns:
      the code
    • getName

      public String getName()
      Get event name
      Returns:
      event name
    • getSeverity

      public int getSeverity()
      Returns:
      the severity
    • getMessage

      public String getMessage()
      Returns:
      the message
    • getChildren

      public EventInfo[] getChildren()
      Returns:
      the children
    • hasChildren

      public boolean hasChildren()
      Check if this object has children
      Returns:
      true if this object has children