Search in sources :

Example 1 with TreeUtils

use of org.snmp4j.util.TreeUtils in project nifi by apache.

the class SNMPGetter method walk.

/**
 * Perform a SNMP walk and returns the list of {@link TreeEvent}
 * @return the list of {@link TreeEvent}
 */
public List<TreeEvent> walk() {
    TreeUtils treeUtils = new TreeUtils(this.snmp, new DefaultPDUFactory());
    @SuppressWarnings("unchecked") List<TreeEvent> events = treeUtils.getSubtree(this.target, this.oid);
    return events;
}
Also used : TreeEvent(org.snmp4j.util.TreeEvent) DefaultPDUFactory(org.snmp4j.util.DefaultPDUFactory) TreeUtils(org.snmp4j.util.TreeUtils)

Aggregations

DefaultPDUFactory (org.snmp4j.util.DefaultPDUFactory)1 TreeEvent (org.snmp4j.util.TreeEvent)1 TreeUtils (org.snmp4j.util.TreeUtils)1