public class MultiResponsePdu extends Pdu
This class sets a single long timeout for the retry, so it sends the request only once. Opposite to its parent class, this class does not ignore the duplicate responses, and it will timeout by nature.
Thanks to Josh Bers <jbers@bbn.com>
added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds, snmpv3MsgId
Constructor and Description |
---|
MultiResponsePdu(SnmpContextBasisFace con)
By default create a MultiResponsePdu that will wait for 3
seconds for responses to come in from multiple sources.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumResponses()
Gets the number of responses so far received
to this request.
|
java.lang.String |
getSourceAgent()
Gets the IP address of the host of the most recent response received.
|
protected void |
tell_them()
Lets the observers know which source we received a response from.
|
java.lang.String |
toString()
Prints out the list of received responses and their source IP
addressses.
|
addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isExpectingResponse, isTimedOut, new_value, notifyObservers, printVars, send, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, toString, waitForSelf
public MultiResponsePdu(SnmpContextBasisFace con)
con
- The contextpublic java.lang.String getSourceAgent()
public int getNumResponses()
public java.lang.String toString()