com.sun.management.snmp
Interface SnmpOidTable

All Known Subinterfaces:
SnmpOidDatabase
All Known Implementing Classes:
SNMP_USER_BASED_SM_MIBOidTable, SnmpOidDatabaseSupport, SnmpOidTableSupport

public interface SnmpOidTable

Defines the minimum functionality that should be provided by a class containing metadata definitions for variables of a MIB. 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).

Since:
Java DMK 5.1
See Also:
SnmpOidRecord

Method Summary
 Vector getAllEntries()
          Returns a list that can be used to traverse all the entries this SnmpOidTable.
 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.
 

Method Detail

resolveVarName

SnmpOidRecord resolveVarName(String name)
                             throws SnmpStatusException
Searches for a MIB variable given its logical name and returns an SnmpOidRecord object containing information on the variable.

Parameters:
name - The name of the MIB variable.
Returns:
The SnmpOidRecord object containing information on the variable.
Throws:
SnmpStatusException - If the variable is not found.

resolveVarOid

SnmpOidRecord resolveVarOid(String oid)
                            throws SnmpStatusException
Searches for a MIB variable given its OID and returns an SnmpOidRecord object containing information on the variable.

Parameters:
oid - The OID of the MIB variable.
Returns:
The SnmpOidRecord object containing information on the variable.
Throws:
SnmpStatusException - If the variable is not found.

getAllEntries

Vector getAllEntries()
Returns a list that can be used to traverse all the entries this SnmpOidTable.

Returns:
A Vector of SnmpOidRecord objects.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.