protected void buildAndSendNextPdu() throws IOException { if (m_tracker.isFinished()) { handleDone(); } else { m_pduBuilder.reset(); m_responseProcessor = m_tracker.buildNextPdu(m_pduBuilder); sendNextPdu(m_pduBuilder); } }
protected SnmpWalker( InetAddress address, String name, int maxVarsPerPdu, int maxRepetitions, CollectionTracker tracker) { m_address = address; m_signal = new CountDownLatch(1); m_name = name; m_tracker = tracker; m_tracker.setMaxRepetitions(maxRepetitions); m_maxVarsPerPdu = maxVarsPerPdu; }
protected void handleTimeout(String msg) { m_tracker.setTimedOut(true); processError("Timeout retrieving", msg, null); }
protected void handleFatalError(Throwable e) { m_tracker.setFailed(true); processError("Unexpected error occurred processing", e.toString(), e); }
protected void handleError(String msg, Throwable t) { // XXX why do we set timedOut to false here? should we be doing this everywhere? m_tracker.setTimedOut(false); processError("Error retrieving", msg, t); }
protected void handleAuthError(String msg) { m_tracker.setFailed(true); processError("Authentication error processing", msg, null); }
public boolean timedOut() { return m_tracker.timedOut(); }