- java.lang.Object
-
- org.snmp4j.util.SnmpConfigurator.InnerPDUFactory
-
- All Implemented Interfaces:
PDUFactory
- Enclosing class:
- SnmpConfigurator
public class SnmpConfigurator.InnerPDUFactory extends java.lang.Object implements PDUFactory
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
settings
-
Constructor Summary
Constructors Constructor Description InnerPDUFactory(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
configurePDU(int type, PDU pdu)
PDU
createPDU(MessageProcessingModel messageProcessingModel)
Creates aPDU
instance that is compatible with the given SNMP version (message processing model).PDU
createPDU(Target<?> target)
Creates aPDU
instance for the supplied target.java.lang.Integer
getMaxRepetitions()
java.lang.Integer
getNonRepeaters()
private int
getPduType()
-
-
-
Method Detail
-
createPDU
public PDU createPDU(Target<?> target)
Description copied from interface:PDUFactory
Creates aPDU
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.- Specified by:
createPDU
in interfacePDUFactory
- Parameters:
target
- theTarget
where the PDU to be created will be sent.- Returns:
- PDU a PDU instance that is compatible with the supplied target.
-
configurePDU
private void configurePDU(int type, PDU pdu)
-
getPduType
private int getPduType()
-
createPDU
public PDU createPDU(MessageProcessingModel messageProcessingModel)
Description copied from interface:PDUFactory
Creates aPDU
instance that is compatible with the given SNMP version (message processing model).- Specified by:
createPDU
in interfacePDUFactory
- Parameters:
messageProcessingModel
- aMessageProcessingModel
instance.- Returns:
- a
PDU
instance that is compatible with the given SNMP version (message processing model).
-
getMaxRepetitions
public java.lang.Integer getMaxRepetitions()
-
getNonRepeaters
public java.lang.Integer getNonRepeaters()
-
-