⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 snmpoidrecord.java

📁 java1.6众多例子参考
💻 JAVA
字号:
/* * @(#)file      SnmpOidRecord.java * @(#)author    Sun Microsystems, Inc. * @(#)version   4.12 * @(#)date      08/07/21 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * */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: * <UL> *<LI>"C"       for <CODE>Counter32</CODE> *<LI>"C64"     for <CODE>Counter64</CODE> *<LI>"EN"      for <CODE>Table Entry</CODE> *<LI>"G"       for <CODE>Gauge32</CODE> *<LI>"I"       for <CODE>Integer32</CODE> *<LI>"ID"      for <CODE>OBJECT-IDENTITY</CODE> *<LI>"IP"      for <CODE>IpAddress</CODE> *<LI>"NT"      for <CODE>NOTIFICATION-TYPE</CODE> *<LI>"NU"      for <CODE>Null</CODE> *<LI>"O"       for <CODE>Opaque</CODE> *<LI>"OI"      for <CODE>Object Identifier</CODE> *<LI>"S"       for <CODE>String</CODE> *<LI>"T"       for <CODE>TimeTicks</CODE> *<LI>"TA"      for <CODE>Table</CODE> *<LI>"U"       for <CODE>Unsigned32</CODE> *</UL> * * <p><b>This API is a Sun Microsystems internal API  and is subject  * to change without notice.</b></p> * @see com.sun.jmx.snmp.SnmpOidTable  */public class SnmpOidRecord {    /**     * Creates an <CODE>SnmpOidRecord</CODE> 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;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -