org.netxms.client.snmp
Class SnmpTrapParameterMapping

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

public class SnmpTrapParameterMapping
extends java.lang.Object

SNMP trap parameter mapping


Field Summary
static int BY_OBJECT_ID
           
static int BY_POSITION
           
 
Constructor Summary
SnmpTrapParameterMapping(int position)
          Create mapping by position
SnmpTrapParameterMapping(SnmpObjectId oid)
          Create mapping by object ID
 
Method Summary
 void fillMessage(NXCPMessage msg, int index)
          Fill NXCP message with parameter mapping's data
 java.lang.String getDescription()
           
 SnmpObjectId getObjectId()
           
 int getPosition()
           
 int getType()
           
 void setDescription(java.lang.String description)
           
 void setObjectId(SnmpObjectId objectId)
           
 void setPosition(int position)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BY_OBJECT_ID

public static final int BY_OBJECT_ID
See Also:
Constant Field Values

BY_POSITION

public static final int BY_POSITION
See Also:
Constant Field Values
Constructor Detail

SnmpTrapParameterMapping

public SnmpTrapParameterMapping(int position)
Create mapping by position

Parameters:
position - parameter's position

SnmpTrapParameterMapping

public SnmpTrapParameterMapping(SnmpObjectId oid)
Create mapping by object ID

Parameters:
oid - SNMP object ID
Method Detail

fillMessage

public void fillMessage(NXCPMessage msg,
                        int index)
Fill NXCP message with parameter mapping's data

Parameters:
index - mapping index

getType

public int getType()
Returns:
the type

setType

public void setType(int type)
Parameters:
type - the type to set

getObjectId

public SnmpObjectId getObjectId()
Returns:
the objectId

setObjectId

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

getPosition

public int getPosition()
Returns:
the position

setPosition

public void setPosition(int position)
Parameters:
position - the position 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


Copyright © 2011. All Rights Reserved.