Package org.netxms.client.events
Class EventInfo
- java.lang.Object
-
- org.netxms.client.events.EventInfo
-
public class EventInfo extends Object
Information about NetXMS event
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventInfo[]getChildren()intgetCode()longgetId()StringgetMessage()StringgetName()Get event nameEventInfogetParent()intgetSeverity()longgetSourceObjectId()DategetTimeStamp()booleanhasChildren()Check if this object has children
-
-
-
Constructor Detail
-
EventInfo
public EventInfo(org.netxms.base.NXCPMessage msg, long baseId, EventInfo parent)Create from NXCP message.- Parameters:
msg-baseId-
-
-
Method Detail
-
getId
public long getId()
- Returns:
- the id
-
getParent
public EventInfo getParent()
- 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
-
-