WIDAR Classes

edu.nrao.widar.util
Class SnmpUtil.SnmpMessage

java.lang.Object
  extended by edu.nrao.widar.util.SnmpUtil.SnmpMessage
Enclosing class:
SnmpUtil

public static class SnmpUtil.SnmpMessage
extends java.lang.Object

 

Field Summary
 java.lang.String community
           
 int errorIndex
           
 int errorValue
           
 int pduType
           
 int requestId
           
 int snmpVersion
           
 java.util.Hashtable<java.lang.String,java.lang.Object> values
           
 
Constructor Summary
SnmpUtil.SnmpMessage(byte[] msg)
          Constructs an SnmpMessage from an array of bytes.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

snmpVersion

public int snmpVersion

requestId

public int requestId

errorValue

public int errorValue

errorIndex

public int errorIndex

pduType

public int pduType

community

public java.lang.String community

values

public java.util.Hashtable<java.lang.String,java.lang.Object> values
Constructor Detail

SnmpUtil.SnmpMessage

public SnmpUtil.SnmpMessage(byte[] msg)
                     throws java.lang.IllegalArgumentException
Constructs an SnmpMessage from an array of bytes. Presumably these bytes are the response from an SNMP query to a device.

Throws:
java.lang.IllegalArgumentException
Parameters:
msgBytes - the array of bytes containing an SNMP message.

NRAO/DRAO

National Radio Astronomy Observatory