/** * 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); }