com.sun.jmx.snmp.SnmpOidRecord Java Examples

The following examples show how to use com.sun.jmx.snmp.SnmpOidRecord. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: SnmpOidDatabaseSupport.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Searches for a MIB variable given its logical name and returns an <CODE>SnmpOidRecord</CODE>
 * object containing information on the variable.
 * @param name The name of the MIB variable.
 * @return The <CODE>SnmpOidRecord</CODE> object containing information on the variable.
 *
 * @exception SnmpStatusException The specified name does not exist in this <CODE>SnmpOidDatabase</CODE>
 */
public SnmpOidRecord resolveVarName(String name) throws SnmpStatusException {
    for (int i=0;i<tables.size();i++) {
        try {
            return (tables.elementAt(i).resolveVarName(name));
        }
        catch (SnmpStatusException e) {
            if (i==tables.size()-1) {
                throw new SnmpStatusException(e.getMessage());
            }
        }
    }
    return null;
}
 
Example #2
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: SnmpOidDatabaseSupport.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Searches for a MIB variable given its OID and returns an <CODE>SnmpOidRecord</CODE> object containing
 * information on the variable.
 * @param oid The OID of the MIB variable.
 * @return The <CODE>SnmpOidRecord</CODE> object containing information on the variable.
 * @exception SnmpStatusException The specified oid does not exist in this <CODE>SnmpOidDatabase</CODE>.
 */
public SnmpOidRecord resolveVarOid(String oid) throws SnmpStatusException {
    for (int i=0;i<tables.size();i++) {
        try {
            return tables.elementAt(i).resolveVarOid(oid);
        }
        catch (SnmpStatusException e) {
            if (i==tables.size()-1) {
                throw new SnmpStatusException(e.getMessage());
            }
        }
    }
    return null;
}
 
Example #3
Source Project: dragonwell8_jdk   Author: alibaba   File: JvmThreadInstanceEntryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static String getJvmThreadInstIndexOid()
    throws SnmpStatusException {
    if (jvmThreadInstIndexOid == null) {
        final SnmpOidTable  table = new JVM_MANAGEMENT_MIBOidTable();
        final SnmpOidRecord record =
            table.resolveVarName("jvmThreadInstIndex");
        jvmThreadInstIndexOid = record.getOid();
    }
    return jvmThreadInstIndexOid;
}
 
Example #4
Source Project: TencentKona-8   Author: Tencent   File: JvmThreadInstanceEntryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static String getJvmThreadInstIndexOid()
    throws SnmpStatusException {
    if (jvmThreadInstIndexOid == null) {
        final SnmpOidTable  table = new JVM_MANAGEMENT_MIBOidTable();
        final SnmpOidRecord record =
            table.resolveVarName("jvmThreadInstIndex");
        jvmThreadInstIndexOid = record.getOid();
    }
    return jvmThreadInstIndexOid;
}
 
Example #5
Source Project: jdk8u60   Author: chenghanpeng   File: JvmThreadInstanceEntryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static String getJvmThreadInstIndexOid()
    throws SnmpStatusException {
    if (jvmThreadInstIndexOid == null) {
        final SnmpOidTable  table = new JVM_MANAGEMENT_MIBOidTable();
        final SnmpOidRecord record =
            table.resolveVarName("jvmThreadInstIndex");
        jvmThreadInstIndexOid = record.getOid();
    }
    return jvmThreadInstIndexOid;
}
 
Example #6
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: SnmpOidDatabaseSupport.java    License: MIT License 5 votes vote down vote up
/**
 * Searches for a MIB variable given its logical name and returns an <CODE>SnmpOidRecord</CODE>
 * object containing information on the variable.
 * @param name The name of the MIB variable.
 * @return The <CODE>SnmpOidRecord</CODE> object containing information on the variable.
 *
 * @exception SnmpStatusException The specified name does not exist in this <CODE>SnmpOidDatabase</CODE>
 */
