org.opennms.netmgt.snmp
Class SnmpWalker
java.lang.Object
org.opennms.netmgt.snmp.SnmpWalker
public abstract class SnmpWalker
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnmpWalker
protected SnmpWalker(InetAddress address,
String name,
int maxVarsPerPdu,
int maxRepititions,
CollectionTracker tracker)
createPduBuilder
protected abstract SnmpWalker.WalkerPduBuilder createPduBuilder(int maxVarsPerPdu)
start
public void start()
getMaxVarsPerPdu
public int getMaxVarsPerPdu()
buildAndSendNextPdu
protected void buildAndSendNextPdu()
throws IOException
- Throws:
IOException
sendNextPdu
protected abstract void sendNextPdu(SnmpWalker.WalkerPduBuilder pduBuilder)
throws IOException
- Throws:
IOException
failed
public boolean failed()
Returns the success or failure code for collection of the data.
handleAuthError
protected void handleAuthError(String msg)
handleDone
protected void handleDone()
handleError
protected void handleError(String msg)
handleFatalError
protected void handleFatalError(Throwable e)
handleTimeout
protected void handleTimeout(String msg)
close
protected abstract void close()
throws IOException
- Throws:
IOException
getName
public String getName()
waitFor
public void waitFor()
throws InterruptedException
- Throws:
InterruptedException
waitFor
public void waitFor(long timeout)
throws InterruptedException
- Throws:
InterruptedException
processErrors
protected boolean processErrors(int errorStatus,
int errorIndex)
processResponse
protected void processResponse(SnmpObjId receivedOid,
SnmpValue val)
setAddress
protected void setAddress(InetAddress address)
getAddress
protected InetAddress getAddress()
Copyright ? 2008. All Rights Reserved.