com.sun.jmx.snmp.SnmpOidTable Java Examples
The following examples show how to use
com.sun.jmx.snmp.SnmpOidTable.
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: JVM_MANAGEMENT_MIB_IMPL.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
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 File: JVM_MANAGEMENT_MIB_IMPL.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
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 File: JVM_MANAGEMENT_MIB_IMPL.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
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 File: JVM_MANAGEMENT_MIB_IMPL.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
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 File: JVM_MANAGEMENT_MIB_IMPL.java From hottub with GNU General Public License v2.0 | 6 votes |
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 File: JVM_MANAGEMENT_MIB_IMPL.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
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 File: JVM_MANAGEMENT_MIB_IMPL.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
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 File: JVM_MANAGEMENT_MIB_IMPL.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
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 File: JVM_MANAGEMENT_MIB_IMPL.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
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 File: JVM_MANAGEMENT_MIB_IMPL.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
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 File: JVM_MANAGEMENT_MIB_IMPL.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
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 File: JVM_MANAGEMENT_MIB_IMPL.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
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 File: JvmThreadInstanceEntryImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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: SnmpOidDatabaseSupport.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * 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 File: JvmThreadInstanceEntryImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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 File: JvmThreadInstanceEntryImpl.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
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 File: JvmThreadInstanceEntryImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
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 File: JvmThreadInstanceEntryImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
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 #19
Source File: JvmThreadInstanceEntryImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
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 #20
Source File: JvmThreadInstanceEntryImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
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 File: JvmThreadInstanceEntryImpl.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
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 File: JvmThreadInstanceEntryImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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 File: SnmpOidDatabaseSupport.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * 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 #24
Source File: JvmThreadInstanceEntryImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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 File: JvmThreadInstanceEntryImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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 File: JvmThreadInstanceEntryImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
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 File: SnmpOidDatabaseSupport.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * 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 #28
Source File: SnmpOidDatabaseSupport.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * 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 #29
Source File: SnmpOidDatabaseSupport.java From JDKSourceCode1.8 with MIT License | 4 votes |
/** * Adds a <CODE>SnmpOidTable</CODE> object in this <CODE>SnmpOidDatabase</CODE>. * @param table The table to add. */ public void add(SnmpOidTable table) { if (!tables.contains(table)) { tables.addElement(table); } }
Example #30
Source File: SnmpOidDatabaseSupport.java From JDKSourceCode1.8 with MIT License | 4 votes |
/** * 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); }