org.opennms.netmgt.snmp
Class SnmpWalker
java.lang.Object
org.opennms.netmgt.snmp.SnmpWalker
public abstract class SnmpWalker
- extends java.lang.Object
|
Constructor Summary |
protected |
SnmpWalker(java.net.InetAddress address,
java.lang.String name,
int maxVarsPerPdu,
int maxRepititions,
CollectionTracker tracker)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnmpWalker
protected SnmpWalker(java.net.InetAddress address,
java.lang.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 java.io.IOException
- Throws:
java.io.IOException
sendNextPdu
protected abstract void sendNextPdu(SnmpWalker.WalkerPduBuilder pduBuilder)
throws java.io.IOException
- Throws:
java.io.IOException
handleDone
protected void handleDone()
failed
public boolean failed()
Returns the success or failure code for collection of the data.
timedOut
public boolean timedOut()
handleAuthError
protected void handleAuthError(java.lang.String msg)
handleError
protected void handleError(java.lang.String msg)
handleError
protected void handleError(java.lang.String msg,
java.lang.Throwable t)
handleFatalError
protected void handleFatalError(java.lang.Throwable e)
handleTimeout
protected void handleTimeout(java.lang.String msg)
close
protected abstract void close()
throws java.io.IOException
- Throws:
java.io.IOException
getName
public java.lang.String getName()
log
protected static org.opennms.core.utils.ThreadCategory log()
waitFor
public void waitFor()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitFor
public void waitFor(long timeout)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
processErrors
protected boolean processErrors(int errorStatus,
int errorIndex)
processResponse
protected void processResponse(SnmpObjId receivedOid,
SnmpValue val)
setAddress
protected void setAddress(java.net.InetAddress address)
getAddress
protected java.net.InetAddress getAddress()
getErrorMessage
public java.lang.String getErrorMessage()
getErrorThrowable
public java.lang.Throwable getErrorThrowable()
Copyright © 2010. All Rights Reserved.