public abstract class SnmpWalker extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
SnmpWalker.WalkerPduBuilder |
Modifier | Constructor and Description |
---|---|
protected |
SnmpWalker(InetAddress address,
String name,
int maxVarsPerPdu,
int maxRepititions,
CollectionTracker tracker) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildAndSendNextPdu() |
protected abstract void |
close() |
protected abstract SnmpWalker.WalkerPduBuilder |
createPduBuilder(int maxVarsPerPdu) |
boolean |
failed()
Returns the success or failure code for collection of the data.
|
protected InetAddress |
getAddress() |
String |
getErrorMessage() |
Throwable |
getErrorThrowable() |
int |
getMaxVarsPerPdu() |
String |
getName() |
protected void |
handleAuthError(String msg) |
protected void |
handleDone() |
protected void |
handleError(String msg) |
protected void |
handleError(String msg,
Throwable t) |
protected void |
handleFatalError(Throwable e) |
protected void |
handleTimeout(String msg) |
protected static ThreadCategory |
log() |
protected boolean |
processErrors(int errorStatus,
int errorIndex) |
protected void |
processResponse(SnmpObjId receivedOid,
SnmpValue val) |
protected abstract void |
sendNextPdu(SnmpWalker.WalkerPduBuilder pduBuilder) |
protected void |
setAddress(InetAddress address) |
void |
start() |
boolean |
timedOut() |
void |
waitFor() |
void |
waitFor(long timeout) |
protected SnmpWalker(InetAddress address, String name, int maxVarsPerPdu, int maxRepititions, CollectionTracker tracker)
protected abstract SnmpWalker.WalkerPduBuilder createPduBuilder(int maxVarsPerPdu)
public void start()
public int getMaxVarsPerPdu()
protected void buildAndSendNextPdu() throws IOException
IOException
protected abstract void sendNextPdu(SnmpWalker.WalkerPduBuilder pduBuilder) throws IOException
IOException
protected void handleDone()
public boolean failed()
Returns the success or failure code for collection of the data.
public boolean timedOut()
protected void handleAuthError(String msg)
protected void handleError(String msg)
protected void handleFatalError(Throwable e)
protected void handleTimeout(String msg)
protected abstract void close() throws IOException
IOException
public String getName()
protected static ThreadCategory log()
public void waitFor() throws InterruptedException
InterruptedException
public void waitFor(long timeout) throws InterruptedException
InterruptedException
protected boolean processErrors(int errorStatus, int errorIndex)
protected void setAddress(InetAddress address)
protected InetAddress getAddress()
public String getErrorMessage()
public Throwable getErrorThrowable()
Copyright © 2015. All Rights Reserved.