Java Code Examples for com.sun.jmx.snmp.SnmpOidTable

The following examples show how to use com.sun.jmx.snmp.SnmpOidTable. These examples are extracted from open source projects. 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: dragonwell8_jdk   Author: alibaba   File: JVM_MANAGEMENT_MIB_IMPL.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static SnmpOidTable getOidTable() {
    SnmpOidTable table = null;
    if(tableRef == null) {
        table =  new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
        return table;
    }

    table = tableRef.get();
    if(table == null) {
        table = new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
    }

    return table;
}
 
Example #2
Source Project: TencentKona-8   Author: Tencent   File: JVM_MANAGEMENT_MIB_IMPL.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static SnmpOidTable getOidTable() {
    SnmpOidTable table = null;
    if(tableRef == null) {
        table =  new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
        return table;
    }

    table = tableRef.get();
    if(table == null) {
        table = new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
    }

    return table;
}
 
Example #3
Source Project: jdk8u60   Author: chenghanpeng   File: JVM_MANAGEMENT_MIB_IMPL.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static SnmpOidTable getOidTable() {
    SnmpOidTable table = null;
    if(tableRef == null) {
        table =  new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
        return table;
    }

    table = tableRef.get();
    if(table == null) {
        table = new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
    }

    return table;
}
 
Example #4
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: JVM_MANAGEMENT_MIB_IMPL.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static SnmpOidTable getOidTable() {
    SnmpOidTable table = null;
    if(tableRef == null) {
        table =  new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
        return table;
    }

    table = tableRef.get();
    if(table == null) {
        table = new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
    }

    return table;
}
 
Example #5
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: JVM_MANAGEMENT_MIB_IMPL.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static SnmpOidTable getOidTable() {
    SnmpOidTable table = null;
    if(tableRef == null) {
        table =  new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
        return table;
    }

    table = tableRef.get();
    if(table == null) {
        table = new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
    }

    return table;
}
 
Example #6
Source Project: jdk8u-jdk   Author: lambdalab-mirror   File: JVM_MANAGEMENT_MIB_IMPL.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static SnmpOidTable getOidTable() {
    SnmpOidTable table = null;
    if(tableRef == null) {
        table =  new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
        return table;
    }

    table = tableRef.get();
    if(table == null) {
        table = new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
    }

    return table;
}
 
Example #7
Source Project: hottub   Author: dsrg-uoft   File: JVM_MANAGEMENT_MIB_IMPL.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static SnmpOidTable getOidTable() {
    SnmpOidTable table = null;
    if(tableRef == null) {
        table =  new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
        return table;
    }

    table = tableRef.get();
    if(table == null) {
        table = new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
    }

    return table;
}
 
Example #8
Source Project: openjdk-8-source   Author: keerath   File: JVM_MANAGEMENT_MIB_IMPL.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static SnmpOidTable getOidTable() {
    SnmpOidTable table = null;
    if(tableRef == null) {
        table =  new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
        return table;
    }

    table = tableRef.get();
    if(table == null) {
        table = new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
    }

    return table;
}
 
Example #9
Source Project: openjdk-8   Author: bpupadhyaya   File: JVM_MANAGEMENT_MIB_IMPL.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static SnmpOidTable getOidTable() {
    SnmpOidTable table = null;
    if(tableRef == null) {
        table =  new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
        return table;
    }

    table = tableRef.get();
    if(table == null) {
        table = new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
    }

    return table;
}
 
Example #10
Source Project: jdk8u_jdk   Author: JetBrains   File: JVM_MANAGEMENT_MIB_IMPL.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static SnmpOidTable getOidTable() {
    SnmpOidTable table = null;
    if(tableRef == null) {
        table =  new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
        return table;
    }

    table = tableRef.get();
    if(table == null) {
        table = new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
    }

    return table;
}
 
Example #11
Source Project: jdk8u-jdk   Author: frohoff   File: JVM_MANAGEMENT_MIB_IMPL.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static SnmpOidTable getOidTable() {
    SnmpOidTable table = null;
    if(tableRef == null) {
        table =  new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
        return table;
    }

    table = tableRef.get();
    if(table == null) {
        table = new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
    }

    return table;
}
 
Example #12
Source Project: jdk8u-dev-jdk   Author: frohoff   File: JVM_MANAGEMENT_MIB_IMPL.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static SnmpOidTable getOidTable() {
    SnmpOidTable table = null;
    if(tableRef == null) {
        table =  new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
        return table;
    }

    table = tableRef.get();
    if(table == null) {
        table = new JVM_MANAGEMENT_MIBOidTable();
        tableRef = new WeakReference<>(table);
    }

    return table;
}
 
