com.sun.jmx.snmp.agent.SnmpMib Java Examples

The following examples show how to use com.sun.jmx.snmp.agent.SnmpMib. 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: JvmThreadInstanceEntryMeta.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmThreadInstanceEntry".
 */
public JvmThreadInstanceEntryMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    varList = new int[10];
    varList[0] = 9;
    varList[1] = 8;
    varList[2] = 7;
    varList[3] = 6;
    varList[4] = 5;
    varList[5] = 4;
    varList[6] = 3;
    varList[7] = 11;
    varList[8] = 2;
    varList[9] = 10;
    SnmpMibNode.sort(varList);
}
 
Example #2
Source File: JvmMemoryMeta.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmMemory".
 */
public JvmMemoryMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    try {
        registerObject(120);
        registerObject(23);
        registerObject(22);
        registerObject(21);
        registerObject(110);
        registerObject(20);
        registerObject(13);
        registerObject(12);
        registerObject(3);
        registerObject(11);
        registerObject(2);
        registerObject(101);
        registerObject(10);
        registerObject(1);
        registerObject(100);
    } catch (IllegalAccessException e) {
        throw new RuntimeException(e.getMessage());
    }
}
 
Example #3
Source File: JvmRuntimeMeta.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmRuntime".
 */
public JvmRuntimeMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    try {
        registerObject(23);
        registerObject(22);
        registerObject(21);
        registerObject(9);
        registerObject(20);
        registerObject(8);
        registerObject(7);
        registerObject(6);
        registerObject(5);
        registerObject(4);
        registerObject(3);
        registerObject(12);
        registerObject(11);
        registerObject(2);
        registerObject(1);
        registerObject(10);
    } catch (IllegalAccessException e) {
        throw new RuntimeException(e.getMessage());
    }
}
 
Example #4
Source File: JvmMemPoolEntryMeta.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmMemPoolEntry".
 */
public JvmMemPoolEntryMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    varList = new int[20];
    varList[0] = 33;
    varList[1] = 32;
    varList[2] = 31;
    varList[3] = 133;
    varList[4] = 132;
    varList[5] = 131;
    varList[6] = 13;
    varList[7] = 12;
    varList[8] = 11;
    varList[9] = 10;
    varList[10] = 112;
    varList[11] = 111;
    varList[12] = 110;
    varList[13] = 5;
    varList[14] = 4;
    varList[15] = 3;
    varList[16] = 2;
    varList[17] = 23;
    varList[18] = 22;
    varList[19] = 21;
    SnmpMibNode.sort(varList);
}
 
Example #5
Source File: JvmMemPoolEntryMeta.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmMemPoolEntry".
 */
public JvmMemPoolEntryMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    varList = new int[20];
    varList[0] = 33;
    varList[1] = 32;
    varList[2] = 31;
    varList[3] = 133;
    varList[4] = 132;
    varList[5] = 131;
    varList[6] = 13;
    varList[7] = 12;
    varList[8] = 11;
    varList[9] = 10;
    varList[10] = 112;
    varList[11] = 111;
    varList[12] = 110;
    varList[13] = 5;
    varList[14] = 4;
    varList[15] = 3;
    varList[16] = 2;
    varList[17] = 23;
    varList[18] = 22;
    varList[19] = 21;
    SnmpMibNode.sort(varList);
}
 
Example #6
Source File: JvmRTClassPathEntryMeta.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmRTClassPathEntry".
 */
public JvmRTClassPathEntryMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    varList = new int[1];
    varList[0] = 2;
    SnmpMibNode.sort(varList);
}
 
Example #7
Source File: JvmRTInputArgsEntryMeta.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmRTInputArgsEntry".
 */
public JvmRTInputArgsEntryMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    varList = new int[1];
    varList[0] = 2;
    SnmpMibNode.sort(varList);
}
 
Example #8
Source File: JvmOSMeta.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmOS".
 */
public JvmOSMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    try {
        registerObject(4);
        registerObject(3);
        registerObject(2);
        registerObject(1);
    } catch (IllegalAccessException e) {
        throw new RuntimeException(e.getMessage());
    }
}
 
Example #9
Source File: JvmClassLoadingMeta.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmClassLoading".
 */
public JvmClassLoadingMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    try {
        registerObject(4);
        registerObject(3);
        registerObject(2);
        registerObject(1);
    } catch (IllegalAccessException e) {
        throw new RuntimeException(e.getMessage());
    }
}
 
Example #10
Source File: JvmMemManagerEntryMeta.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmMemManagerEntry".
 */
public JvmMemManagerEntryMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    varList = new int[2];
    varList[0] = 3;
    varList[1] = 2;
    SnmpMibNode.sort(varList);
}
 
Example #11
Source File: JvmMemMgrPoolRelTableMetaImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private final JvmMemManagerTableMetaImpl getManagers(SnmpMib mib) {
    if (managers == null) {
        managers = (JvmMemManagerTableMetaImpl)
            mib.getRegisteredTableMeta("JvmMemManagerTable");
    }
    return managers;
}
 
