public class

SnmpPduTrap

extends SnmpPduPacket
java.lang.Object
   ↳ com.sun.jmx.snmp.SnmpPdu
     ↳ com.sun.jmx.snmp.SnmpPduPacket
       ↳ com.sun.jmx.snmp.SnmpPduTrap

Class Overview

Represents an SNMPv1-trap PDU.

You will not usually need to use this class, except if you decide to implement your own SnmpPduFactory object.

The SnmpPduTrap extends com.sun.jmx.snmp.SnmpPduPacket SnmpPduPacket and defines attributes specific to an SNMPv1 trap (see RFC1157).

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 SnmpIpAddress agentAddr Agent address.
public SnmpOid enterprise Enterprise object identifier.
public int genericTrap Generic trap number.
public int specificTrap Specific trap number.
public long timeStamp Time-stamp.
[Expand]
Inherited Fields
From class com.sun.jmx.snmp.SnmpPduPacket
From class com.sun.jmx.snmp.SnmpPdu
Public Constructors
SnmpPduTrap()
Builds a new trap PDU.
[Expand]
Inherited Methods
From class com.sun.jmx.snmp.SnmpPdu
From class java.lang.Object

Fields

public SnmpIpAddress agentAddr

Agent address. If the agent address source was not an IPv4 one (eg : IPv6), this field is null.

public SnmpOid enterprise

Enterprise object identifier.

public int genericTrap

Generic trap number.
The possible values are defined in SnmpDefinitions.

public int specificTrap

Specific trap number.

public long timeStamp

Time-stamp.

Public Constructors

public SnmpPduTrap ()

Builds a new trap PDU.
type and version fields are initialized with pduV1TrapPdu and snmpVersionOne.