- 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 voidconfigurePDU(int type, PDU pdu)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()private intgetPduType()
-
-
-
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.
-
configurePDU
private void configurePDU(int type, PDU pdu)
-
getPduType
private int getPduType()
-
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()
-
-