1 11 package com.sun.jmx.snmp; 12 19 public class SnmpScopedPduRequest extends SnmpScopedPduPacket 20 implements SnmpPduRequestType { 21 22 int errorStatus=0 ; 23 24 int errorIndex=0 ; 25 26 32 public void setErrorIndex(int i) { 33 errorIndex = i; 34 } 35 40 public void setErrorStatus(int s) { 41 errorStatus = s; 42 } 43 44 50 public int getErrorIndex() { return errorIndex; } 51 56 public int getErrorStatus() { return errorStatus; } 57 58 62 public SnmpPdu getResponsePdu() { 63 SnmpScopedPduRequest result = new SnmpScopedPduRequest(); 64 result.address = address ; 65 result.port = port ; 66 result.version = version ; 67 result.requestId = requestId; 68 result.msgId = msgId; 69 result.msgMaxSize = msgMaxSize; 70 result.msgFlags = msgFlags; 71 result.msgSecurityModel = msgSecurityModel; 72 result.contextEngineId = contextEngineId; 73 result.contextName = contextName; 74 result.securityParameters = securityParameters; 75 result.type = pduGetResponsePdu ; 76 result.errorStatus = SnmpDefinitions.snmpRspNoError ; 77 result.errorIndex = 0 ; 78 return result; 79 } 80 } 81 82 83 84 85 86 | Popular Tags |