@Override public void setNonRepeaters(int numNonRepeaters) { m_bulkPdu.setNonRepeaters(numNonRepeaters); }
@Override public void setNonRepeaters(int numNonRepeaters) { m_bulkPdu.setNonRepeaters(numNonRepeaters); }
public void setNonRepeaters(int numNonRepeaters) { m_bulkPdu.setNonRepeaters(numNonRepeaters); }
private PDU walk(Snmp snmp, PDU request, Target target, final List snapshot) throws IOException request.setNonRepeaters(0); OID rootOID = request.get(0).getOid(); PDU response = null;
private void correctRequestValues() { PDU request = source.getPDU(); if (!(request instanceof PDUv1)) { if (request.getMaxRepetitions() < 0) { request.setMaxRepetitions(0); } if (request.getNonRepeaters() < 0) { request.setNonRepeaters(0); } if (request.getNonRepeaters() > request.size()) { request.setNonRepeaters(request.size()); } repeaterStartIndex = request.getNonRepeaters(); repeaterRowSize = Math.max(request.size() - repeaterStartIndex, 0); } else { repeaterStartIndex = 0; repeaterRowSize = request.size(); } }
/** * Create a <code>PDU</code> instance for the supplied target. * * @param target the <code>Target</code> where the PDU to be created will be * sent. * @param pduType * a PDU type as specified by {@link PDU}. * @param maxRepetitions * the maximum number of repetitions for GETBULK PDUs created * by this factory. * @param nonRepeaters * the number of non-repeater variable bindings * (processed like GETNEXT) for GETBULK PDUs created * by this factory. * @return PDU * a PDU instance that is compatible with the supplied target. * @since 2.2 */ public static PDU createPDU(Target target, int pduType, int maxRepetitions, int nonRepeaters) { PDU request = createPDU(target.getVersion()); request.setType(pduType); if (pduType == PDU.GETBULK) { request.setMaxRepetitions(maxRepetitions); request.setNonRepeaters(nonRepeaters); } return request; }
/** * Create a <code>PDU</code> instance for the supplied target. * * @param target the <code>Target</code> where the PDU to be created will be * sent. * @param pduType * a PDU type as specified by {@link PDU}. * @param maxRepetitions * the maximum number of repetitions for GETBULK PDUs created * by this factory. * @param nonRepeaters * the number of non-repeater variable bindings * (processed like GETNEXT) for GETBULK PDUs created * by this factory. * @return PDU * a PDU instance that is compatible with the supplied target. * @since 2.2 */ public static PDU createPDU(Target target, int pduType, int maxRepetitions, int nonRepeaters) { PDU request = createPDU(target.getVersion()); request.setType(pduType); if (pduType == PDU.GETBULK) { request.setMaxRepetitions(maxRepetitions); request.setNonRepeaters(nonRepeaters); } return request; }
private void correctRequestValues() { PDU request = requestEvent.getPDU(); if (!(request instanceof PDUv1)) { if (request.getMaxRepetitions() < 0) { request.setMaxRepetitions(0); } if (request.getNonRepeaters() < 0) { request.setNonRepeaters(0); } repeaterStartIndex = request.getNonRepeaters(); repeaterRowSize = Math.max(request.size() - repeaterStartIndex, 0); } else { repeaterStartIndex = 0; repeaterRowSize = request.size(); } }
if (maxNumOfRowsPerPDU > 0) { pdu.setMaxRepetitions(maxNumOfRowsPerPDU); pdu.setNonRepeaters(0); pdu.setNonRepeaters(sz); pdu.setMaxRepetitions(0);
pdu.add(new VariableBinding(new OID("1.3.1.1"))); pdu.setMaxRepetitions(7); pdu.setNonRepeaters(1); CommunityTarget target = new CommunityTarget(); OctetString community = new OctetString("public");
pdu.add(new VariableBinding(new OID("1.3.1.1"))); pdu.setMaxRepetitions(7); pdu.setNonRepeaters(1); CommunityTarget target = new CommunityTarget(); OctetString community = new OctetString("public");
if (request.getType() == PDU.GETBULK) { request.setMaxRepetitions(maxRepetitions); request.setNonRepeaters(nonRepeaters);
if (!(pdu instanceof PDUv1)) { pdu.setMaxRepetitions(0); pdu.setNonRepeaters(0);
pdu.add(new VariableBinding(new OID("1.3.1.1"))); pdu.setMaxRepetitions(7); pdu.setNonRepeaters(1); CommunityTarget target = new CommunityTarget(); OctetString community = new OctetString("public");
if (!(pdu instanceof PDUv1)) { pdu.setMaxRepetitions(0); pdu.setNonRepeaters(0);
pdu.add(new VariableBinding(new OID("1.3.1.1"))); pdu.setMaxRepetitions(7); pdu.setNonRepeaters(1); CommunityTarget target = new CommunityTarget(); OctetString community = new OctetString("public");
if (request.getType() == PDU.GETBULK) { request.setMaxRepetitions(maxRepetitions); request.setNonRepeaters(nonRepeaters);
request.setNonRepeaters ( 0 ); request.setMaxRepetitions ( 10 );
pdu.setNonRepeaters(nonRepeaters);
pdu.setNonRepeaters(nonRepeaters);