com.sun.management.snmp
Class SnmpPduRequest

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

public class SnmpPduRequest
extends SnmpPduPacket
implements SnmpPduRequestType

Is used to represent get, get-next, set, response and SNMPv2-trap PDUs.

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

Since:
Java DMK 5.1
See Also:
Serialized Form

Field Summary
 int errorIndex
          Error index.
 int errorStatus
          Error status.
 
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
SnmpPduRequest()
           
 
Method Summary
 int getErrorIndex()
          Implements SnmpPduRequestType interface.
 int getErrorStatus()
          Implements SnmpPduRequestType interface.
 SnmpPdu getResponsePdu()
          Implements SnmpAckPdu interface.
 void setErrorIndex(int i)
          Implements SnmpPduRequestType interface.
 void setErrorStatus(int i)
          Implements SnmpPduRequestType interface.
 
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

errorStatus

public int errorStatus
Error status. Statuses are defined in SnmpDefinitions.


errorIndex

public int errorIndex
Error index. Remember that SNMP indices start from 1. Thus the corresponding SnmpVarBind is varBindList[errorIndex-1].

Constructor Detail

SnmpPduRequest

public SnmpPduRequest()
Method Detail

setErrorIndex

public void setErrorIndex(int i)
Implements SnmpPduRequestType interface.

Specified by:
setErrorIndex in interface SnmpPduRequestType
Parameters:
i - Error index.

setErrorStatus

public void setErrorStatus(int i)
Implements SnmpPduRequestType interface.

Specified by:
setErrorStatus in interface SnmpPduRequestType
Parameters:
i - Error status.

getErrorIndex

public int getErrorIndex()
Implements SnmpPduRequestType interface.

Specified by:
getErrorIndex in interface SnmpPduRequestType
Returns:
Error index.

getErrorStatus

public int getErrorStatus()
Implements SnmpPduRequestType interface.

Specified by:
getErrorStatus in interface SnmpPduRequestType
Returns:
Error status.

getResponsePdu

public SnmpPdu getResponsePdu()
Implements SnmpAckPdu interface.

Specified by:
getResponsePdu in interface SnmpAckPdu
Returns:
The response PDU.

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.