|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.management.snmp.SnmpOidTableSupport
public class SnmpOidTableSupport
Contains metadata definitions for MIB variables.
A name can be resolved against a table of MIB variables.
Each entry in the table is an SnmpOidRecord
object that contains a name, a dot-separated OID string,
and the corresponding SMI type of the variable.
If you need to load a specific SnmpOidTable
, just call the static method
.
SnmpOid.setSnmpOidTable(myOidTable)
SnmpOidRecord
Constructor Summary | |
---|---|
SnmpOidTableSupport(String name)
Creates an SnmpOidTableSupport with the specified name. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Checks if the specified Object is equal to this SnmpOidTableSupport . |
Vector |
getAllEntries()
Returns a list that can be used to traverse all the entries in this SnmpOidTable . |
String |
getName()
Returns the name identifying this SnmpOidTableSupport
object. |
void |
loadMib(SnmpOidRecord[] mibs)
Loads a list of variables into the storage area, which is kept in memory. |
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SnmpOidTableSupport(String name)
SnmpOidTableSupport
with the specified name.
This name identifies the MIB to which belong the MIB variables contained
in this SnmpOidTableSupport
object.
name
- The OID table name.Method Detail |
---|
public SnmpOidRecord resolveVarName(String name) throws SnmpStatusException
SnmpOidRecord
object
containing information on the variable.
resolveVarName
in interface SnmpOidTable
name
- The name of the MIB variable.
SnmpOidRecord
object containing information on the variable.
SnmpStatusException
- If the variable is not found.public SnmpOidRecord resolveVarOid(String oid) throws SnmpStatusException
SnmpOidRecord
object
containing information on the variable.
resolveVarOid
in interface SnmpOidTable
oid
- The OID of the MIB variable.
SnmpOidRecord
object containing information on the variable.
SnmpStatusException
- If the variable is not found.public Vector getAllEntries()
SnmpOidTable
.
getAllEntries
in interface SnmpOidTable
SnmpOidRecord
objects.public void loadMib(SnmpOidRecord[] mibs)
mibs
- The list of variables to load.public boolean equals(Object object)
Object
is equal to this SnmpOidTableSupport
.
equals
in class Object
object
- The Object
to be compared.
true
if object
is an SnmpOidTableSupport
instance and equals to this,
false
otherwise.public String getName()
SnmpOidTableSupport
object.
|
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 |