com.sun.jmx.snmp.SnmpGauge Java Examples

The following examples show how to use com.sun.jmx.snmp.SnmpGauge. 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: JvmClassLoadingMeta.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #2
Source File: JvmClassLoadingMeta.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #3
Source File: JvmClassLoadingMeta.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #4
Source File: JvmClassLoadingMeta.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #5
Source File: JvmClassLoadingMeta.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #6
Source File: JvmClassLoadingMeta.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #7
Source File: JvmClassLoadingMeta.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #8
Source File: JvmClassLoadingMeta.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #9
Source File: JvmClassLoadingMeta.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #10
Source File: JvmClassLoadingMeta.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #11
Source File: JvmClassLoadingMeta.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #12
Source File: JvmClassLoadingMeta.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #13
Source File: JvmThreadingMeta.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 6:
            return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

        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);
}
 
Example #14
Source File: JvmThreadingMeta.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 6:
            return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

        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);
}
 
Example #15
Source File: JvmThreadingMeta.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 6:
            return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

        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);
}
 
Example #16
Source File: JvmThreadingMeta.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 6:
            return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

        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);
}
 
Example #17
Source File: JvmThreadingMeta.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 6:
            return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

        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);
}
 
Example #18
Source File: JvmThreadingMeta.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 6:
            return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

        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);
}
 
Example #19
Source File: JvmThreadingMeta.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 6:
            return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

        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);
}
 
Example #20
Source File: JvmThreadingMeta.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 6:
            return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

        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);
}
 
Example #21
Source File: JvmThreadingMeta.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 6:
            return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

        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);
}
 
Example #22
Source File: JvmThreadingMeta.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 6:
            return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

        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);
}
 
Example #23
Source File: JvmThreadingMeta.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 6:
            return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

        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);
}
 
Example #24
Source File: JvmThreadingMeta.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        case 6:
            return new SnmpInt(node.getJvmThreadCpuTimeMonitoring());

        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);
}
 
Example #25
Source File: JvmMemoryMeta.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        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: {
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
            }

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #26
Source File: JvmMemoryMeta.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        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: {
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
            }

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #27
Source File: JvmMemoryMeta.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        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: {
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
            }

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #28
Source File: JvmMemoryMeta.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        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: {
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
            }

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #29
Source File: JvmMemoryMeta.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        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: {
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
            }

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
 
Example #30
Source File: JvmMemoryMeta.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    switch((int)var) {
        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: {
            throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
            }

        default:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}