Class SnmpValue

java.lang.Object
org.netxms.client.snmp.SnmpValue

public class SnmpValue extends Object
Value of SNMP object
  • Constructor Details

    • SnmpValue

      public SnmpValue(String name, int type, String value, byte[] rawValue, long nodeId)
      Create new SNMP value (varbind) object.
      Parameters:
      name - value name (OID in text form)
      type - data type
      value - value as string
      rawValue - raw value
      nodeId - source node ID
    • SnmpValue

      public SnmpValue(SnmpObjectId objectId, int type, String value, byte[] rawValue, long nodeId)
      Create new SNMP value (varbind) object.
      Parameters:
      objectId - OID (will be converted to text form)
      type - data type
      value - value as string
      rawValue - raw value
      nodeId - source node ID
  • Method Details

    • getName

      public String getName()
      Returns:
      the name
    • getObjectId

      public SnmpObjectId getObjectId()
      Returns:
      the objectId
    • getType

      public int getType()
      Get object type. Note that this is an ASN.1 identifier type (defined in ASN}), not type of MibObject
      Returns:
      the type
    • getValue

      public String getValue()
      Returns:
      the value
    • getRawValue

      public byte[] getRawValue()
      Returns:
      the rawValue
    • getNodeId

      public final long getNodeId()
      Returns:
      the nodeId