Java 类com.sun.jmx.snmp.SnmpCounter64 实例源码

项目:OpenJSharp    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:OpenJSharp    文件:JvmClassLoadingMeta.java   
/**
 * 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);
}
项目:jdk8u-jdk    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-jdk    文件:JvmClassLoadingMeta.java   
/**
 * 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);
}
项目:jdk8u_jdk    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u_jdk    文件:JvmClassLoadingMeta.java   
/**
 * 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);
}
项目:lookaside_java-1.8.0-openjdk    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:lookaside_java-1.8.0-openjdk    文件:JvmClassLoadingMeta.java   
/**
 * 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);
}
项目:infobip-open-jdk-8    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:infobip-open-jdk-8    文件:JvmClassLoadingMeta.java   
/**
 * 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);
}
项目:jdk8u-dev-jdk    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk8u-dev-jdk    文件:JvmClassLoadingMeta.java   
/**
 * 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);
}
项目:jdk7-jdk    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:jdk7-jdk    文件:JvmClassLoadingMeta.java   
/**
 * 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);
}
项目:openjdk-source-code-learn    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:openjdk-source-code-learn    文件:JvmClassLoadingMeta.java   
/**
 * 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);
}
项目:OLD-OpenJDK8    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:OLD-OpenJDK8    文件:JvmClassLoadingMeta.java   
/**
 * 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);
}
项目:openjdk-jdk7u-jdk    文件:JvmCompilationMeta.java   
/**
 * Get the value of a scalar variable
 */
public SnmpValue get(long var, Object data)
    throws SnmpStatusException {
    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:
            break;
    }
    throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
项目:openjdk-jdk7u-jdk    文件:JvmClassLoadingMeta.java   
/**
 * 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);
}
项目:OpenJSharp    文件:JvmThreadingMeta.java   
/**
 * 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);
}
项目:OpenJSharp    文件:JvmMemGCEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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);
}
项目:jdk8u-jdk    文件:JvmThreadingMeta.java   
/**
 * 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);
}
项目:jdk8u-jdk    文件:JvmMemGCEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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);
}
项目:jdk8u_jdk    文件:JvmThreadingMeta.java   
/**
 * 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);
}
项目:jdk8u_jdk    文件:JvmMemGCEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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);
}
项目:lookaside_java-1.8.0-openjdk    文件:JvmThreadingMeta.java   
/**
 * 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);
}
项目:lookaside_java-1.8.0-openjdk    文件:JvmMemGCEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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);
}
项目:infobip-open-jdk-8    文件:JvmThreadingMeta.java   
/**
 * 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);
}
项目:infobip-open-jdk-8    文件:JvmMemGCEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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);
}
项目:jdk8u-dev-jdk    文件:JvmThreadingMeta.java   
/**
 * 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);
}
项目:jdk8u-dev-jdk    文件:JvmMemGCEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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);
}
项目:jdk7-jdk    文件:JvmThreadingMeta.java   
/**
 * 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);
}
项目:jdk7-jdk    文件:JvmMemGCEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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);
}
项目:openjdk-source-code-learn    文件:JvmThreadingMeta.java   
/**
 * 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);
}
项目:openjdk-source-code-learn    文件:JvmMemGCEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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);
}
项目:OLD-OpenJDK8    文件:JvmThreadingMeta.java   
/**
 * 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);
}
项目:OLD-OpenJDK8    文件:JvmMemGCEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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);
}
项目:openjdk-jdk7u-jdk    文件:JvmThreadingMeta.java   
/**
 * 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);
}
项目:openjdk-jdk7u-jdk    文件:JvmMemGCEntryMeta.java   
/**
 * Get the value of a scalar variable
 */
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);
}