public class GetBulkPdu extends Pdu
The request is processed on the agent side in the following way:
// getNext (once) on the non_repeaters for (n=0; n<N; n++) { getNext(var[n]); } // getNext (max_repetitions times) on the repeaters for (m=1; m<M; m++) { for (r=1; r<R; r++) { getNext(var[N+r]); } }
Where:
L
is the number of vars in the request N = Max(Min(
non_repeaters,L), 0)
M = Max(
max_repetitions, 0)
R = L-N
Modifier and Type | Field and Description |
---|---|
protected int |
max_repetitions
The value of the max_repetitions.
|
protected int |
non_repeaters
The value of the non_repeaters.
|
added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds, snmpv3MsgId
Constructor and Description |
---|
GetBulkPdu(SnmpContextBasisFace con)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxRepetitions()
Returns the max_repetitions.
|
int |
getNonRepeaters()
Returns the non_repeaters.
|
boolean |
send()
Sends the Pdu.
|
void |
setMaxRepetitions(int no)
Sets the max_repetitions.
|
void |
setMaxRepititions(int no)
Deprecated.
|
void |
setNonRepeaters(int no)
Sets the non_repeaters.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isExpectingResponse, isTimedOut, new_value, notifyObservers, printVars, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, tell_them, toString, waitForSelf
protected int non_repeaters
protected int max_repetitions
public GetBulkPdu(SnmpContextBasisFace con)
con
- The context (v2c or v3) of the Pdupublic void setNonRepeaters(int no)
public int getNonRepeaters()
public void setMaxRepetitions(int no)
public void setMaxRepititions(int no)
setMaxRepetitions(int no)
.setMaxRepetitions(int)
public int getMaxRepetitions()
public boolean send() throws java.io.IOException, PduException
The GetBulk request has the same format as any other request, except that the error_status field is replaced by non_repeaters and the error_index field is replaces by max_repetitions.
send
in class Pdu
java.io.IOException
PduException
Pdu.send(int, int)