本文整理汇总了Java中com.sun.jmx.snmp.SnmpString类的典型用法代码示例。如果您正苦于以下问题:Java SnmpString类的具体用法?Java SnmpString怎么用?Java SnmpString使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SnmpString类属于com.sun.jmx.snmp包,在下文中一共展示了SnmpString类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: get
import com.sun.jmx.snmp.SnmpString; //导入依赖的package包/类
/**
* 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);
}
示例2: get
import com.sun.jmx.snmp.SnmpString; //导入依赖的package包/类
/**
* 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);
}
示例3: get
import com.sun.jmx.snmp.SnmpString; //导入依赖的package包/类
/**
* 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);
}
示例4: get
import com.sun.jmx.snmp.SnmpString; //导入依赖的package包/类
/**
* Get the value of a scalar variable
*/
public SnmpValue get(long var, Object data)
throws SnmpStatusException {
switch((int)var) {
case 2:
return new SnmpString(node.getJvmRTBootClassPathItem());
case 1:
throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
default:
break;
}
throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
示例5: get
import com.sun.jmx.snmp.SnmpString; //导入依赖的package包/类
/**
* Get the value of a scalar variable
*/
public SnmpValue get(long var, Object data)
throws SnmpStatusException {
switch((int)var) {
case 3:
return new SnmpString(node.getJvmMemMgrRelPoolName());
case 2:
return new SnmpString(node.getJvmMemMgrRelManagerName());
default:
break;
}
throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
示例6: get
import com.sun.jmx.snmp.SnmpString; //导入依赖的package包/类
/**
* Get the value of a scalar variable
*/
public SnmpValue get(long var, Object data)
throws SnmpStatusException {
switch((int)var) {
case 2:
return new SnmpString(node.getJvmRTClassPathItem());
case 1:
throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
default:
break;
}
throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
示例7: get
import com.sun.jmx.snmp.SnmpString; //导入依赖的package包/类
/**
* Get the value of a scalar variable
*/
public SnmpValue get(long var, Object data)
throws SnmpStatusException {
switch((int)var) {
case 2:
return new SnmpString(node.getJvmRTInputArgsItem());
case 1:
throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
default:
break;
}
throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}
示例8: get
import com.sun.jmx.snmp.SnmpString; //导入依赖的package包/类
/**
* Get the value of a scalar variable
*/
public SnmpValue get(long var, Object data)
throws SnmpStatusException {
switch((int)var) {
case 2:
return new SnmpString(node.getJvmRTLibraryPathItem());
case 1:
throw new SnmpStatusException(SnmpStatusException.noSuchInstance);
default:
break;
}
throw new SnmpStatusException(SnmpStatusException.noSuchObject);
}