1. /*
  2. * @(#)file SnmpOidRecord.java
  3. * @(#)author Sun Microsystems, Inc.
  4. * @(#)version 4.11
  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. package com.sun.jmx.snmp;
  12. /**
  13. * Represents an entry of an {@link com.sun.jmx.snmp.SnmpOidTable SnmpOidTable}. It contains the name of the MIB variable,
  14. * the corresponding OID and its type.
  15. * The type is represented using one of the following:
  16. * <UL>
  17. *<LI>"C" for <CODE>Counter32</CODE>
  18. *<LI>"C64" for <CODE>Counter64</CODE>
  19. *<LI>"EN" for <CODE>Table Entry</CODE>
  20. *<LI>"G" for <CODE>Gauge32</CODE>
  21. *<LI>"I" for <CODE>Integer32</CODE>
  22. *<LI>"ID" for <CODE>OBJECT-IDENTITY</CODE>
  23. *<LI>"IP" for <CODE>IpAddress</CODE>
  24. *<LI>"NT" for <CODE>NOTIFICATION-TYPE</CODE>
  25. *<LI>"NU" for <CODE>Null</CODE>
  26. *<LI>"O" for <CODE>Opaque</CODE>
  27. *<LI>"OI" for <CODE>Object Identifier</CODE>
  28. *<LI>"S" for <CODE>String</CODE>
  29. *<LI>"T" for <CODE>TimeTicks</CODE>
  30. *<LI>"TA" for <CODE>Table</CODE>
  31. *<LI>"U" for <CODE>Unsigned32</CODE>
  32. *</UL>
  33. *
  34. * <p><b>This API is a Sun Microsystems internal API and is subject
  35. * to change without notice.</b></p>
  36. * @see com.sun.jmx.snmp.SnmpOidTable
  37. */
  38. public class SnmpOidRecord {
  39. /**
  40. * Creates an <CODE>SnmpOidRecord</CODE> with the specified MIB variable
  41. * name, OID and type.
  42. * @param name The logical name of the MIB variable.
  43. * @param oid The OID of the MIB variable.
  44. * @param type The type of the MIB variable.
  45. */
  46. public SnmpOidRecord(String name, String oid, String type) {
  47. this.name = name;
  48. this.oid = oid;
  49. this.type = type;
  50. }
  51. /**
  52. * Gets the logical name of the MIB variable.
  53. * @return The MIB variable name.
  54. */
  55. public String getName() {
  56. return name;
  57. }
  58. /**
  59. * Gets the OID of the MIB variable.
  60. * @return The MIB variable OID.
  61. */
  62. public String getOid() {
  63. return oid;
  64. }
  65. /**
  66. * Gets the type of the MIB variable.
  67. * @return The MIB variable type.
  68. */
  69. public String getType() {
  70. return type;
  71. }
  72. // PRIVATE VARIABLES
  73. /**
  74. * The MIB variable name.
  75. */
  76. private String name;
  77. /**
  78. * The MIB variable OID.
  79. */
  80. private String oid;
  81. /**
  82. * The MIB variable type.
  83. */
  84. private String type;
  85. }