public class

SnmpPduRequest

extends SnmpPduPacket
implements SnmpPduRequestType
java.lang.Object
   ↳ com.sun.jmx.snmp.SnmpPdu
     ↳ com.sun.jmx.snmp.SnmpPduPacket
       ↳ com.sun.jmx.snmp.SnmpPduRequest

Class Overview

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.

This API is a Sun Microsystems internal API and is subject to change without notice.

Summary

[Expand]
Inherited Constants
From interface com.sun.jmx.snmp.SnmpDefinitions
Fields
public int errorIndex Error index.
public int errorStatus Error status.
[Expand]
Inherited Fields
From class com.sun.jmx.snmp.SnmpPduPacket
From class com.sun.jmx.snmp.SnmpPdu
Public Constructors
SnmpPduRequest()
Public Methods
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.
[Expand]
Inherited Methods
From class com.sun.jmx.snmp.SnmpPdu
From class java.lang.Object
From interface com.sun.jmx.snmp.SnmpAckPdu
From interface com.sun.jmx.snmp.SnmpPduRequestType

Fields

public int errorIndex

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

public int errorStatus

Error status. Statuses are defined in com.sun.jmx.snmp.SnmpDefinitions SnmpDefinitions.

Public Constructors

public SnmpPduRequest ()

Public Methods

public int getErrorIndex ()

Implements SnmpPduRequestType interface.

Returns
  • Error index.

public int getErrorStatus ()

Implements SnmpPduRequestType interface.

Returns
  • Error status.

public SnmpPdu getResponsePdu ()

Implements SnmpAckPdu interface.

Returns
  • The response PDU.

public void setErrorIndex (int i)

Implements SnmpPduRequestType interface.

Parameters
i Error index.

public void setErrorStatus (int i)

Implements SnmpPduRequestType interface.

Parameters
i Error status.