1 11 12 13 package com.sun.jmx.snmp; 14 15 16 17 18 30 31 public class SnmpPduRequest extends SnmpPduPacket 32 implements SnmpPduRequestType { 33 34 39 public int errorStatus=0 ; 40 41 42 48 public int errorIndex=0 ; 49 54 public void setErrorIndex(int i) { 55 errorIndex = i; 56 } 57 62 public void setErrorStatus(int i) { 63 errorStatus = i; 64 } 65 70 public int getErrorIndex() { return errorIndex; } 71 76 public int getErrorStatus() { return errorStatus; } 77 82 public SnmpPdu getResponsePdu() { 83 SnmpPduRequest result = new SnmpPduRequest(); 84 result.address = address; 85 result.port = port; 86 result.version = version; 87 result.community = community; 88 result.type = SnmpDefinitions.pduGetResponsePdu; 89 result.requestId = requestId; 90 result.errorStatus = SnmpDefinitions.snmpRspNoError; 91 result.errorIndex = 0; 92 93 return result; 94 } 95 } 96 97 98 99 100 101 | Popular Tags |