org.netxms.client.events
Class Event

java.lang.Object
  extended by org.netxms.client.events.Event

public class Event
extends java.lang.Object

Read-only representation of NetXMS event. Intended to be created only by client library communication module.


Constructor Summary
Event(NXCPMessage msg, long baseId)
          Create event object from NXCP message.
 
Method Summary
 int getCode()
           
 long getId()
           
 java.lang.String getMessage()
           
 java.lang.String[] getParameters()
           
 int getSeverity()
           
 long getSourceId()
           
 java.util.Date getTimeStamp()
           
 java.lang.String getUserTag()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event(NXCPMessage msg,
             long baseId)
Create event object from NXCP message. Intended to be called only by NXCSession.

Parameters:
msg - NXCP message
Method Detail

getId

public long getId()
Returns:
the id

getCode

public int getCode()
Returns:
the code

getTimeStamp

public java.util.Date getTimeStamp()
Returns:
the timeStamp

getSourceId

public long getSourceId()
Returns:
the sourceId

getSeverity

public int getSeverity()
Returns:
the severity

getMessage

public java.lang.String getMessage()
Returns:
the message

getUserTag

public java.lang.String getUserTag()
Returns:
the userTag

getParameters

public java.lang.String[] getParameters()
Returns:
the parameters


Copyright © 2013. All Rights Reserved.