1 11 12 13 package com.sun.jmx.snmp; 14 15 16 17 30 31 public class SnmpPduBulk extends SnmpPduPacket 32 implements SnmpPduBulkType { 33 34 38 public int nonRepeaters ; 39 40 41 45 public int maxRepetitions ; 46 47 48 54 public SnmpPduBulk() { 55 type = pduGetBulkRequestPdu ; 56 version = snmpVersionTwo ; 57 } 58 63 public void setMaxRepetitions(int i) { 64 maxRepetitions = i; 65 } 66 71 public void setNonRepeaters(int i) { 72 nonRepeaters = i; 73 } 74 79 public int getMaxRepetitions() { return maxRepetitions; } 80 85 public int getNonRepeaters() { return nonRepeaters; } 86 91 public SnmpPdu getResponsePdu() { 92 SnmpPduRequest result = new SnmpPduRequest(); 93 result.address = address; 94 result.port = port; 95 result.version = version; 96 result.community = community; 97 result.type = SnmpDefinitions.pduGetResponsePdu; 98 result.requestId = requestId; 99 result.errorStatus = SnmpDefinitions.snmpRspNoError; 100 result.errorIndex = 0; 101 102 return result; 103 } 104 } 105 106 107 108 109 | Popular Tags |