public class SnmpTrapParameterMapping extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BY_OBJECT_ID |
static int |
BY_POSITION |
static int |
FORCE_TEXT |
Constructor and Description |
---|
SnmpTrapParameterMapping(int position)
Create mapping by position
|
SnmpTrapParameterMapping(SnmpObjectId oid)
Create mapping by object ID
|
Modifier and Type | Method and Description |
---|---|
void |
fillMessage(org.netxms.base.NXCPMessage msg,
int index)
Fill NXCP message with parameter mapping's data
|
String |
getDescription() |
int |
getFlags() |
SnmpObjectId |
getObjectId() |
int |
getPosition() |
int |
getType() |
void |
setDescription(String description) |
void |
setFlags(int flags) |
void |
setObjectId(SnmpObjectId objectId) |
void |
setPosition(int position) |
void |
setType(int type) |
public static final int BY_OBJECT_ID
public static final int BY_POSITION
public static final int FORCE_TEXT
public SnmpTrapParameterMapping(int position)
position
- parameter's positionpublic SnmpTrapParameterMapping(SnmpObjectId oid)
oid
- SNMP object IDpublic void fillMessage(org.netxms.base.NXCPMessage msg, int index)
index
- mapping indexpublic int getType()
public void setType(int type)
type
- the type to setpublic SnmpObjectId getObjectId()
public void setObjectId(SnmpObjectId objectId)
objectId
- the objectId to setpublic int getPosition()
public void setPosition(int position)
position
- the position to setpublic String getDescription()
public void setDescription(String description)
description
- the description to setpublic int getFlags()
public void setFlags(int flags)
flags
- the flags to setCopyright © 2015. All rights reserved.