|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.management.snmp.SnmpOidDatabaseSupport
public class SnmpOidDatabaseSupport
Defines a set of SnmpOidTable
objects containing metadata definitions for MIB variables.
Each SnmpOidTable
should contain information on variables of one MIB.
It provides resolution of all MIB variables contained in the SnmpOidTable
objects.
Constructor Summary | |
---|---|
SnmpOidDatabaseSupport()
Creates an empty SnmpOidDatabaseSupport . |
|
SnmpOidDatabaseSupport(SnmpOidTable table)
Creates an SnmpOidDatabaseSupport containing the specified SnmpOidTable object. |
Method Summary | |
---|---|
void |
add(SnmpOidTable table)
Adds a SnmpOidTable object in this SnmpOidDatabase . |
Vector |
getAllEntries()
Returns a list that can be used to traverse all the entries of the SnmpOidTable objects
of this SnmpOidDatabase . |
void |
remove(SnmpOidTable table)
Removes a SnmpOidTable object from this SnmpOidDatabase . |
void |
removeAll()
Removes all SnmpOidTable objects from this SnmpOidDatabase . |
SnmpOidRecord |
resolveVarName(String name)
Searches for a MIB variable given its logical name and returns an SnmpOidRecord
object containing information on the variable. |
SnmpOidRecord |
resolveVarOid(String oid)
Searches for a MIB variable given its OID and returns an SnmpOidRecord object containing
information on the variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SnmpOidDatabaseSupport()
SnmpOidDatabaseSupport
.
public SnmpOidDatabaseSupport(SnmpOidTable table)
SnmpOidDatabaseSupport
containing the specified SnmpOidTable
object.
table
- The SnmpOidTable
object used to initialize this SnmpOidDatabaseSupport
.Method Detail |
---|
public void add(SnmpOidTable table)
SnmpOidTable
object in this SnmpOidDatabase
.
add
in interface SnmpOidDatabase
table
- The table to add.public void remove(SnmpOidTable table) throws SnmpStatusException
SnmpOidTable
object from this SnmpOidDatabase
.
remove
in interface SnmpOidDatabase
table
- The table to be removed.
SnmpStatusException
- The specified SnmpOidTable
does not exist in this SnmpOidDatabase
.public SnmpOidRecord resolveVarName(String name) throws SnmpStatusException
SnmpOidRecord
object containing information on the variable.
resolveVarName
in interface SnmpOidDatabase
resolveVarName
in interface SnmpOidTable
name
- The name of the MIB variable.
SnmpOidRecord
object containing information on the variable.
SnmpStatusException
- The specified name does not exist in this SnmpOidDatabase
public SnmpOidRecord resolveVarOid(String oid) throws SnmpStatusException
SnmpOidRecord
object containing
information on the variable.
resolveVarOid
in interface SnmpOidDatabase
resolveVarOid
in interface SnmpOidTable
oid
- The OID of the MIB variable.
SnmpOidRecord
object containing information on the variable.
SnmpStatusException
- The specified oid does not exist in this SnmpOidDatabase
.public Vector getAllEntries()
SnmpOidTable
objects
of this SnmpOidDatabase
.
getAllEntries
in interface SnmpOidDatabase
getAllEntries
in interface SnmpOidTable
SnmpOidTable
objects containing all the elements of this SnmpOidDatabase
.public void removeAll()
SnmpOidTable
objects from this SnmpOidDatabase
.
removeAll
in interface SnmpOidDatabase
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |