Package com.sun.jmx.snmp

Examples of com.sun.jmx.snmp.SnmpCounter64


        switch((int)var) {
            case 3:
                return new SnmpInt(node.getJvmJITCompilerTimeMonitoring());

            case 2:
                return new SnmpCounter64(node.getJvmJITCompilerTimeMs());

            case 1:
                return new SnmpString(node.getJvmJITCompilerName());

            default:
View Full Code Here


     */
    public SnmpValue get(long var, Object data)
        throws SnmpStatusException {
        switch((int)var) {
            case 3:
                return new SnmpCounter64(node.getJvmMemGCTimeMs());

            case 2:
                return new SnmpCounter64(node.getJvmMemGCCount());

            default:
                break;
        }
        throw new SnmpStatusException(SnmpStatusException.noSuchObject);
View Full Code Here

            case 120: {
                throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
                }

            case 23:
                return new SnmpCounter64(node.getJvmMemoryNonHeapMaxSize());

            case 22:
                return new SnmpCounter64(node.getJvmMemoryNonHeapCommitted());

            case 21:
                return new SnmpCounter64(node.getJvmMemoryNonHeapUsed());

            case 110: {
                throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
                }

            case 20:
                return new SnmpCounter64(node.getJvmMemoryNonHeapInitSize());

            case 13:
                return new SnmpCounter64(node.getJvmMemoryHeapMaxSize());

            case 12:
                return new SnmpCounter64(node.getJvmMemoryHeapCommitted());

            case 3:
                return new SnmpInt(node.getJvmMemoryGCCall());

            case 11:
                return new SnmpCounter64(node.getJvmMemoryHeapUsed());

            case 2:
                return new SnmpInt(node.getJvmMemoryGCVerboseLevel());

            case 101: {
                throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
                }

            case 10:
                return new SnmpCounter64(node.getJvmMemoryHeapInitSize());

            case 1:
                return new SnmpGauge(node.getJvmMemoryPendingFinalCount());

            case 100: {
View Full Code Here

            case 5:
                return new SnmpInt(node.getJvmThreadContentionMonitoring());

            case 4:
                return new SnmpCounter64(node.getJvmThreadTotalStartedCount());

            case 3:
                return new SnmpCounter(node.getJvmThreadPeakCount());

            case 2:
                return new SnmpGauge(node.getJvmThreadDaemonCount());

            case 1:
                return new SnmpGauge(node.getJvmThreadCount());

            case 10: {
                throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
                }

            case 7:
                return new SnmpCounter64(node.getJvmThreadPeakCountReset());

            default:
                break;
        }
        throw new SnmpStatusException(SnmpStatusException.noSuchObject);
View Full Code Here

                }

            case 7:
                if (x instanceof SnmpCounter64) {
                    node.setJvmThreadPeakCountReset(((SnmpCounter64)x).toLong());
                    return new SnmpCounter64(node.getJvmThreadPeakCountReset());
                } else {
                    throw new SnmpStatusException(SnmpStatusException.snmpRspWrongType);
                }

            default:
View Full Code Here

        switch((int)var) {
            case 4:
                return new SnmpInt(node.getJvmClassesVerboseLevel());

            case 3:
                return new SnmpCounter64(node.getJvmClassesUnloadedCount());

            case 2:
                return new SnmpCounter64(node.getJvmClassesTotalLoadedCount());

            case 1:
                return new SnmpGauge(node.getJvmClassesLoadedCount());

            default:
View Full Code Here

            case 3:
                return new SnmpString(node.getJvmRTVMVendor());

            case 12:
                return new SnmpCounter64(node.getJvmRTStartTimeMs());

            case 11:
                return new SnmpCounter64(node.getJvmRTUptimeMs());

            case 2:
                return new SnmpString(node.getJvmRTVMName());

            case 1:
View Full Code Here

        switch((int)var) {
            case 9:
                return new SnmpString(node.getJvmThreadInstName());

            case 8:
                return new SnmpCounter64(node.getJvmThreadInstCpuTimeNs());

            case 7:
                return new SnmpCounter64(node.getJvmThreadInstWaitTimeMs());

            case 6:
                return new SnmpCounter64(node.getJvmThreadInstWaitCount());

            case 5:
                return new SnmpCounter64(node.getJvmThreadInstBlockTimeMs());

            case 4:
                return new SnmpCounter64(node.getJvmThreadInstBlockCount());

            case 3:
                return new SnmpString(node.getJvmThreadInstState());

            case 11:
                return new SnmpOid(node.getJvmThreadInstLockOwnerPtr());

            case 2:
                return new SnmpCounter64(node.getJvmThreadInstId());

            case 10:
                return new SnmpString(node.getJvmThreadInstLockName());

            case 1:
View Full Code Here

     */
    public SnmpValue get(long var, Object data)
        throws SnmpStatusException {
        switch((int)var) {
            case 33:
                return new SnmpCounter64(node.getJvmMemPoolCollectMaxSize());

            case 32:
                return new SnmpCounter64(node.getJvmMemPoolCollectCommitted());

            case 31:
                return new SnmpCounter64(node.getJvmMemPoolCollectUsed());

            case 133:
                return new SnmpInt(node.getJvmMemPoolCollectThreshdSupport());

            case 132:
                return new SnmpCounter64(node.getJvmMemPoolCollectThreshdCount());

            case 131:
                return new SnmpCounter64(node.getJvmMemPoolCollectThreshold());

            case 13:
                return new SnmpCounter64(node.getJvmMemPoolMaxSize());

            case 12:
                return new SnmpCounter64(node.getJvmMemPoolCommitted());

            case 11:
                return new SnmpCounter64(node.getJvmMemPoolUsed());

            case 10:
                return new SnmpCounter64(node.getJvmMemPoolInitSize());

            case 112:
                return new SnmpInt(node.getJvmMemPoolThreshdSupport());

            case 111:
                return new SnmpCounter64(node.getJvmMemPoolThreshdCount());

            case 110:
                return new SnmpCounter64(node.getJvmMemPoolThreshold());

            case 5:
                return new SnmpCounter64(node.getJvmMemPoolPeakReset());

            case 4:
                return new SnmpInt(node.getJvmMemPoolState());

            case 3:
                return new SnmpInt(node.getJvmMemPoolType());

            case 2:
                return new SnmpString(node.getJvmMemPoolName());

            case 23:
                return new SnmpCounter64(node.getJvmMemPoolPeakMaxSize());

            case 1:
                throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
            case 22:
                return new SnmpCounter64(node.getJvmMemPoolPeakCommitted());

            case 21:
                return new SnmpCounter64(node.getJvmMemPoolPeakUsed());

            default:
                break;
        }
        throw new SnmpStatusException(SnmpStatusException.noSuchObject);
View Full Code Here

                throw new SnmpStatusException(SnmpStatusException.snmpRspNotWritable);

            case 131:
                if (x instanceof SnmpCounter64) {
                    node.setJvmMemPoolCollectThreshold(((SnmpCounter64)x).toLong());
                    return new SnmpCounter64(node.getJvmMemPoolCollectThreshold());
                } else {
                    throw new SnmpStatusException(SnmpStatusException.snmpRspWrongType);
                }

            case 13:
                throw new SnmpStatusException(SnmpStatusException.snmpRspNotWritable);

            case 12:
                throw new SnmpStatusException(SnmpStatusException.snmpRspNotWritable);

            case 11:
                throw new SnmpStatusException(SnmpStatusException.snmpRspNotWritable);

            case 10:
                throw new SnmpStatusException(SnmpStatusException.snmpRspNotWritable);

            case 112:
                throw new SnmpStatusException(SnmpStatusException.snmpRspNotWritable);

            case 111:
                throw new SnmpStatusException(SnmpStatusException.snmpRspNotWritable);

            case 110:
                if (x instanceof SnmpCounter64) {
                    node.setJvmMemPoolThreshold(((SnmpCounter64)x).toLong());
                    return new SnmpCounter64(node.getJvmMemPoolThreshold());
                } else {
                    throw new SnmpStatusException(SnmpStatusException.snmpRspWrongType);
                }

            case 5:
                if (x instanceof SnmpCounter64) {
                    node.setJvmMemPoolPeakReset(((SnmpCounter64)x).toLong());
                    return new SnmpCounter64(node.getJvmMemPoolPeakReset());
                } else {
                    throw new SnmpStatusException(SnmpStatusException.snmpRspWrongType);
                }

            case 4:
View Full Code Here

TOP

Related Classes of com.sun.jmx.snmp.SnmpCounter64

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.