TreeEvent.isError
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.snmp4j.util.TreeEvent.isError (Showing top 4 results out of 315)

origin: org.kaazing/snmp4j

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();
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

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();
 }
}
origin: org.snmp4j/snmp4j

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();
  }
}
origin: org.apache.camel/camel-snmp

  continue;
if (event.isError()) {
  LOG.error("Error in event: {}", event.getErrorMessage());
  continue;
org.snmp4j.utilTreeEventisError

Popular methods of TreeEvent

  • getVariableBindings
    Gets the variable bindings retrieved in depth first order from the (sub-)tree.
  • getErrorMessage
  • <init>
  • getException
  • getReportPDU
  • getStatus
  • getUserObject

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)