org.netxms.client.snmp
Class SnmpTrap

java.lang.Object
  extended by org.netxms.client.snmp.SnmpTrap

public class SnmpTrap
extends java.lang.Object

Object of this class represents single SNMP trap matching configuration record


Constructor Summary
SnmpTrap()
          Default constructor
SnmpTrap(NXCPMessage msg)
          Create SNMP trap configuration object from NXCP message
SnmpTrap(NXCPMessage msg, long baseId)
          Create SNMP trap configuration object from summary NXCP message
 
Method Summary
 void fillMessage(NXCPMessage msg)
          Fill NXCP message with trap configuration data.
 java.lang.String getDescription()
           
 int getEventCode()
           
 long getId()
           
 SnmpObjectId getObjectId()
           
 java.util.List<SnmpTrapParameterMapping> getParameterMapping()
           
 java.lang.String getUserTag()
           
 void setDescription(java.lang.String description)
           
 void setEventCode(int eventCode)
           
 void setId(long id)
           
 void setObjectId(SnmpObjectId objectId)
           
 void setUserTag(java.lang.String userTag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpTrap

public SnmpTrap()
Default constructor


SnmpTrap

public SnmpTrap(NXCPMessage msg)
Create SNMP trap configuration object from NXCP message

Parameters:
msg - NXCP message

SnmpTrap

public SnmpTrap(NXCPMessage msg,
                long baseId)
Create SNMP trap configuration object from summary NXCP message

Parameters:
msg - NXCP message
Method Detail

fillMessage

public void fillMessage(NXCPMessage msg)
Fill NXCP message with trap configuration data.

Parameters:
msg - NXCP message

getId

public long getId()
Returns:
the id

setId

public void setId(long id)
Parameters:
id - the id to set

getDescription

public java.lang.String getDescription()
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - the description to set

getObjectId

public SnmpObjectId getObjectId()
Returns:
the objectId

setObjectId

public void setObjectId(SnmpObjectId objectId)
Parameters:
objectId - the objectId to set

getEventCode

public int getEventCode()
Returns:
the eventCode

setEventCode

public void setEventCode(int eventCode)
Parameters:
eventCode - the eventCode to set

getUserTag

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

setUserTag

public void setUserTag(java.lang.String userTag)
Parameters:
userTag - the userTag to set

getParameterMapping

public java.util.List<SnmpTrapParameterMapping> getParameterMapping()
Returns:
the parameterMapping


Copyright © 2012. All Rights Reserved.