Example #13
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: SnmpOidDatabaseSupport.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Removes a <CODE>SnmpOidTable</CODE> object from this <CODE>SnmpOidDatabase</CODE>.
 * @param table The table to be removed.
 * @exception SnmpStatusException The specified <CODE>SnmpOidTable</CODE> does not exist in this <CODE>SnmpOidDatabase</CODE>.
 */
public void remove(SnmpOidTable table) throws SnmpStatusException {
    if (!tables.contains(table)) {
        throw new SnmpStatusException("The specified SnmpOidTable does not exist in this SnmpOidDatabase");
    }
    tables.removeElement(table);
}
 
Example #14
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: SnmpOidDatabaseSupport.java    License: Apache License 2.0 5 votes vote down vote up
/**
     * Returns a list that can be used to traverse all the entries of the <CODE>SnmpOidTable</CODE> objects
     * of this <CODE>SnmpOidDatabase</CODE>.
     * @return A vector of <CODE>SnmpOidTable</CODE> objects containing all the elements of this <CODE>SnmpOidDatabase</CODE>.
     */
    public Vector<?> getAllEntries() {
        Vector<SnmpOidTable> res = new Vector<SnmpOidTable>();
        for (int i=0;i<tables.size();i++) {
            Vector<SnmpOidTable> tmp = cast(tables.elementAt(i).getAllEntries());
            if (tmp != null) {
                for(int ii=0; ii<tmp.size(); ii++) {
                        res.addElement(tmp.elementAt(ii));
                }
            }
        }
//      res.addAll(((SnmpOidTable)tables.elementAt(i)).getAllEntries());
        return res;
    }
 
Example #15
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 #16
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 #17
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 #18
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: SnmpOidDatabaseSupport.java    License: MIT License 5 votes vote down vote up
/**
 * Removes a <CODE>SnmpOidTable</CODE> object from this <CODE>SnmpOidDatabase</CODE>.
 * @param table The table to be removed.
 * @exception SnmpStatusException The specified <CODE>SnmpOidTable</CODE> does not exist in this <CODE>SnmpOidDatabase</CODE>.
 */
public void remove(SnmpOidTable table) throws SnmpStatusException {
    if (!tables.contains(table)) {
        throw new SnmpStatusException("The specified SnmpOidTable does not exist in this SnmpOidDatabase");
    }
    tables.removeElement(table);
}
 
Example #19
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: SnmpOidDatabaseSupport.java    License: MIT License 5 votes vote down vote up
/**
     * Returns a list that can be used to traverse all the entries of the <CODE>SnmpOidTable</CODE> objects
     * of this <CODE>SnmpOidDatabase</CODE>.
     * @return A vector of <CODE>SnmpOidTable</CODE> objects containing all the elements of this <CODE>SnmpOidDatabase</CODE>.
     */
    public Vector<?> getAllEntries() {
        Vector<SnmpOidTable> res = new Vector<SnmpOidTable>();
        for (int i=0;i<tables.size();i++) {
            Vector<SnmpOidTable> tmp = cast(tables.elementAt(i).getAllEntries());
            if (tmp != null) {
                for(int ii=0; ii<tmp.size(); ii++) {
                        res.addElement(tmp.elementAt(ii));
                }
            }
        }
//      res.addAll(((SnmpOidTable)tables.elementAt(i)).getAllEntries());
        return res;
    }
 
Example #20
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 #21
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 #22
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 #23
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 #24
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 #25
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 #26
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 #27
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 #28
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 #29
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: SnmpOidDatabaseSupport.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * Creates an empty <CODE>SnmpOidDatabaseSupport</CODE>.
 */
public SnmpOidDatabaseSupport(){
    tables=new Vector<SnmpOidTable>();
}
 
Example #30
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: SnmpOidDatabaseSupport.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * Creates an <CODE>SnmpOidDatabaseSupport</CODE> containing the specified <CODE>SnmpOidTable</CODE> object.
 * @param table The <CODE>SnmpOidTable</CODE> object used to initialize this <CODE>SnmpOidDatabaseSupport</CODE>.
 */
public SnmpOidDatabaseSupport(SnmpOidTable table){
    tables=new Vector<SnmpOidTable>();
    tables.addElement(table);
}