Example #12
Source File: JvmRuntimeMeta.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Register the group's SnmpMibTable objects with the meta-data.
 */
public void registerTableNodes(SnmpMib mib, MBeanServer server) {
    tableJvmRTLibraryPathTable = createJvmRTLibraryPathTableMetaNode("JvmRTLibraryPathTable", "JvmRuntime", mib, server);
    if ( tableJvmRTLibraryPathTable != null)  {
        tableJvmRTLibraryPathTable.registerEntryNode(mib,server);
        mib.registerTableMeta("JvmRTLibraryPathTable", tableJvmRTLibraryPathTable);
    }

    tableJvmRTClassPathTable = createJvmRTClassPathTableMetaNode("JvmRTClassPathTable", "JvmRuntime", mib, server);
    if ( tableJvmRTClassPathTable != null)  {
        tableJvmRTClassPathTable.registerEntryNode(mib,server);
        mib.registerTableMeta("JvmRTClassPathTable", tableJvmRTClassPathTable);
    }

    tableJvmRTBootClassPathTable = createJvmRTBootClassPathTableMetaNode("JvmRTBootClassPathTable", "JvmRuntime", mib, server);
    if ( tableJvmRTBootClassPathTable != null)  {
        tableJvmRTBootClassPathTable.registerEntryNode(mib,server);
        mib.registerTableMeta("JvmRTBootClassPathTable", tableJvmRTBootClassPathTable);
    }

    tableJvmRTInputArgsTable = createJvmRTInputArgsTableMetaNode("JvmRTInputArgsTable", "JvmRuntime", mib, server);
    if ( tableJvmRTInputArgsTable != null)  {
        tableJvmRTInputArgsTable.registerEntryNode(mib,server);
        mib.registerTableMeta("JvmRTInputArgsTable", tableJvmRTInputArgsTable);
    }

}
 
Example #13
Source File: JvmMemMgrPoolRelTableMetaImpl.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor for the table. Initialize metadata for
 * "JvmMemMgrPoolRelTableMeta".
 * The reference on the MBean server is updated so the entries
 * created through an SNMP SET will be AUTOMATICALLY REGISTERED
 * in Java DMK.
 */
public JvmMemMgrPoolRelTableMetaImpl(SnmpMib myMib,
                                  SnmpStandardObjectServer objserv) {
    super(myMib,objserv);
    this.cache = new
        JvmMemMgrPoolRelTableCache(this,((JVM_MANAGEMENT_MIB_IMPL)myMib).
                                   validity());
}
 
Example #14
Source File: JvmOSMeta.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmOS".
 */
public JvmOSMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    try {
        registerObject(4);
        registerObject(3);
        registerObject(2);
        registerObject(1);
    } catch (IllegalAccessException e) {
        throw new RuntimeException(e.getMessage());
    }
}
 
Example #15
Source File: JvmMemGCEntryMeta.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmMemGCEntry".
 */
public JvmMemGCEntryMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    varList = new int[2];
    varList[0] = 3;
    varList[1] = 2;
    SnmpMibNode.sort(varList);
}
 
Example #16
Source File: JvmMemManagerTableMetaImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor for the table. Initialize metadata for
 * "JvmMemManagerTableMeta".
 * The reference on the MBean server is updated so the entries
 * created through an SNMP SET will be AUTOMATICALLY REGISTERED
 * in Java DMK.
 */
public JvmMemManagerTableMetaImpl(SnmpMib myMib,
                                  SnmpStandardObjectServer objserv) {
    super(myMib,objserv);
    this.cache = new
        JvmMemManagerTableCache(((JVM_MANAGEMENT_MIB_IMPL)myMib).
                                validity());
}
 
Example #17
Source File: JvmRuntimeMeta.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Register the group's SnmpMibTable objects with the meta-data.
 */
public void registerTableNodes(SnmpMib mib, MBeanServer server) {
    tableJvmRTLibraryPathTable = createJvmRTLibraryPathTableMetaNode("JvmRTLibraryPathTable", "JvmRuntime", mib, server);
    if ( tableJvmRTLibraryPathTable != null)  {
        tableJvmRTLibraryPathTable.registerEntryNode(mib,server);
        mib.registerTableMeta("JvmRTLibraryPathTable", tableJvmRTLibraryPathTable);
    }

    tableJvmRTClassPathTable = createJvmRTClassPathTableMetaNode("JvmRTClassPathTable", "JvmRuntime", mib, server);
    if ( tableJvmRTClassPathTable != null)  {
        tableJvmRTClassPathTable.registerEntryNode(mib,server);
        mib.registerTableMeta("JvmRTClassPathTable", tableJvmRTClassPathTable);
    }

    tableJvmRTBootClassPathTable = createJvmRTBootClassPathTableMetaNode("JvmRTBootClassPathTable", "JvmRuntime", mib, server);
    if ( tableJvmRTBootClassPathTable != null)  {
        tableJvmRTBootClassPathTable.registerEntryNode(mib,server);
        mib.registerTableMeta("JvmRTBootClassPathTable", tableJvmRTBootClassPathTable);
    }

    tableJvmRTInputArgsTable = createJvmRTInputArgsTableMetaNode("JvmRTInputArgsTable", "JvmRuntime", mib, server);
    if ( tableJvmRTInputArgsTable != null)  {
        tableJvmRTInputArgsTable.registerEntryNode(mib,server);
        mib.registerTableMeta("JvmRTInputArgsTable", tableJvmRTInputArgsTable);
    }

}
 
