public abstract class SnmpWalker extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
protected static class |
SnmpWalker.WalkerPduBuilder |
Modifier | Constructor and Description |
---|---|
protected |
SnmpWalker(InetAddress address,
String name,
int maxVarsPerPdu,
int maxRepetitions,
CollectionTracker tracker) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildAndSendNextPdu() |
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 boolean |
processErrors(int errorStatus,
int errorIndex) |
protected void |
processResponse(SnmpObjId receivedOid,
SnmpValue val) |
protected abstract void |
sendNextPdu(SnmpWalker.WalkerPduBuilder pduBuilder) |
void |
start() |
boolean |
timedOut() |
void |
waitFor() |
boolean |
waitFor(long timeout) |
protected SnmpWalker(InetAddress address, String name, int maxVarsPerPdu, int maxRepetitions, CollectionTracker tracker)
protected abstract SnmpWalker.WalkerPduBuilder createPduBuilder(int maxVarsPerPdu)
public void start()
public final 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)
public abstract void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public final String getName()
public void waitFor() throws InterruptedException
InterruptedException
public boolean waitFor(long timeout) throws InterruptedException
InterruptedException
protected boolean processErrors(int errorStatus, int errorIndex)
protected final InetAddress getAddress()
public final String getErrorMessage()
public final Throwable getErrorThrowable()
Copyright © 2015. All rights reserved.