예제 #1
0
 protected void buildAndSendNextPdu() throws IOException {
   if (m_tracker.isFinished()) {
     handleDone();
   } else {
     m_pduBuilder.reset();
     m_responseProcessor = m_tracker.buildNextPdu(m_pduBuilder);
     sendNextPdu(m_pduBuilder);
   }
 }
예제 #2
0
  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;
  }
예제 #3
0
 protected void handleTimeout(String msg) {
   m_tracker.setTimedOut(true);
   processError("Timeout retrieving", msg, null);
 }
예제 #4
0
 protected void handleFatalError(Throwable e) {
   m_tracker.setFailed(true);
   processError("Unexpected error occurred processing", e.toString(), e);
 }
예제 #5
0
 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);
 }
예제 #6
0
 protected void handleAuthError(String msg) {
   m_tracker.setFailed(true);
   processError("Authentication error processing", msg, null);
 }
예제 #7
0
 public boolean timedOut() {
   return m_tracker.timedOut();
 }