com.sun.management.snmp
Interface SnmpOidTable

All Known Subinterfaces:
SnmpOidDatabase
All Known Implementing Classes:
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
Version:
4.13 04/16/04
Author:
Sun Microsystems, Inc
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

public 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

public 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

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

Returns:
A Vector of SnmpOidRecord objects.

FCS Release
jdmk-5_1-b34.2 2005.11.29_16:24:00_MET

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