com.sun.jdmk.snmp
Interface SnmpOidDatabase

All Superinterfaces:
SnmpOidTable
All Known Implementing Classes:
SnmpOidDatabaseSupport

Deprecated. Use package com.sun.management.snmp in preference to classes in this package. This class may be removed in a future version of Java DMK.

public interface SnmpOidDatabase
extends SnmpOidTable

Defines the minimal functionality that should be provided by a class containing a set of SnmpOidTable objects containing metadata definitions for MIB variables. Each SnmpOidTable should contain information on variables of one MIB. The SnmpOidDatabase is a "repository" of SnmpOidTable. It extends the SnmpOidTable interface in order to provide resolution of the MIB variables.

See Also:
SnmpOidTable

Method Summary
 void add(SnmpOidTable table)
          Deprecated. Adds an SnmpOidTable object in this SnmpOidDatabase.
 Vector getAllEntries()
          Deprecated. Returns a list that can be used to traverse all the entries of the SnmpOidTable objects of this SnmpOidDatabase.
 void remove(SnmpOidTable table)
          Deprecated. Removes an SnmpOidTable object from this SnmpOidDatabase.
 void removeAll()
          Deprecated. Removes all the SnmpOidTable objects from this SnmpOidDatabase.
 SnmpOidRecord resolveVarName(String name)
          Deprecated. Searches for a MIB variable given its logical name and returns an SnmpOidRecord object containing information on the variable.
 SnmpOidRecord resolveVarOid(String oid)
          Deprecated. Searches for a MIB variable given its OID and returns an SnmpOidRecord object containing information on the variable.
 

Method Detail

add

public void add(SnmpOidTable table)
Deprecated. 
Adds an SnmpOidTable object in this SnmpOidDatabase.

Parameters:
table - The table to add.

remove

public void remove(SnmpOidTable table)
            throws SnmpStatusException
Deprecated. 
Removes an SnmpOidTable object from this SnmpOidDatabase.

Parameters:
table - The table to be removed.
Throws:
SnmpStatusException

removeAll

public void removeAll()
Deprecated. 
Removes all the SnmpOidTable objects from this SnmpOidDatabase.


resolveVarName

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

Specified by:
resolveVarName in interface SnmpOidTable
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
Deprecated. 
Searches for a MIB variable given its OID and returns an SnmpOidRecord object containing information on the variable.

Specified by:
resolveVarOid in interface SnmpOidTable
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()
Deprecated. 
Returns a list that can be used to traverse all the entries of the SnmpOidTable objects of this SnmpOidDatabase.

Specified by:
getAllEntries in interface SnmpOidTable
Returns:
A vector of SnmpOidTable objects containing all the elements of this SnmpOidDatabase.

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.