public abstract class

SnmpPdu

extends Object
implements SnmpDefinitions Serializable
java.lang.Object
   ↳ com.sun.jmx.snmp.SnmpPdu
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Is the fully decoded representation of an SNMP packet.

Classes are derived from SnmpPdu to represent the different forms of SNMP packets (com.sun.jmx.snmp.SnmpPduPacket SnmpPduPacket, SnmpScopedPduPacket)
The SnmpPdu class defines the attributes common to every form of SNMP packets.

This API is a Sun Microsystems internal API and is subject to change without notice.

Summary

[Expand]
Inherited Constants
From interface com.sun.jmx.snmp.SnmpDefinitions
Fields
public InetAddress address Source or destination address.
public int port Source or destination port.
public int requestId Request identifier.
public int type PDU type.
public SnmpVarBind[] varBindList List of variables.
public int version Protocol version.
Public Constructors
SnmpPdu()
Public Methods
static String pduTypeToString(int cmd)
Returns the String representation of a PDU type.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public InetAddress address

Source or destination address.

For an incoming PDU it's the source.
For an outgoing PDU it's the destination.

public int port

Source or destination port.

For an incoming PDU it's the source.
For an outgoing PDU it's the destination.

public int requestId

Request identifier. Note that this field is not used by SnmpPduTrap.

public int type

PDU type. Types are defined in com.sun.jmx.snmp.SnmpDefinitions SnmpDefinitions.

public SnmpVarBind[] varBindList

List of variables.

public int version

Protocol version. Versions are defined in com.sun.jmx.snmp.SnmpDefinitions SnmpDefinitions.

Public Constructors

public SnmpPdu ()

Public Methods

public static String pduTypeToString (int cmd)

Returns the String representation of a PDU type. For instance, if the PDU type is SnmpDefinitions.pduGetRequestPdu, the method will return "SnmpGet".

Parameters
cmd The integer representation of the PDU type.
Returns
  • The String representation of the PDU type.