Package org.netxms.client.snmp
Class SnmpValue
java.lang.Object
org.netxms.client.snmp.SnmpValue
Value of SNMP object
-
Constructor Summary
ConstructorsConstructorDescriptionCreate new SNMP value (varbind) object.Create new SNMP value (varbind) object.SnmpValue(SnmpObjectId objectId, int type, String value, byte[] rawValue, long nodeId) Create new SNMP value (varbind) object. -
Method Summary
-
Constructor Details
-
SnmpValue
Create new SNMP value (varbind) object.- Parameters:
name- value name (OID in text form)type- data typevalue- value as stringrawValue- raw valuenodeId- source node ID
-
SnmpValue
public SnmpValue(String name, int type, String value, byte[] rawValue, long nodeId, String snmpAgentName) Create new SNMP value (varbind) object.- Parameters:
name- value name (OID in text form)type- data typevalue- value as stringrawValue- raw valuenodeId- source node IDsnmpAgentName- name of additional SNMP agent this value was read from (null or empty for node's primary SNMP agent)
-
SnmpValue
Create new SNMP value (varbind) object.- Parameters:
objectId- OID (will be converted to text form)type- data typevalue- value as stringrawValue- raw valuenodeId- source node ID
-
-
Method Details
-
getName
- Returns:
- the name
-
getObjectId
- Returns:
- the objectId
-
getType
public int getType()Get object type. Note that this is an ASN.1 identifier type (defined inASN}), not type of MibObject- Returns:
- the type
-
getValue
- Returns:
- the value
-
getRawValue
public byte[] getRawValue()- Returns:
- the rawValue
-
getNodeId
public final long getNodeId()- Returns:
- the nodeId
-
getSnmpAgentName
Get name of additional SNMP agent this value was read from.- Returns:
- name of additional SNMP agent or null (or empty string) if value was read from node's primary SNMP agent
-