/** * 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.getJvmOSProcessorCount()); case 3: return new SnmpString(node.getJvmOSVersion()); case 2: return new SnmpString(node.getJvmOSArch()); case 1: return new SnmpString(node.getJvmOSName()); default: break; } throw new SnmpStatusException(SnmpStatusException.noSuchObject); }
/** * 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.getJvmMemManagerState()); case 2: return new SnmpString(node.getJvmMemManagerName()); case 1: throw new SnmpStatusException(SnmpStatusException.noSuchInstance); default: break; } throw new SnmpStatusException(SnmpStatusException.noSuchObject); }
/** * 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); }
/** * 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); }