com.sun.management.snmp
Class SnmpScopedPduRequest

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

public class SnmpScopedPduRequest
extends SnmpScopedPduPacket
implements SnmpPduRequestType

Is used to represent get, get-next, set, response SNMP V3 scoped PDUs.

Since:
Java DMK 5.1
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.management.snmp.SnmpScopedPduPacket
contextEngineId, contextName, msgFlags, msgId, msgMaxSize, msgSecurityModel, securityParameters
 
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
SnmpScopedPduRequest()
           
 
Method Summary
 int getErrorIndex()
          Error index getter.
 int getErrorStatus()
          Error status getter.
 SnmpPdu getResponsePdu()
          Generates the pdu to use for response.
 void setErrorIndex(int i)
          Error index setter.
 void setErrorStatus(int s)
          Error status setter.
 
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
 

Constructor Detail

SnmpScopedPduRequest

public SnmpScopedPduRequest()
Method Detail

setErrorIndex

public void setErrorIndex(int i)
Error index setter. Remember that SNMP indices start from 1. Thus the corresponding SnmpVarBind is varBindList[errorIndex-1].

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

setErrorStatus

public void setErrorStatus(int s)
Error status setter. Statuses are defined in SnmpDefinitions.

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

getErrorIndex

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

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

getErrorStatus

public int getErrorStatus()
Error status getter. Statuses are defined in SnmpDefinitions.

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

getResponsePdu

public SnmpPdu getResponsePdu()
Generates the pdu to use for response.

Specified by:
getResponsePdu in interface SnmpAckPdu
Returns:
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.