public SnmpOidRecord resolveVarName(String name) throws SnmpStatusException {
    for (int i=0;i<tables.size();i++) {
        try {
            return (tables.elementAt(i).resolveVarName(name));
        }
        catch (SnmpStatusException e) {
            if (i==tables.size()-1) {
                throw new SnmpStatusException(e.getMessage());
            }
        }
    }
    return null;
}
 
Example #7
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: SnmpOidDatabaseSupport.java    License: MIT License 5 votes vote down vote up
/**
 * Searches for a MIB variable given its OID and returns an <CODE>SnmpOidRecord</CODE> object containing
 * information on the variable.
 * @param oid The OID of the MIB variable.
 * @return The <CODE>SnmpOidRecord</CODE> object containing information on the variable.
 * @exception SnmpStatusException The specified oid does not exist in this <CODE>SnmpOidDatabase</CODE>.
 */
public SnmpOidRecord resolveVarOid(String oid) throws SnmpStatusException {
    for (int i=0;i<tables.size();i++) {
        try {
            return tables.elementAt(i).resolveVarOid(oid);
        }
        catch (SnmpStatusException e) {
            if (i==tables.size()-1) {
                throw new SnmpStatusException(e.getMessage());
            }
        }
    }
    return null;
}
 
Example #8
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: JvmThreadInstanceEntryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static String getJvmThreadInstIndexOid()
    throws SnmpStatusException {
    if (jvmThreadInstIndexOid == null) {
        final SnmpOidTable  table = new JVM_MANAGEMENT_MIBOidTable();
        final SnmpOidRecord record =
            table.resolveVarName("jvmThreadInstIndex");
        jvmThreadInstIndexOid = record.getOid();
    }
    return jvmThreadInstIndexOid;
}
 
Example #9
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: JvmThreadInstanceEntryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static String getJvmThreadInstIndexOid()
    throws SnmpStatusException {
    if (jvmThreadInstIndexOid == null) {
        final SnmpOidTable  table = new JVM_MANAGEMENT_MIBOidTable();
        final SnmpOidRecord record =
            table.resolveVarName("jvmThreadInstIndex");
        jvmThreadInstIndexOid = record.getOid();
    }
    return jvmThreadInstIndexOid;
}
 
Example #10
Source Project: jdk8u-jdk   Author: lambdalab-mirror   File: JvmThreadInstanceEntryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static String getJvmThreadInstIndexOid()
    throws SnmpStatusException {
    if (jvmThreadInstIndexOid == null) {
        final SnmpOidTable  table = new JVM_MANAGEMENT_MIBOidTable();
        final SnmpOidRecord record =
            table.resolveVarName("jvmThreadInstIndex");
        jvmThreadInstIndexOid = record.getOid();
    }
    return jvmThreadInstIndexOid;
}
 
Example #11
Source Project: hottub   Author: dsrg-uoft   File: JvmThreadInstanceEntryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static String getJvmThreadInstIndexOid()
    throws SnmpStatusException {
    if (jvmThreadInstIndexOid == null) {
        final SnmpOidTable  table = new JVM_MANAGEMENT_MIBOidTable();
        final SnmpOidRecord record =
            table.resolveVarName("jvmThreadInstIndex");
        jvmThreadInstIndexOid = record.getOid();
    }
    return jvmThreadInstIndexOid;
}
 
Example #12
Source Project: openjdk-8-source   Author: keerath   File: JvmThreadInstanceEntryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static String getJvmThreadInstIndexOid()
    throws SnmpStatusException {
    if (jvmThreadInstIndexOid == null) {
        final SnmpOidTable  table = new JVM_MANAGEMENT_MIBOidTable();
        final SnmpOidRecord record =
            table.resolveVarName("jvmThreadInstIndex");
        jvmThreadInstIndexOid = record.getOid();
    }
    return jvmThreadInstIndexOid;
}
 
