Package org.opennms.netmgt.snmp.snmp4j
Class Snmp4JWalker
- java.lang.Object
-
- org.opennms.netmgt.snmp.SnmpWalker
-
- org.opennms.netmgt.snmp.snmp4j.Snmp4JWalker
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Snmp4JWalker extends SnmpWalker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Snmp4JWalker.GetBulkBuilder
class
Snmp4JWalker.GetNextBuilder
static class
Snmp4JWalker.Snmp4JPduBuilder
class
Snmp4JWalker.Snmp4JResponseListener
TODO: Merge this logic withSnmp4JStrategy
processResponse()-
Nested classes/interfaces inherited from class org.opennms.netmgt.snmp.SnmpWalker
SnmpWalker.WalkerPduBuilder
-
-
Constructor Summary
Constructors Constructor Description Snmp4JWalker(Snmp4JAgentConfig agentConfig, java.lang.String name, CollectionTracker tracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected SnmpWalker.WalkerPduBuilder
createPduBuilder(int maxVarsPerPdu)
protected int
getVersion()
protected void
sendNextPdu(SnmpWalker.WalkerPduBuilder pduBuilder)
void
start()
-
Methods inherited from class org.opennms.netmgt.snmp.SnmpWalker
buildAndSendNextPdu, failed, getAddress, getErrorMessage, getErrorThrowable, getMaxVarsPerPdu, getName, handleAuthError, handleDone, handleError, handleError, handleFatalError, handleTimeout, processErrors, processResponse, setCallback, timedOut, waitFor, waitFor
-
-
-
-
Constructor Detail
-
Snmp4JWalker
public Snmp4JWalker(Snmp4JAgentConfig agentConfig, java.lang.String name, CollectionTracker tracker)
-
-
Method Detail
-
start
public void start()
- Overrides:
start
in classSnmpWalker
-
createPduBuilder
protected SnmpWalker.WalkerPduBuilder createPduBuilder(int maxVarsPerPdu)
- Specified by:
createPduBuilder
in classSnmpWalker
-
sendNextPdu
protected void sendNextPdu(SnmpWalker.WalkerPduBuilder pduBuilder) throws SnmpException
- Specified by:
sendNextPdu
in classSnmpWalker
- Throws:
SnmpException
-
getVersion
protected int getVersion()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in classSnmpWalker
-
-