public void finished(TreeEvent e) { if ((e.getVariableBindings() != null) && (e.getVariableBindings().length > 0)) { next(e); } System.out.println(); System.out.println("Total requests sent: "+counts.requests); System.out.println("Total objects received: "+counts.objects); System.out.println("Total walk time: "+ (System.currentTimeMillis()-startTime)+" milliseconds"); if (e.isError()) { System.err.println("The following error occurred during walk:"); System.err.println(e.getErrorMessage()); } finished = true; synchronized(this) { this.notify(); } }
public void finished(TreeEvent e) { if ((e.getVariableBindings() != null) && (e.getVariableBindings().length > 0)) { next(e); } System.out.println(); System.out.println("Total requests sent: "+counts.requests); System.out.println("Total objects received: "+counts.objects); System.out.println("Total walk time: "+ (System.nanoTime()-startTime)/SnmpConstants.MILLISECOND_TO_NANOSECOND+" milliseconds"); if (e.isError()) { System.err.println("The following error occurred during walk:"); System.err.println(e.getErrorMessage()); } finished = true; synchronized(this) { this.notify(); } }
public void finished(TreeEvent e) { if ((e.getVariableBindings() != null) && (e.getVariableBindings().length > 0)) { next(e); } err.println(); err.println("Total requests sent: " + counts.requests); err.println("Total objects received: " + counts.objects); err.println("Total walk time: " + (System.currentTimeMillis() - startTime) + " milliseconds"); if (e.isError()) { err.println("The following error occurred during walk:"); err.println(e.getErrorMessage()); //e.getException().printStackTrace(); } finished = true; synchronized (this) { this.notify(); } }
LOG.error("Error in event: {}", event.getErrorMessage()); continue;