| java.lang.Object org.snmp4j.util.AbstractSnmpUtility org.snmp4j.util.TreeUtils
Inner Class :class InternalTreeListener implements TreeListener | |
Method Summary | |
public int | getMaxRepetitions() Gets the maximum number of the variable bindings per TreeEvent
returned by this instance.
the maximum repetitions used for GETBULK requests. | public List | getSubtree(Target target, OID rootOID) Gets a subtree with GETNEXT (SNMPv1) or GETBULK (SNMP2c, SNMPv3) operations
from the specified target synchronously. | public void | getSubtree(Target target, OID rootOID, Object userObject, TreeListener listener) Gets a subtree with GETNEXT (SNMPv1) or GETBULK (SNMP2c, SNMPv3) operations
from the specified target asynchronously.
Parameters: target - a Target that specifies the target command responderincluding its network transport address. Parameters: rootOID - the OID that specifies the root of the sub-tree to retrieve(not included). Parameters: userObject - an optional user object that will be transparently handed over to thesupplied TreeListener . Parameters: listener - the TreeListener that processes the TreeEventsgenerated by this method. | public void | setMaxRepetitions(int maxRepetitions) Sets the maximum number of the variable bindings per TreeEvent
returned by this instance.
Parameters: maxRepetitions - the maximum repetitions used for GETBULK requests. |
TreeUtils | public TreeUtils(Session snmpSession, PDUFactory pduFactory)(Code) | | Creates a TreeUtils instance. The created instance is thread
safe as long as the supplied Session and
PDUFactory are thread safe.
Parameters: snmpSession - a SNMP Session instance. Parameters: pduFactory - a PDUFactory instance that creates the PDU that are usedby this instance to retrieve MIB tree data using GETBULK/GETNEXToperations. |
getMaxRepetitions | public int getMaxRepetitions()(Code) | | Gets the maximum number of the variable bindings per TreeEvent
returned by this instance.
the maximum repetitions used for GETBULK requests. For SNMPv1 thisvalues has no effect (it is then implicitly one). |
getSubtree | public List getSubtree(Target target, OID rootOID)(Code) | | Gets a subtree with GETNEXT (SNMPv1) or GETBULK (SNMP2c, SNMPv3) operations
from the specified target synchronously.
Parameters: target - a Target that specifies the target command responderincluding its network transport address. Parameters: rootOID - the OID that specifies the root of the sub-tree to retrieve(not included).a possibly empty List of TreeEvent instances where eachinstance carries zero or more values (or an error condition)in depth-first-order. |
getSubtree | public void getSubtree(Target target, OID rootOID, Object userObject, TreeListener listener)(Code) | | Gets a subtree with GETNEXT (SNMPv1) or GETBULK (SNMP2c, SNMPv3) operations
from the specified target asynchronously.
Parameters: target - a Target that specifies the target command responderincluding its network transport address. Parameters: rootOID - the OID that specifies the root of the sub-tree to retrieve(not included). Parameters: userObject - an optional user object that will be transparently handed over to thesupplied TreeListener . Parameters: listener - the TreeListener that processes the TreeEventsgenerated by this method. Each event object may carry zero or moreobject instances from the sub-tree in depth-first-order. |
setMaxRepetitions | public void setMaxRepetitions(int maxRepetitions)(Code) | | Sets the maximum number of the variable bindings per TreeEvent
returned by this instance.
Parameters: maxRepetitions - the maximum repetitions used for GETBULK requests. For SNMPv1 thisvalues has no effect (it is then implicitly one). |
|
|