Java源码示例:com.sun.jmx.snmp.SnmpGauge
示例1
/**
* 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);
}
示例2
/**
* 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);
}
示例3
/**
* 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);
}
示例4
/**
* 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);
}
示例5
/**
* 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);
}
示例6
/**
* 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);
}
示例7
/**
* 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);
}
示例8
/**
* 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);
}
示例9
/**
* 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);
}
示例10
/**
* 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);
}
示例11
/**
* 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);
}
示例12
/**
* 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);
}
示例13
/**
* 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);
}
示例14
/**
* 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);
}
示例15
/**
* 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);
}
示例16
/**
* 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);
}
示例17
/**
* 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);
}
示例18
/**
* 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);
}
示例19
/**
* 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);
}
示例20
/**
* 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);
}
示例21
/**
* 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);
}
示例22
/**
* 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);
}
示例23
/**
* 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);
}
示例24
/**
* 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);
}
示例25
/**
* 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);
}
示例26
/**
* 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);
}
示例27
/**
* 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);
}
示例28
/**
* 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);
}
示例29
/**
* 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);
}
示例30
/**
* 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);
}