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 File: SnmpOidDatabaseSupport.java    From JDKSourceCode1.8 with 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 #2
Source File: JvmThreadInstanceEntryImpl.java    From jdk8u-dev-jdk with 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 #3
Source File: JvmThreadInstanceEntryImpl.java    From jdk8u-jdk with 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 File: JvmThreadInstanceEntryImpl.java    From jdk8u_jdk with 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 File: JvmThreadInstanceEntryImpl.java    From openjdk-8 with 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 File: JvmThreadInstanceEntryImpl.java    From openjdk-8-source with 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 #7
Source File: JvmThreadInstanceEntryImpl.java    From hottub with 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 #8
Source File: JvmThreadInstanceEntryImpl.java    From jdk8u-jdk with 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 File: JvmThreadInstanceEntryImpl.java    From openjdk-jdk8u-backup with 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 File: JvmThreadInstanceEntryImpl.java    From openjdk-jdk8u with 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 File: SnmpOidDatabaseSupport.java    From JDKSourceCode1.8 with 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 #12
Source File: JvmThreadInstanceEntryImpl.java    From jdk8u60 with 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 File: JvmThreadInstanceEntryImpl.java    From TencentKona-8 with 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 File: JvmThreadInstanceEntryImpl.java    From dragonwell8_jdk with 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 File: SnmpOidDatabaseSupport.java    From jdk1.8-source-analysis with 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 #16
Source File: SnmpOidDatabaseSupport.java    From jdk1.8-source-analysis with 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 #17
Source File: SnmpOidDatabase.java    From jdk1.8-source-analysis with 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 File: SnmpOidDatabase.java    From JDKSourceCode1.8 with 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;
 
Example #19
Source File: SnmpOidDatabase.java    From JDKSourceCode1.8 with 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 File: SnmpOidDatabase.java    From jdk1.8-source-analysis with 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;