/* * * 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; /** * Represents an entry of an {@link com.sun.jmx.snmp.SnmpOidTable SnmpOidTable}. It contains the name of the MIB variable, * the corresponding OID and its type. * The type is represented using one of the following: * * *

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

* @see com.sun.jmx.snmp.SnmpOidTable */ public class SnmpOidRecord { /** * Creates an SnmpOidRecord with the specified MIB variable * name, OID and type. * @param name The logical name of the MIB variable. * @param oid The OID of the MIB variable. * @param type The type of the MIB variable. */ public SnmpOidRecord(String name, String oid, String type) { this.name = name; this.oid = oid; this.type = type; } /** * Gets the logical name of the MIB variable. * @return The MIB variable name. */ public String getName() { return name; } /** * Gets the OID of the MIB variable. * @return The MIB variable OID. */ public String getOid() { return oid; } /** * Gets the type of the MIB variable. * @return The MIB variable type. */ public String getType() { return type; } // PRIVATE VARIABLES /** * The MIB variable name. */ private String name; /** * The MIB variable OID. */ private String oid; /** * The MIB variable type. */ private String type; }