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
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
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
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
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
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
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
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
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
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
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
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
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
/**
 * 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
/**
     * 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
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
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
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   Source 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   Source 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
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
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
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
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
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
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
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
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
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
/**
 * Creates an empty <CODE>SnmpOidDatabaseSupport</CODE>.
 */
public SnmpOidDatabaseSupport(){
    tables=new Vector<SnmpOidTable>();
}
 
Example 30
/**
 * 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);
}