Example #13
Source Project: openjdk-8   Author: bpupadhyaya   File: JvmThreadInstanceEntryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static String getJvmThreadInstIndexOid()
    throws SnmpStatusException {
    if (jvmThreadInstIndexOid == null) {
        final SnmpOidTable  table = new JVM_MANAGEMENT_MIBOidTable();
        final SnmpOidRecord record =
            table.resolveVarName("jvmThreadInstIndex");
        jvmThreadInstIndexOid = record.getOid();
    }
    return jvmThreadInstIndexOid;
}
 
Example #14
Source Project: jdk8u_jdk   Author: JetBrains   File: JvmThreadInstanceEntryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static String getJvmThreadInstIndexOid()
    throws SnmpStatusException {
    if (jvmThreadInstIndexOid == null) {
        final SnmpOidTable  table = new JVM_MANAGEMENT_MIBOidTable();
        final SnmpOidRecord record =
            table.resolveVarName("jvmThreadInstIndex");
        jvmThreadInstIndexOid = record.getOid();
    }
    return jvmThreadInstIndexOid;
}
 
Example #15
Source Project: jdk8u-jdk   Author: frohoff   File: JvmThreadInstanceEntryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static String getJvmThreadInstIndexOid()
    throws SnmpStatusException {
    if (jvmThreadInstIndexOid == null) {
        final SnmpOidTable  table = new JVM_MANAGEMENT_MIBOidTable();
        final SnmpOidRecord record =
            table.resolveVarName("jvmThreadInstIndex");
        jvmThreadInstIndexOid = record.getOid();
    }
    return jvmThreadInstIndexOid;
}
 
Example #16
Source Project: jdk8u-dev-jdk   Author: frohoff   File: JvmThreadInstanceEntryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static String getJvmThreadInstIndexOid()
    throws SnmpStatusException {
    if (jvmThreadInstIndexOid == null) {
        final SnmpOidTable  table = new JVM_MANAGEMENT_MIBOidTable();
        final SnmpOidRecord record =
            table.resolveVarName("jvmThreadInstIndex");
        jvmThreadInstIndexOid = record.getOid();
    }
    return jvmThreadInstIndexOid;
}
 
Example #17
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: SnmpOidDatabase.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Searches for a MIB variable given its logical name and returns an <CODE>SnmpOidRecord</CODE>
 * object containing information on the variable.
 * @param name The name of the MIB variable.
 * @return The <CODE>SnmpOidRecord</CODE> object containing information on the variable.
 */
public SnmpOidRecord resolveVarName(String name) throws SnmpStatusException ;
 
Example #18
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: SnmpOidDatabase.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Searches for a MIB variable given its OID and returns an <CODE>SnmpOidRecord</CODE> object containing
 * information on the variable.
 * @param oid The OID of the MIB variable.
 * @return The <CODE>SnmpOidRecord</CODE> object containing information on the variable.
 */
public SnmpOidRecord resolveVarOid(String oid) throws SnmpStatusException;
 
Example #19
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: SnmpOidDatabase.java    License: MIT License 2 votes vote down vote up
/**
 * Searches for a MIB variable given its logical name and returns an <CODE>SnmpOidRecord</CODE>
 * object containing information on the variable.
 * @param name The name of the MIB variable.
 * @return The <CODE>SnmpOidRecord</CODE> object containing information on the variable.
 */
public SnmpOidRecord resolveVarName(String name) throws SnmpStatusException ;
 
Example #20
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: SnmpOidDatabase.java    License: MIT License 2 votes vote down vote up
/**
 * Searches for a MIB variable given its OID and returns an <CODE>SnmpOidRecord</CODE> object containing
 * information on the variable.
 * @param oid The OID of the MIB variable.
 * @return The <CODE>SnmpOidRecord</CODE> object containing information on the variable.
 */
public SnmpOidRecord resolveVarOid(String oid) throws SnmpStatusException;