public class SnmpConfigurator.InnerPDUFactory extends java.lang.Object implements PDUFactory
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
settings |
| Constructor and Description |
|---|
InnerPDUFactory(java.util.Map settings) |
| Modifier and Type | Method and Description |
|---|---|
private void |
configurePDU(int type,
PDU pdu) |
PDU |
createPDU(MessageProcessingModel messageProcessingModel)
Creates a
PDU instance that is compatible with the given SNMP version
(message processing model). |
PDU |
createPDU(Target target)
Creates a
PDU instance for the supplied target. |
java.lang.Integer |
getMaxRepetitions() |
java.lang.Integer |
getNonRepeaters() |
private int |
getPduType() |
public PDU createPDU(Target target)
PDUFactoryPDU instance for the supplied target. The created
PDU has to be compliant to the SNMP version defined by the supplied target.
For example, a SNMPv3 target requires a ScopedPDU instance.createPDU in interface PDUFactorytarget - the Target where the PDU to be created will be sent.private void configurePDU(int type,
PDU pdu)
private int getPduType()
public PDU createPDU(MessageProcessingModel messageProcessingModel)
PDUFactoryPDU instance that is compatible with the given SNMP version
(message processing model).createPDU in interface PDUFactorymessageProcessingModel - a MessageProcessingModel instance.PDU instance that is compatible with the given SNMP version
(message processing model).public java.lang.Integer getMaxRepetitions()
public java.lang.Integer getNonRepeaters()