当前位置: 首页>>代码示例>>Java>>正文


Java SnmpString类代码示例

本文整理汇总了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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:24,代码来源:JvmOSMeta.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:JvmMemManagerEntryMeta.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:JvmCompilationMeta.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:JvmRTBootClassPathEntryMeta.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:JvmMemMgrPoolRelEntryMeta.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:JvmRTClassPathEntryMeta.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:JvmRTInputArgsEntryMeta.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:JvmRTLibraryPathEntryMeta.java


注:本文中的com.sun.jmx.snmp.SnmpString类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。