javax.management.snmp
Class SnmpPdu

java.lang.Object
  extended byjavax.management.snmp.SnmpPdu
All Implemented Interfaces:
Serializable, SnmpDefinitions
Direct Known Subclasses:
SnmpPduPacket, SnmpScopedPduPacket

Deprecated. Use package com.sun.management.snmp in preference to classes in this package. This class may be removed in a future version of Java DMK.

public abstract class SnmpPdu
extends Object
implements SnmpDefinitions, Serializable

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.

Since:
Java DMK 5.0
See Also:
SnmpMessage, SnmpPduFactory, Serialized Form

Field Summary
 InetAddress address
          Deprecated. Source or destination address.
 int port
          Deprecated. Source or destination port.
 int requestId
          Deprecated. Request identifier.
 int type
          Deprecated. PDU type.
 SnmpVarBind[] varBindList
          Deprecated. List of variables.
 int version
          Deprecated. Protocol version.
 
Fields inherited from interface javax.management.snmp.SnmpDefinitions
authMask, authNoPriv, authPriv, authPrivMask, CtxtConsFlag, noAuthNoPriv, noGroupName, noSuchContext, noSuchView, notInView, pduGetBulkRequestPdu, pduGetNextRequestPdu, pduGetRequestPdu, pduGetResponsePdu, pduInformRequestPdu, pduReportPdu, pduSetRequestPdu, pduV1TrapPdu, pduV2TrapPdu, pduWalkRequest, privMask, reportableFlag, snmpAuthNotSupported, snmpBadSecurityLevel, snmpPrivNotSupported, snmpReqAborted, snmpReqEncodingError, snmpReqHandleTooBig, snmpReqInternalError, snmpReqPacketOverflow, snmpReqRefireAfterVbFix, snmpReqSocketIOError, snmpReqTimeout, snmpReqTooBigImpossible, snmpReqUnknownError, snmpRspAuthorizationError, snmpRspBadValue, snmpRspCommitFailed, snmpRspDecodingError, snmpRspEndOfTable, snmpRspGenErr, snmpRspInconsistentName, snmpRspInconsistentValue, snmpRspNoAccess, snmpRspNoCreation, snmpRspNoError, snmpRspNoSuchName, snmpRspNotWritable, snmpRspReadOnly, snmpRspResourceUnavailable, snmpRspTooBig, snmpRspUndoFailed, snmpRspWrongEncoding, snmpRspWrongLength, snmpRspWrongType, snmpRspWrongValue, snmpUnknownPrincipal, snmpUsmBadEngineId, snmpUsmInvalidTimeliness, snmpUsmSecurityModel, snmpV1AccessControlModel, snmpV1MsgProcessingModel, snmpV1SecurityModel, snmpV2AccessControlModel, snmpV2MsgProcessingModel, snmpV2SecurityModel, snmpV3AccessControlModel, snmpV3MsgProcessingModel, snmpVersionOne, snmpVersionThree, snmpVersionTwo, snmpWrongSnmpVersion, trapAuthenticationFailure, trapColdStart, trapEgpNeighborLoss, trapEnterpriseSpecific, trapLinkDown, trapLinkUp, trapWarmStart
 
Constructor Summary
SnmpPdu()
          Deprecated.  
 
Method Summary
static String pduTypeToString(int cmd)
          Deprecated. 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

type

public int type
Deprecated. 
PDU type. Types are defined in SnmpDefinitions.


version

public int version
Deprecated. 
Protocol version. Versions are defined in SnmpDefinitions.


varBindList

public SnmpVarBind[] varBindList
Deprecated. 
List of variables.


requestId

public int requestId
Deprecated. 
Request identifier. Note that this field is not used by SnmpPduTrap.


address

public InetAddress address
Deprecated. 
Source or destination address.

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


port

public int port
Deprecated. 
Source or destination port.

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

Constructor Detail

SnmpPdu

public SnmpPdu()
Deprecated. 
Method Detail

pduTypeToString

public static String pduTypeToString(int cmd)
Deprecated. 
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.

FCS Release
jdmk-5_1-b34.2 2005.11.29_16:24:00_MET

Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.