1 11 package com.sun.jmx.snmp; 12 23 24 public class SnmpScopedPduBulk extends SnmpScopedPduPacket 25 implements SnmpPduBulkType { 26 27 31 int nonRepeaters; 32 33 34 38 int maxRepetitions; 39 40 public SnmpScopedPduBulk() { 41 type = pduGetBulkRequestPdu; 42 version = snmpVersionThree; 43 } 44 45 49 public void setMaxRepetitions(int max) { 50 maxRepetitions = max; 51 } 52 53 57 public void setNonRepeaters(int nr) { 58 nonRepeaters = nr; 59 } 60 61 65 public int getMaxRepetitions() { return maxRepetitions; } 66 67 71 public int getNonRepeaters() { return nonRepeaters; } 72 73 77 public SnmpPdu getResponsePdu() { 78 SnmpScopedPduRequest result = new SnmpScopedPduRequest(); 79 result.address = address ; 80 result.port = port ; 81 result.version = version ; 82 result.requestId = requestId; 83 result.msgId = msgId; 84 result.msgMaxSize = msgMaxSize; 85 result.msgFlags = msgFlags; 86 result.msgSecurityModel = msgSecurityModel; 87 result.contextEngineId = contextEngineId; 88 result.contextName = contextName; 89 result.securityParameters = securityParameters; 90 result.type = pduGetResponsePdu ; 91 result.errorStatus = SnmpDefinitions.snmpRspNoError ; 92 result.errorIndex = 0 ; 93 return result; 94 } 95 } 96 | Popular Tags |