/* * * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ // Copyright (c) 1995-96 by Cisco Systems, Inc. package com.sun.jmx.snmp; // java import // import java.util.Vector; // jmx import // import com.sun.jmx.snmp.SnmpOidTable; import com.sun.jmx.snmp.SnmpOidRecord; import com.sun.jmx.snmp.SnmpStatusException; /** * 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. *

*

This API is a Sun Microsystems internal API and is subject * to change without notice.

* @see com.sun.jmx.snmp.SnmpOidTable */ public interface SnmpOidDatabase extends SnmpOidTable { /** * Adds an SnmpOidTable object in this SnmpOidDatabase. * @param table The table to add. */ public void add(SnmpOidTable table); /** * Removes an SnmpOidTable object from this SnmpOidDatabase. * @param table The table to be removed. */ public void remove(SnmpOidTable table) throws SnmpStatusException; /** * Removes all the SnmpOidTable objects from this SnmpOidDatabase. */ public void removeAll(); /** * Searches for a MIB variable given its logical name and returns an SnmpOidRecord * object containing information on the variable. * @param name The name of the MIB variable. * @return The SnmpOidRecord object containing information on the variable. */ public SnmpOidRecord resolveVarName(String name) throws SnmpStatusException ; /** * Searches for a MIB variable given its OID and returns an SnmpOidRecord object containing * information on the variable. * @param oid The OID of the MIB variable. * @return The SnmpOidRecord object containing information on the variable. */ public SnmpOidRecord resolveVarOid(String oid) throws SnmpStatusException; /** * Returns a list that can be used to traverse all the entries of the SnmpOidTable objects * of this SnmpOidDatabase. * @return A vector of SnmpOidTable objects containing all the elements of this SnmpOidDatabase. */ public Vector getAllEntries() ; // We can't specify Vector because the subinterface SnmpOidTable // overrides this method to return Vector }