Package org.netxms.client.snmp
Class SnmpTrap
java.lang.Object
org.netxms.client.snmp.SnmpTrap
Object of this class represents single SNMP trap matching configuration record
- 
Constructor SummaryConstructorsConstructorDescriptionSnmpTrap()Default constructorSnmpTrap(NXCPMessage msg) Create SNMP trap configuration object from NXCP messageSnmpTrap(NXCPMessage msg, long baseId) Create SNMP trap configuration object from summary NXCP message
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill NXCP message with trap configuration data.intGet event tag to be added when generating NetXMS event.longgetId()Get trap transformation script.voidsetDescription(String description) voidsetEventCode(int eventCode) voidsetEventTag(String eventTag) Set event tag to be added when generating NetXMS event.voidsetId(long id) voidsetObjectId(SnmpObjectId objectId) voidsetTransformationScript(String transformationScript) Set trap transformation script.
- 
Constructor Details- 
SnmpTrappublic SnmpTrap()Default constructor
- 
SnmpTrapCreate SNMP trap configuration object from NXCP message- Parameters:
- msg- NXCP message
 
- 
SnmpTrapCreate SNMP trap configuration object from summary NXCP message- Parameters:
- msg- NXCP message
- baseId- base field ID
 
 
- 
- 
Method Details- 
fillMessageFill NXCP message with trap configuration data.- Parameters:
- msg- NXCP message
 
- 
getIdpublic long getId()- Returns:
- the id
 
- 
setIdpublic void setId(long id) - Parameters:
- id- the id to set
 
- 
getDescription- Returns:
- the description
 
- 
setDescription- Parameters:
- description- the description to set
 
- 
getObjectId- Returns:
- the objectId
 
- 
setObjectId- Parameters:
- objectId- the objectId to set
 
- 
getEventCodepublic int getEventCode()- Returns:
- the eventCode
 
- 
setEventCodepublic void setEventCode(int eventCode) - Parameters:
- eventCode- the eventCode to set
 
- 
getEventTagGet event tag to be added when generating NetXMS event.- Returns:
- event tag to be added when generating NetXMS event.
 
- 
setEventTagSet event tag to be added when generating NetXMS event.- Parameters:
- eventTag- event tag to be added when generating NetXMS event
 
- 
getTransformationScriptGet trap transformation script.- Returns:
- trap transformation script
 
- 
setTransformationScriptSet trap transformation script.- Parameters:
- transformationScript- trap transformation script
 
- 
getParameterMapping- Returns:
- the parameterMapping
 
 
-