com.sun.management.snmp
Class SnmpPduTrap

java.lang.Object
  extended by com.sun.management.snmp.SnmpPdu
      extended by com.sun.management.snmp.SnmpPduPacket
          extended by com.sun.management.snmp.SnmpPduTrap
All Implemented Interfaces:
SnmpDefinitions, Serializable

public class SnmpPduTrap
extends SnmpPduPacket

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 SnmpPduPacket and defines attributes specific to an SNMPv1 trap (see RFC1157).

Since:
Java DMK 5.1
See Also:
Serialized Form

Field Summary
 SnmpIpAddress agentAddr
          Agent address.
 SnmpOid enterprise
          Enterprise object identifier.
 int genericTrap
          Generic trap number.
 int specificTrap
          Specific trap number.
 long timeStamp
          Time-stamp.
 
Fields inherited from class com.sun.management.snmp.SnmpPduPacket
community
 
Fields inherited from class com.sun.management.snmp.SnmpPdu
address, port, requestId, type, varBindList, version
 
Fields inherited from interface com.sun.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
SnmpPduTrap()
          Builds a new trap PDU.
 
Method Summary
 
Methods inherited from class com.sun.management.snmp.SnmpPdu
pduTypeToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enterprise

public SnmpOid enterprise
Enterprise object identifier.


agentAddr

public SnmpIpAddress agentAddr
Agent address. If the agent address source was not an IPv4 one (e.g. IPv6), this field is null.


genericTrap

public int genericTrap
Generic trap number.
The possible values are defined in SnmpDefinitions.


specificTrap

public int specificTrap
Specific trap number.


timeStamp

public long timeStamp
Time-stamp.

Constructor Detail

SnmpPduTrap

public SnmpPduTrap()
Builds a new trap PDU.
type and version fields are initialized with pduV1TrapPdu and snmpVersionOne.


Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

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