Package org.netxms.client.snmp
Class MibTree
java.lang.Object
org.netxms.client.snmp.MibTree
This class represents MIB tree.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final intprotected static final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfindObject(SnmpObjectId oid, boolean exactMatch) Find matching object in tree.Get root object for MIB tree
- 
Field Details- 
SMT_COMPRESS_DATAprotected static final int SMT_COMPRESS_DATA- See Also:
 
- 
SMT_SKIP_DESCRIPTIONSprotected static final int SMT_SKIP_DESCRIPTIONS- See Also:
 
 
- 
- 
Constructor Details- 
MibTreepublic MibTree()Create empty MIB tree
- 
MibTreeCreate MIB tree from compiled MIB file.- Parameters:
- file- compiled MIB file
- Throws:
- IOException- if I/O error occurs
- NXCException- if MIB file format errors detected
 
 
- 
- 
Method Details- 
getRootObjectGet root object for MIB tree- Returns:
- the root object
 
- 
findObjectFind matching object in tree. If exactMatch set to true, method will search for object with ID equal to given. If exactMatch set to false, and object with given id cannot be found, closest upper level object will be returned (i.e., if object .1.3.6.1.5 does not exist in the tree, but .1.3.6.1 does, .1.3.6.1 will be returned in search for .1.3.6.1.5).- Parameters:
- oid- object id to find
- exactMatch- set to true if exact match required
- Returns:
- MIB object or null if matching object not found
 
 
-