MySnmpCrawler API

snmp.mibdb
Class MibDatabase

java.lang.Object
  |
  +--snmp.mibdb.MibDatabase
Direct Known Subclasses:
MibDatabaseImpl

public abstract class MibDatabase
extends java.lang.Object

This class is the external interface to access the MIB database.

Version:
$Revision: 0.1 $ $Date: 2004/03/09 06:03:55 $
Author:
Scott Cheng

Constructor Summary
MibDatabase()
           
 
Method Summary
static MibDatabase create(java.lang.String mibFile)
          Creates the singleton MibDatabase object from the passed MIB file.
static MibDatabase getInstance()
          Gets the singleton object of the MibDatabase.
abstract  OidRecord getOidRecord(java.lang.String oid)
          Retrieves the OidRecord that matches to the passed OID string in the MIB database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MibDatabase

public MibDatabase()
Method Detail

getOidRecord

public abstract OidRecord getOidRecord(java.lang.String oid)
                                throws SnmpException
Retrieves the OidRecord that matches to the passed OID string in the MIB database.

Parameters:
oid - OID string
Returns:
The matched OidRecord
Throws:
SnmpException - Thrown if there is no such OID record.

create

public static MibDatabase create(java.lang.String mibFile)
                          throws SnmpException
Creates the singleton MibDatabase object from the passed MIB file.

Parameters:
mibFile - The MIB file name.
Returns:
The MibDatabase instance.
SnmpException

getInstance

public static MibDatabase getInstance()
                               throws SnmpException
Gets the singleton object of the MibDatabase.

Returns:
The MibDatabase instance.
SnmpException

MySnmpCrawler API