1. /*
  2. * @(#)file SnmpOidTable.java
  3. * @(#)author Sun Microsystems, Inc.
  4. * @(#)version 4.14
  5. * @(#)date 04/09/15
  6. *
  7. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  8. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  9. *
  10. */
  11. // Copyright (c) 1995-96 by Cisco Systems, Inc.
  12. package com.sun.jmx.snmp;
  13. // java import
  14. //
  15. import java.util.Vector;
  16. /**
  17. * Defines the minimum functionality that should be provided by
  18. * a class containing metadata definitions for variables of a MIB.
  19. * A name can be resolved against a table of MIB variables.
  20. * Each entry in the table is an <CODE>SnmpOidRecord</CODE> object that contains a name, a dot-separated OID string,
  21. * and the corresponding SMI type of the variable.
  22. * <P>
  23. * If you need to load a specific <CODE>SnmpOidTable</CODE>, just call the static method
  24. * {@link com.sun.jmx.snmp.SnmpOid#setSnmpOidTable <CODE>SnmpOid.setSnmpOidTable(<I>myOidTable</I>)</CODE>}.
  25. *
  26. * <p><b>This API is a Sun Microsystems internal API and is subject
  27. * to change without notice.</b></p>
  28. * @see com.sun.jmx.snmp.SnmpOidRecord
  29. *
  30. * @version 4.14 12/19/03
  31. * @author Sun Microsystems, Inc
  32. *
  33. */
  34. public interface SnmpOidTable {
  35. /**
  36. * Searches for a MIB variable given its logical name and returns an {@link com.sun.jmx.snmp.SnmpOidRecord} object
  37. * containing information on the variable.
  38. *
  39. * @param name The name of the MIB variable.
  40. * @return The <CODE>SnmpOidRecord</CODE> object containing information on the variable.
  41. * @exception SnmpStatusException If the variable is not found.
  42. */
  43. public SnmpOidRecord resolveVarName(String name)
  44. throws SnmpStatusException;
  45. /**
  46. * Searches for a MIB variable given its OID and returns an {@link com.sun.jmx.snmp.SnmpOidRecord} object
  47. * containing information on the variable.
  48. *
  49. * @param oid The OID of the MIB variable.
  50. * @return The <CODE>SnmpOidRecord</CODE> object containing information
  51. * on the variable.
  52. * @exception SnmpStatusException If the variable is not found.
  53. */
  54. public SnmpOidRecord resolveVarOid(String oid)
  55. throws SnmpStatusException;
  56. /**
  57. * Returns a list that can be used to traverse all the entries this <CODE>SnmpOidTable</CODE>.
  58. * @return A Vector of {@link com.sun.jmx.snmp.SnmpOidRecord} objects.
  59. */
  60. public Vector getAllEntries();
  61. }