|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.management.snmp.SnmpPdu
public abstract class SnmpPdu
Is the fully decoded representation of an SNMP packet.
Classes are derived from SnmpPdu
to
represent the different forms of SNMP packets
(SnmpPduPacket
,
SnmpScopedPduPacket
)
The SnmpPdu
class defines the attributes
common to every form of SNMP packets.
SnmpMessage
,
SnmpPduFactory
,
Serialized FormField Summary | |
---|---|
InetAddress |
address
Source or destination address. |
int |
port
Source or destination port. |
int |
requestId
Request identifier. |
int |
type
PDU type. |
SnmpVarBind[] |
varBindList
List of variables. |
int |
version
Protocol version. |
Constructor Summary | |
---|---|
SnmpPdu()
|
Method Summary | |
---|---|
static String |
pduTypeToString(int cmd)
Returns the String representation of a PDU type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int type
SnmpDefinitions
.
public int version
SnmpDefinitions
.
public SnmpVarBind[] varBindList
public int requestId
SnmpPduTrap
.
public InetAddress address
For an incoming PDU it's the source.
For an outgoing PDU it's the destination.
public int port
For an incoming PDU it's the source.
For an outgoing PDU it's the destination.
Constructor Detail |
---|
public SnmpPdu()
Method Detail |
---|
public static String pduTypeToString(int cmd)
String
representation of a PDU type.
For instance, if the PDU type is SnmpDefinitions.pduGetRequestPdu
,
the method will return "SnmpGet".
cmd
- The integer representation of the PDU type.
String
representation of the PDU type.
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |