javax.management.snmp
Class SnmpPduRequest

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

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 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.

Version:
4.15 05/05/04
Author:
Sun Microsystems, Inc
See Also:
Serialized Form

Field Summary
 int errorIndex
          Deprecated. Error index.
 int errorStatus
          Deprecated. Error status.
 
Fields inherited from class javax.management.snmp.SnmpPduPacket
community
 
Fields inherited from class javax.management.snmp.SnmpPdu
address, port, requestId, type, varBindList, 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
SnmpPduRequest()
          Deprecated.  
 
Method Summary
 int getErrorIndex()
          Deprecated. Implements SnmpPduRequestType interface.
 int getErrorStatus()
          Deprecated. Implements SnmpPduRequestType interface.
 SnmpPdu getResponsePdu()
          Deprecated. Implements SnmpAckPdu interface.
 void setErrorIndex(int i)
          Deprecated. Implements SnmpPduRequestType interface.
 void setErrorStatus(int i)
          Deprecated. Implements SnmpPduRequestType interface.
 
Methods inherited from class javax.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
Deprecated. 
Error status. Statuses are defined in SnmpDefinitions.


errorIndex

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

Constructor Detail

SnmpPduRequest

public SnmpPduRequest()
Deprecated. 
Method Detail

setErrorIndex

public void setErrorIndex(int i)
Deprecated. 
Implements SnmpPduRequestType interface.

Specified by:
setErrorIndex in interface SnmpPduRequestType
Parameters:
i - Error index.
Since:
Java DMK 5.0

setErrorStatus

public void setErrorStatus(int i)
Deprecated. 
Implements SnmpPduRequestType interface.

Specified by:
setErrorStatus in interface SnmpPduRequestType
Parameters:
i - Error status.
Since:
Java DMK 5.0

getErrorIndex

public int getErrorIndex()
Deprecated. 
Implements SnmpPduRequestType interface.

Specified by:
getErrorIndex in interface SnmpPduRequestType
Returns:
Error index.
Since:
Java DMK 5.0

getErrorStatus

public int getErrorStatus()
Deprecated. 
Implements SnmpPduRequestType interface.

Specified by:
getErrorStatus in interface SnmpPduRequestType
Returns:
Error status.
Since:
Java DMK 5.0

getResponsePdu

public SnmpPdu getResponsePdu()
Deprecated. 
Implements SnmpAckPdu interface.

Specified by:
getResponsePdu in interface SnmpAckPdu
Returns:
The response PDU.
Since:
Java DMK 5.0

FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

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