- 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
-
-
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 PDUcreatePDU(MessageProcessingModel messageProcessingModel)Creates aPDUinstance that is compatible with the given SNMP version (message processing model).PDUcreatePDU(Target<?> target)Creates aPDUinstance for the supplied target.java.lang.IntegergetMaxRepetitions()java.lang.IntegergetNonRepeaters()
-
-
-
Method Detail
-
createPDU
public PDU createPDU(Target<?> target)
Description copied from interface:PDUFactoryCreates aPDUinstance 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:
createPDUin interfacePDUFactory- Parameters:
target- theTargetwhere the PDU to be created will be sent.- Returns:
- PDU a PDU instance that is compatible with the supplied target.
-
createPDU
public PDU createPDU(MessageProcessingModel messageProcessingModel)
Description copied from interface:PDUFactoryCreates aPDUinstance that is compatible with the given SNMP version (message processing model).- Specified by:
createPDUin interfacePDUFactory- Parameters:
messageProcessingModel- aMessageProcessingModelinstance.- Returns:
- a
PDUinstance that is compatible with the given SNMP version (message processing model).
-
getMaxRepetitions
public java.lang.Integer getMaxRepetitions()
-
getNonRepeaters
public java.lang.Integer getNonRepeaters()
-
-