Example #18
Source File: JvmRTInputArgsEntryMeta.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmRTInputArgsEntry".
 */
public JvmRTInputArgsEntryMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    varList = new int[1];
    varList[0] = 2;
    SnmpMibNode.sort(varList);
}
 
Example #19
Source File: JvmThreadInstanceTableMetaImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor for the table. Initialize metadata for
 * "JvmThreadInstanceTableMeta".
 * The reference on the MBean server is updated so the entries created
 * through an SNMP SET will be AUTOMATICALLY REGISTERED in Java DMK.
 */
public JvmThreadInstanceTableMetaImpl(SnmpMib myMib,
                                      SnmpStandardObjectServer objserv) {
    super(myMib, objserv);
    cache = new JvmThreadInstanceTableCache(this,
                        ((JVM_MANAGEMENT_MIB_IMPL)myMib).validity());
    log.debug("JvmThreadInstanceTableMetaImpl", "Create Thread meta");
}
 
Example #20
Source File: JvmMemGCEntryMeta.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmMemGCEntry".
 */
public JvmMemGCEntryMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    objectserver = objserv;
    varList = new int[2];
    varList[0] = 3;
    varList[1] = 2;
    SnmpMibNode.sort(varList);
}
 
Example #21
Source File: JvmRTLibraryPathTableMeta.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor for the table. Initialize metadata for "JvmRTLibraryPathTableMeta".
 * The reference on the MBean server is updated so the entries created through an SNMP SET will be AUTOMATICALLY REGISTERED in Java DMK.
 */
public JvmRTLibraryPathTableMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    super(myMib);
    objectserver = objserv;
}
 
Example #22
Source File: JvmMemGCTableMeta.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public void registerEntryNode(SnmpMib mib, MBeanServer server)  {
    node = createJvmMemGCEntryMetaNode("JvmMemGCEntry", "JvmMemGCTable", mib, server);
}
 
Example #23
Source File: JvmMemPoolTableMeta.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor for the table. Initialize metadata for "JvmMemPoolTableMeta".
 * The reference on the MBean server is updated so the entries created through an SNMP SET will be AUTOMATICALLY REGISTERED in Java DMK.
 */
public JvmMemPoolTableMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    super(myMib);
    objectserver = objserv;
}
 
Example #24
Source File: JvmThreadingMetaImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor for the metadata associated to "JvmThreading".
 */
public JvmThreadingMetaImpl(SnmpMib myMib,
                            SnmpStandardObjectServer objserv) {
    super(myMib, objserv);
}
 
Example #25
Source File: JvmMemManagerTableMeta.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public void registerEntryNode(SnmpMib mib, MBeanServer server)  {
    node = createJvmMemManagerEntryMetaNode("JvmMemManagerEntry", "JvmMemManagerTable", mib, server);
}
 
Example #26
Source File: JvmMemPoolTableMeta.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
public void registerEntryNode(SnmpMib mib, MBeanServer server)  {
    node = createJvmMemPoolEntryMetaNode("JvmMemPoolEntry", "JvmMemPoolTable", mib, server);
}
 
Example #27
Source File: JvmRTInputArgsTableMeta.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor for the table. Initialize metadata for "JvmRTInputArgsTableMeta".
 * The reference on the MBean server is updated so the entries created through an SNMP SET will be AUTOMATICALLY REGISTERED in Java DMK.
 */
public JvmRTInputArgsTableMeta(SnmpMib myMib, SnmpStandardObjectServer objserv) {
    super(myMib);
    objectserver = objserv;
}
 
Example #28
Source File: JvmRTLibraryPathTableMeta.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public void registerEntryNode(SnmpMib mib, MBeanServer server)  {
    node = createJvmRTLibraryPathEntryMetaNode("JvmRTLibraryPathEntry", "JvmRTLibraryPathTable", mib, server);
}
 
Example #29
Source File: JvmMemPoolTableMeta.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
public void registerEntryNode(SnmpMib mib, MBeanServer server)  {
    node = createJvmMemPoolEntryMetaNode("JvmMemPoolEntry", "JvmMemPoolTable", mib, server);
}
 
Example #30
Source File: JvmRTBootClassPathTableMeta.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void registerEntryNode(SnmpMib mib, MBeanServer server)  {
    node = createJvmRTBootClassPathEntryMetaNode("JvmRTBootClassPathEntry", "JvmRTBootClassPathTable", mib, server);
}